Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CALLERID(DNID) gives wrong number

Status
Not open for further replies.

TOPBAY

Programmer
Sep 29, 2014
65
AU
I have 3 public numbers from SIP carrier.
0364517930 < Billing number from the carrier.
0364517931
0364517932

Whatever numbers (0364517931 or 0364517932) I called from my mobile, CALLERID(DNID) gives always 0364517930.
Is there any way to get sip-to number?
Here is sip debug. I am using Asterisk 12.8.2.

<--- SIP read from UDP:118.222.222.111:5060 --->
ACK sip:0364517930@118.177.12.86:5060 SIP/2.0 <<<<I don't need this number.<<<<
i: 0943117ea21fb7f2a8a201f5f2901e59@sipgateway.net
l: 0
f: <sip:0412345678@sipgateway.net>;tag=4243833431
CSeq: 1 ACK
t: <sip:0364517931@sipgateway.net>;tag=as417d51c8 <<<<I want to get this number.<<<<
v: SIP/2.0/UDP 118.222.222.111:5060;branch=z9hG4bK59e4b1c871e0f220b4a2738d74eb74148d8c2143a0866164e122c405fadad3de
Max-Forwards: 70

 
Found an answer myself.

${SIP_HEADER(To) can give what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top