Version 6.6 301 Mediant 2000
User's Manual 23. Manipulation
After the above manipulation is done, the device sends the following outgoing SIP 302
response:
SIP/2.0 302 Moved Temporarily
Via: SIP/2.0/TLS 10.33.45.68;branch=z9hG4bKac54132643;alias
From: "MP118 1" <sip:8001@10.33.45.68>;tag=1c54119560
To: <sip:6001@10.33.45.69;user=phone>;tag=1c664560944
Call-ID: 541189832710201115142@10.33.45.68
CSeq: 1 INVITE
Contact: <sip:8005@10.33.45.68;user=phone>
Supported: em,timer,replaces,path,early-session,resource-priority
Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUB
SCRIBE,UPDATE
Diversion: <tel:6005>;reason=unknown;counter=1
Server: Audiocodes-Sip-Gateway-IPmedia 260_UN/v.6.20A.043.001
Reason: SIP ;cause=302 ;text="302 Moved Temporarily"
Content-Length: 0
23.7 Mapping NPI/TON to SIP Phone-Context
The Phone-Context table page allows you to map Numbering Plan Indication (NPI) and
Type of Number (TON) to the SIP 'phone-context' parameter. The 'phone-context'
parameter appears in the standard SIP headers where a phone number is used (i.e.,
Request-URI, To, From, and Diversion). When a call is received from the ISDN side, the
NPI and TON are compared against the table and the matching 'phone-context' value is
used in the outgoing SIP INVITE message. The same mapping occurs when an INVITE
with a 'phone-context' parameter is received.
For example, for a Tel-to-IP call with NPI/TON set as E164 National (values 1/2), the
device sends the following SIP INVITE URI:
sip:12365432;phone-context= na.e.164.nt.com
This is configured for entry 3 in the figure below. In the opposite direction (IP-to-Tel call), if
the incoming INVITE contains this 'phone-context' (e.g. "phone-context= na.e.164.nt.com"),
the NPI/TON of the called number in the outgoing Setup message is changed to E164
National.
 To configure NPI/TON to SIP phone-context rules:
1. Open the Phone Context Table page (Configuration tab > VoIP menu > GW and IP
to IP submenu > Manipulations > Phone Context).
Figure 23-5: Phone Context Table Page
2. Configure the parameters as required. For a description of the parameters, see the