<div dir="ltr">Hi,<div>I'm observing wrong From/Contact header values. When I try to set CallerID(num) it has no effect in the From and Contact Headers, and these values are the same as the dialed number.</div><div>SIP Peers are defined using asterisk realtime. If I define the SIP Peers using sip.conf then From/Contact header value are correct.</div>
<div><br></div><div>extentions.conf<br></div><div><div>[test]</div><div>exten=> 1000, 1,NoOp()</div><div>same=> n,Set(CALLERID(num)=1111)</div><div>same=> n,Set(CALLERID(name)=1111)</div><div>same=> n,Dial(SIP/1000)</div>
<div><br></div><div>exten=> 2000, 1,NoOp()</div><div>same=> n,Set(CALLERID(num)=2222)</div><div>same=> n,Set(CALLERID(name)=2222)</div><div>same=> n,Dial(SIP/2000)</div></div><div><br></div><div><br></div><div>
Here is the sip trace...<br></div><div>--------- -- Executing [2000@test:1] NoOp("SIP/1000-00000014", "") in new stack</div><div> -- Executing [2000@test:2] Set("SIP/1000-00000014", "CALLERID(num)=2222") in new stack</div>
<div> -- Executing [2000@test:3] Set("SIP/1000-00000014", "CALLERID(name)=2222") in new stack</div><div> -- Executing [2000@test:4] Dial("SIP/1000-00000014", "SIP/2000") in new stack</div>
<div> == Using SIP RTP CoS mark 5</div><div>Audio is at 16264</div><div>Adding codec 100004 (alaw) to SDP</div><div>Adding codec 100003 (ulaw) to SDP</div><div>Adding codec 100002 (gsm) to SDP</div><div>Adding non-codec 0x1 (telephone-event) to SDP</div>
<div>Reliably Transmitting (no NAT) to <a href="http://10.10.7.218:5060">10.10.7.218:5060</a>:</div><div>INVITE <a href="http://sip:2000@10.10.7.218:5060">sip:2000@10.10.7.218:5060</a> SIP/2.0</div><div>Via: SIP/2.0/UDP my-ip:5060;branch=z9hG4bK73e9c721</div>
<div>Max-Forwards: 70</div><div><font color="#ff0000">From: "2222" <<a href="mailto:sip%3A2000@sipdev.mydomain.com">sip:2000@sipdev.mydomain.com</a>>;tag=as2a72da29</font></div><div>To: <<a href="http://sip:2000@10.10.7.218:5060">sip:2000@10.10.7.218:5060</a>></div>
<div><font color="#ff0000">Contact: <sip:2000@my-ip:5060></font></div><div>Call-ID: <a href="mailto:1f75fe937c6194227e6b5a5c29f41a52@sipdev.mydomain.com">1f75fe937c6194227e6b5a5c29f41a52@sipdev.mydomain.com</a></div>
<div>CSeq: 102 INVITE</div><div>User-Agent: Asterisk PBX 11.5.1</div><div>Date: Wed, 11 Dec 2013 16:23:07 GMT</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</div><div>Supported: replaces, timer</div>
<div>Content-Type: application/sdp</div><div>Content-Length: 309</div><div><br></div><div>v=0</div><div>o=root 604923607 604923607 IN IP4 my-ip</div><div>s=Asterisk PBX 11.5.1</div><div>c=IN IP4 my-ip</div><div>t=0 0</div>
<div>m=audio 16264 RTP/AVP 8 0 3 101</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:3 GSM/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=silenceSupp:off - - - -</div>
<div>a=ptime:20</div><div>a=sendrecv</div><div><br></div><div>---------------------------------------------------------------<br></div><div><div>uname -a</div><div>Linux 6g-asterisk-devel 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux</div>
</div><div><br></div><div><div>asterisk -rx "core show version"</div><div>Asterisk 11.5.1 built by root @ 6g-asterisk-devel on a x86_64 running Linux on 2013-10-07 10:50:45 UTC</div></div><div><br></div><div>Please suggest me, either I put the issue in issue tracker or there is some workaround.</div>
<div><br></div><div>Thank you!</div><div>Muhammad Faheem</div><div><br></div><div> </div></div>