cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
azbrewsky
New Contributor

Change Outbound Caller-ID for International Calls

Jump to solution

I have a 908e with SIP trunks - I need to force a specific caller-ID when an international number is called.

I looked at some other posts, and tried the following:

  conf t

  voice trunk t01

  match ani 011 substitute 505-555-1212

Any help would be appreciated.

Sample from PBX to Adtran:

14:12:38.733 SIP.STACK MSG Rx: UDP src=10.5.5.21:5060 dst=10.5.5.25:5060
14:12:38.733 SIP.STACK MSG     INVITE sip:+82316611110@10.5.5.25:5060 SIP/2.0
14:12:38.733 SIP.STACK MSG     From: "Conference Room"<sip:+<wrong callerID>@10.5.5.21>;tag=67d2a100-0-13c4-6006-2b5245-73212fc-xxxxxx
14:12:38.733 SIP.STACK MSG     To: <sip:+82316611110@10.5.5.25:5060>
14:12:38.734 SIP.STACK MSG     Call-ID: 67b58288-0-13c4-6006-2b5245-cabfb4e-xxxxxx
14:12:38.734 SIP.STACK MSG     CSeq: 1 INVITE
14:12:38.734 SIP.STACK MSG     Allow: INVITE,BYE,CANCEL,ACK,INFO,OPTIONS,SUBSCRIBE,NOTIFY,REFER,REGISTER,UPDATE
14:12:38.734 SIP.STACK MSG     P-Asserted-Identity: "Conference Room"<sip:+<wrong callerID>@10.5.5.21:5060>
14:12:38.734 SIP.STACK MSG     Privacy: none
14:12:38.734 SIP.STACK MSG     Max-Forwards: 70
14:12:38.735 SIP.STACK MSG     Supported: timer,replaces,info
14:12:38.735 SIP.STACK MSG     User-Agent: ShoreGear/21.86.1828.0 (ShoreTel 15)
14:12:38.735 SIP.STACK MSG     Via: SIP/2.0/UDP 10.5.5.21:5060;rport;branch=z9hG4bK-2b5245-a9396051-65cc12e-67e70680
14:12:38.735 SIP.STACK MSG     Contact: <sip:+<wrong callerID>3@10.5.5.21>
14:12:38.735 SIP.STACK MSG     Session-Expires: 1800;refresher=uac
14:12:38.735 SIP.STACK MSG     Content-Type: application/sdp
14:12:38.736 SIP.STACK MSG     Content-Length: 282

14:12:38.736 SIP.STACK MSG

14:12:38.736 SIP.STACK MSG     v=0
14:12:38.736 SIP.STACK MSG     o=ShoreGear 0 1 IN IP4 10.5.5.21
14:12:38.736 SIP.STACK MSG     s=-
14:12:38.736 SIP.STACK MSG     c=IN IP4 10.5.5.21
14:12:38.736 SIP.STACK MSG     t=0 0
14:12:38.737 SIP.STACK MSG     m=audio 10234 RTP/AVP 99 0 18 8 102
14:12:38.737 SIP.STACK MSG     a=rtpmap:99 L16/8000
14:12:38.737 SIP.STACK MSG     a=rtpmap:0 PCMU/8000
14:12:38.737 SIP.STACK MSG     a=rtpmap:18 G729/8000
14:12:38.737 SIP.STACK MSG     a=fmtp:18 annexb=no
14:12:38.738 SIP.STACK MSG     a=rtpmap:8 PCMA/8000
14:12:38.738 SIP.STACK MSG     a=rtpmap:102 telephone-event/8000
14:12:38.738 SIP.STACK MSG     a=fmtp:102 0-15
14:12:38.738 SIP.STACK MSG     a=sendrecv

Sample sip stack messages to carrier:

14:12:38.767 SIP.STACK MSG Tx: UDP src=<adtran SBC>:5060 dst=<carrier SBC>:5100
14:12:38.767 SIP.STACK MSG     INVITE sip:01182316611110@<>:5100 SIP/2.0
14:12:38.767 SIP.STACK MSG     From: "Conference Room" <sip:<wrong callerID>@voip.centurylink.com:5100;transport=UDP>;tag=4d0c8818-7f000001-13c4-22f19b-12
14:12:38.768 SIP.STACK MSG     To: <sip:01182316611110@voip.centurylink.com:5100>
14:12:38.768 SIP.STACK MSG     Call-ID: 4d18d128-7f000001-13c4-22f19b-5a438be9-xxxxxx@voip.centurylink.com
14:12:38.768 SIP.STACK MSG     CSeq: 1 INVITE
14:12:38.768 SIP.STACK MSG     P-Asserted-Identity: <sip:<wrong callerID>@voip.centurylink.com>
14:12:38.768 SIP.STACK MSG     Max-Forwards: 70
14:12:38.768 SIP.STACK MSG     Supported: 100rel,replaces
14:12:38.769 SIP.STACK MSG     Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER
14:12:38.769 SIP.STACK MSG     User-Agent: ADTRAN_Total_Access_908e_3rd_Gen/R11.10.4.E
14:12:38.769 SIP.STACK MSG     Via: SIP/2.0/UDP x.x.x.x:5060;branch=z9hG4bK-22f19b-887fc7b6-xxxxxx
14:12:38.769 SIP.STACK MSG     Contact: <sip:<wrong callerID>@x.x.x.x:5060;transport=UDP>
14:12:38.769 SIP.STACK MSG     Content-Type: application/sdp
14:12:38.770 SIP.STACK MSG     Content-Length: 219
Labels (2)
0 Kudos
1 Solution

Accepted Solutions
Anonymous
Not applicable

Re: Change Outbound Caller-ID for International Calls

Jump to solution

Donnie,

You were close.

DNIS is the Dialed number (TO) in the SIP header

ANI is the caller number (FROM) in the sip header

Try this command:

match dnis 011$ replace ani 5055551212

this command will match all 011 calls the $ is wild card for any digits after that and then if match it will replace the FROM with the 505 number.

Let me know how that works.

-Mark

View solution in original post

4 Replies
Anonymous
Not applicable

Re: Change Outbound Caller-ID for International Calls

Jump to solution

Donnie,

You were close.

DNIS is the Dialed number (TO) in the SIP header

ANI is the caller number (FROM) in the sip header

Try this command:

match dnis 011$ replace ani 5055551212

this command will match all 011 calls the $ is wild card for any digits after that and then if match it will replace the FROM with the 505 number.

Let me know how that works.

-Mark

Anonymous
Not applicable

Re: Change Outbound Caller-ID for International Calls

Jump to solution

one more thing, make sure you apply that on your outbound SIP trunk account.

Re: Change Outbound Caller-ID for International Calls

Jump to solution

Mark,

That worked like a champ!! I appreciate your help..

Anonymous
Not applicable

Re: Change Outbound Caller-ID for International Calls

Jump to solution

Glad that worked out for you!

-Mark