<div dir="ltr">Hi all, <div><br></div><div style>here're some sip traces.</div><div style><br></div><div style>1.1.1.1 -> Asterisk Box</div><div style>2.2.2.2 -> SPCE</div><div style>3.3.3.3 -> SIP PEER</div><div style>

<br></div><div style>So I've registered 9030 extension on the Asterisk box. Made a call to an external number (98769876), goes to 2.2.2.2 which is the SPCE. </div><div style>2.2.2.2 SPCE goes to 3.3.3.3 which is the sip peer. </div>

<div style><br></div><div style>problem is ... even though user_cli or enum is set in the subscriber details, that setting is not getting pulled through when the INVITE goes to 3.3.3.3 (sip peer). The 9030 still goes through and replaces whatever is setup in the subscriber.</div>

<div style><br></div><div style>Can someone advise what can be done to rectify this or troubleshoot?</div><div style><br></div><div style>-----</div><div style><br></div><div style><div><div>U 2013/05/10 18:35:32.796564 <a href="http://1.1.1.1:50082">1.1.1.1:50082</a> -> <a href="http://2.2.2.2:5060">2.2.2.2:5060</a></div>

<div>INVITE <a href="mailto:sip%3A98769876@2.2.2.2">sip:98769876@2.2.2.2</a>;cpd=on SIP/2.0.</div><div>Via: SIP/2.0/UDP 1.1.1.1:5060;branch=z9hG4bK6459469e;rport.</div><div>From: "9030" <<a href="mailto:sip%3A9030@2.2.2.2">sip:9030@2.2.2.2</a>>;tag=as4d29eab1.</div>

<div>To: <<a href="mailto:sip%3A98769876@2.2.2.2">sip:98769876@2.2.2.2</a>;cpd=on>.</div><div>Contact: <<a href="mailto:sip%3A9030@1.1.1.1">sip:9030@1.1.1.1</a>>.</div><div>Call-ID: <a href="mailto:10e674be2049959f12e51f5d1888106f@2.2.2.2">10e674be2049959f12e51f5d1888106f@2.2.2.2</a>.</div>

<div>CSeq: 103 INVITE.</div><div>User-Agent: Asterisk PBX.</div><div>Max-Forwards: 70.</div><div>Remote-Party-ID: "9030" <<a href="mailto:sip%3A9030@2.2.2.2">sip:9030@2.2.2.2</a>>;privacy=off;screen=no.</div>

<div>Proxy-Authorization: Digest username="61390207910", realm="2.2.2.2", algorithm=MD5, uri="<a href="mailto:sip%3A98769876@2.2.2.2">sip:98769876@2.2.2.2</a>;cpd=on", nonce="UYyygFGMsVSyU+TXii017pt2ZOlCur69", response="d7b6d2581b0aa25ea902750b3325d6fa".</div>

<div>Date: Fri, 10 May 2013 08:35:34 GMT.</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.</div><div>Supported: replaces.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 234.</div>

<div>.</div><div>v=0.</div><div>o=root 6108 6109 IN IP4 1.1.1.1.</div><div>s=session.</div><div>c=IN IP4 1.1.1.1.</div><div>t=0 0.</div><div>m=audio 38840 RTP/AVP 18 101.</div><div>a=rtpmap:18 G729/8000.</div><div>a=fmtp:18 annexb=no.</div>

<div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-16.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>U 2013/05/10 18:35:32.814676 <a href="http://2.2.2.2:5060">2.2.2.2:5060</a> -> <a href="http://3.3.3.3:5060">3.3.3.3:5060</a></div>

<div>INVITE sip:6198769876@3.3.3.3:5060;transport=udp SIP/2.0.</div><div>Max-Forwards: 10.</div><div>Record-Route: <sip:2.2.2.2;r2=on;lr=on;ftag=244CC301-518CB154000C6AC8-062EA700;ngcplb=yes>.</div><div>Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=244CC301-518CB154000C6AC8-062EA700;ngcplb=yes>.</div>

<div>Via: SIP/2.0/UDP 2.2.2.2;branch=z9hG4bK3fe2.7771d74fcbc179eb5ca7b9068156b692.0.</div><div>Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKNMqJPaAN;rport=5080.</div><div>From: <<a href="mailto:sip%3A9030@2.2.2.2">sip:9030@2.2.2.2</a>>;tag=244CC301-518CB154000C6AC8-062EA700.</div>

<div>To: <<a href="mailto:sip%3A6198769876@3.3.3.3">sip:6198769876@3.3.3.3</a>>.</div><div>CSeq: 10 INVITE.</div><div>Call-ID: 10e674be2049959f12e51f5d1888106f@2.2.2.2_b2b-1.</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.</div>

<div>Supported: replaces.</div><div>P-Asserted-Identity: <<a href="mailto:sip%3A9030@2.2.2.2">sip:9030@2.2.2.2</a>>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 250.</div><div>Contact: <sip:ngcp-lb@2.2.2.2:5060;ngcpct='sip:<a href="http://127.0.0.1:5080">127.0.0.1:5080</a>'>.</div>

<div>.</div><div>v=0.</div><div>o=root 6108 6109 IN IP4 2.2.2.2.</div><div>s=session.</div><div>c=IN IP4 2.2.2.2.</div><div>t=0 0.</div><div>m=audio 32874 RTP/AVP 18 101.</div><div>a=rtpmap:18 G729/8000.</div><div>a=fmtp:18 annexb=no.</div>

<div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-16.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div>a=rtcp:32875.</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">

