Here is a sample UriToTelnum.tab file
.
# request URI to telnum conversion table
#
# This table converts the Request URI in the SIP INVITE
# request to the appropriate value specified when a pattern
# is matched. For example, if the request Uri was
# "<sip:3333@10.220.10.4>" and one of the patterns is
# <sip:*@*" a match will take place.
# If the conversion for that match is $1 then 3333 is
# passed as the ddi for the call.
# If the conversion for that match is "0000" then 0000
# is passed as the ddi for the call.
#
TelnumPattern
"sip:*@*
"<sip:*@*
"<sip:*
"sip:*
"<sip:3356@*
*
TelnumConversioncomment
"$1
ddi before IP address in Request Uri
"$1
ddi before IP address in Request Uri
""0000"
no ddi before IP addr in Request Uri
""0000"
no ddi before IP addr in Request Uri
"OP3333x1
operator line number 1.
$0
wildcard
Configuring Translation Tables
Issue 1
August 2007
43