On Fri, May 10, 2013 at 1:09 AM, Martin Wong <span dir="ltr"><<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi Kevin,<div><br></div><div>unless I've stuffed something up... it's not working..</div><div><br></div><div>Have set user_cli as well as the E164 as well. From the sip trace, I see that from the SPCE to the provider, the INVITE is as follows...</div>


<div><br></div><div>123.123.123.123 is the SPCE, 213.213.213.213 the provider.</div><div><br></div><div>As you can see, somehow the From: header has 9030 which is the extension number of an Asterisk system. Therefore 9030 is not a valid number and thus the provider puts it as anonymous. I can't seem to force the CLI.</div>


<div><br></div><div>Any ideas what's happening?</div><div><br></div><div><div><div>U 2013/05/10 01:05:03.335037 <a href="http://123.123.123.123:5060" target="_blank">123.123.123.123:5060</a> -> <a href="http://213.213.213.213:5060" target="_blank">213.213.213.213:5060</a></div>


<div>INVITE sip:123456789@213.213.213.213:5060;transport=udp SIP/2.0.</div><div>Max-Forwards: 10.</div><div>Record-Route: <sip:123.123.123.123;r2=on;lr=on;ftag=3686E06C-518BBB1F000519FA-062EA700;ngcplb=yes>.</div><div>


Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=3686E06C-518BBB1F000519FA-062EA700;ngcplb=yes>.</div><div>Via: SIP/2.0/UDP 123.123.123.123;branch=z9hG4bK1bf6.45addc0c691ddcb65ab53185af6baca1.0.</div><div>Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKOqRJLadA;rport=5080.</div>


<div>From: <<a href="mailto:sip%3A9030@123.123.123.123" target="_blank">sip:9030@123.123.123.123</a>>;tag=3686E06C-518BBB1F000519FA-062EA700.</div><div>To: <<a href="mailto:sip%3A123456789@213.213.213.213" target="_blank">sip:123456789@213.213.213.213</a>>.</div>


<div>CSeq: 10 INVITE.</div><div>Call-ID: 243cdb514476fa870cabdef15e9c406f@123.123.123.123_b2b-1.</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.</div><div>Supported: replaces.</div><div>


P-Asserted-Identity: <<a href="mailto:sip%3A9030@123.123.123.123" target="_blank">sip:9030@123.123.123.123</a>>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 252.</div><div>Contact: <sip:ngcp-lb@123.123.123.123:5060;ngcpct='sip:<a href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a>'>.</div>


<div>.</div><div>v=0.</div><div>o=root 13171 13172 IN IP4 123.123.123.123.</div><div>s=session.</div><div>c=IN IP4 123.123.123.123.</div><div>t=0 0.</div><div>m=audio 32354 RTP/AVP 18 101.</div><div>a=rtpmap:18 G729/8000.</div>


<div>a=fmtp:18 annexb=no.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-16.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div>a=rtcp:32355.</div></div><div><br></div></div><div><div class="h5"><div class="gmail_extra">


<br><br><div class="gmail_quote">On Fri, May 10, 2013 at 12:21 AM, Kevin Masse <span dir="ltr"><<a href="mailto:kmasse@questblue.com" target="_blank">kmasse@questblue.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Good morning, if you are looking to force the outbound caller ID of the subscriber make sure you have the DID in the e.164 number field.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">That should force the outbound caller ID to be that number.<u></u><u></u></span></p><p class="MsoNormal">


<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">For clients that have multiple outbound caller ID leave out the e.164 subscriber number and place all the numbers in the alias area instead.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kevin<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>


<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:spce-user-bounces@lists.sipwise.com" target="_blank">spce-user-bounces@lists.sipwise.com</a> [mailto:<a href="mailto:spce-user-bounces@lists.sipwise.com" target="_blank">spce-user-bounces@lists.sipwise.com</a>] <b>On Behalf Of </b>Barry Flanagan<br>


<b>Sent:</b> Thursday, May 09, 2013 10:18 AM<br><b>To:</b> Martin Wong<br><b>Cc:</b> <a href="mailto:spce-user@lists.sipwise.com" target="_blank">spce-user@lists.sipwise.com</a><br><b>Subject:</b> Re: [Spce-user] Force CLI<u></u><u></u></span></p>


<div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On 9 May 2013 13:30, Martin Wong <<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.com.au</a>> wrote:<u></u><u></u></p>


<div><div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p>


</div><div><p class="MsoNormal">I am testing a few subscribers. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">One is from a normal sip phone ... the <a href="mailto:fromuser@xx.xx.xx.xx" target="_blank">fromuser@xx.xx.xx.xx</a> is the correct CLI set, therefore the caller ID is correctly displayed at the end point device as it goes through the downstream provider.<u></u><u></u></p>


</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">The other is an asterisk box. Even though the CLI is set in the SPCE portal, it comes up as something else in the <a href="mailto:fromuser@xx.xx.xx.xx" target="_blank">fromuser@xx.xx.xx.xx</a><u></u><u></u></p>


</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I would like to force the CLI no matter what the asterisk box is giving out.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>


</div></div></blockquote><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Hi <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I think you want to set user_cli in the subscriber's preferences:<u></u><u></u></p>


</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">user_cli: SIP username (the localpart of the whole SIP URI, eg., "user" of SIP URI "<a href="mailto:user@example.com" target="_blank">user@example.com</a>"). "user-provided calling line identification" - specifies the SIP username that is used for outgoing calls. If set, this is put in the SIP "From" header (as user-provided calling number) if a client sends a CLI which is not allowed by "allowed_clis" or if "allowed_clis" is not set.<u></u><u></u></p>


</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Hope this helps.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div>


<div><p class="MsoNormal">-Barry<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div></div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>