<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div>Hmm. According to vim, I only have 5675 lines in that file.<div><br></div><div>Clint</div><div><br><div><div>On Feb 25, 2014, at 2:00 PM, Lorenzo Mangani <<a href="mailto:lorenzo.mangani@gmail.com">lorenzo.mangani@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Clint,<div><br></div><div>They're in /etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2 around line 5838</div></div><div class="gmail_extra"><br clear="all"><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><span style="font-family:Arial"><div style="font-size:13px;color:rgb(119,119,119)">
<font><br></font></div><div style="font-size:13px;color:rgb(119,119,119)"><font><br></font></div>
<div style="font-size:13px"><font color="#666666">Lorenzo Mangani</font></div><div style="font-size:13px"><font color="#666666"><div style="font-size:x-small"><br></div><div style="font-size:x-small">
HOMER DEV TEAM</div></font></div><div style="font-size:x-small"><font size="1" color="#666666">QXIP - Capture Engineering</font></div><div style="font-size:x-small"><br></div></span></span></div>
<br><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 7:53 PM, Clint Wiley <span dir="ltr"><<a href="mailto:cwiley@nfis.com" target="_blank">cwiley@nfis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi all,<br>
<br>
I was curious if anyone had any ideas. I’ve got to resolve this.<br>
<span class="HOEnZb"><font color="#888888"><br>
Clint<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Feb 24, 2014, at 10:17 AM, cwiley <<a href="mailto:clint@newfrontierssolutions.com">clint@newfrontierssolutions.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> This went dormant as another project took center stage. However, I now have to resolve this again! I’ve followed your example below but cannot find the following lines to remove:<br>
><br>
>> if(pv_isset("$xavp(caller_real_prefs[0]=>peer_auth_realm)"))<br>
>> {<br>
>> xlog("L_NOTICE", "Setting R-URI '$rU@$xavp(caller_real_prefs[0]=>peer_auth_realm)' using peer auth realm of subscriber - [% logreq -%]\n");<br>
>> $ru = "sip:" + $rU + "@" + $xavp(caller_real_prefs[0]=>peer_auth_realm);<br>
>> }<br>
>> else if(pv_isset("$xavp(callee_real_prefs[0]=>peer_auth_realm)"))<br>
>> {<br>
>> xlog("L_NOTICE", "Setting R-URI '$rU@$xavp(callee_peer_prefs[0]=>peer_auth_realm)' using peer auth realm of peer - [% logreq -%]\n");<br>
>> $ru = "sip:" + $rU + "@" + $xavp(callee_peer_prefs[0]=>peer_auth_realm);<br>
>> }<br>
><br>
> Any ideas?<br>
><br>
> Clint<br>
><br>
> On Dec 5, 2013, at 4:20 PM, Andrew Pogrebennyk <<a href="mailto:apogrebennyk@sipwise.com">apogrebennyk@sipwise.com</a>> wrote:<br>
><br>
>> Hi Clint,<br>
>><br>
>> Clint Wiley wrote:<br>
>>> Hi,<br>
>>><br>
>>> Here is the proxy log:<br>
>><br>
>> the rewrite rule is applied properly and the call leaves the server<br>
>> without 333 prefix:<br>
>><br>
>> Dec 5 13:16:23 sipproxy2 /usr/sbin/kamailio[1711]: INFO: <script>:<br>
>> Relaying request, du='sip:<a href="http://sip.flowroute.com:5060/" target="_blank">sip.flowroute.com:5060</a>',<br>
>> fs='udp:<a href="http://67.20.37.3:5060/" target="_blank">67.20.37.3:5060</a>' - R=<a href="mailto:sip%3A2405201302@sip.flowroute.com">sip:2405201302@sip.flowroute.com</a><br>
>> ID=NjdhOWM1MzFjYTRmMjgwMDkyNzY0N2EwYzU4OGZmOTY_b2b-1<br>
>><br>
>> This 'sip:<a href="http://sip.flowroute.com:5060/" target="_blank">sip.flowroute.com:5060</a>' has caught my attention. From<br>
>> proxy.log it looks like your peering IP address is 216.115.69.144.<br>
>> However because of peer_auth_realm set to <a href="http://sip.flowroute.com/" target="_blank">sip.flowroute.com</a> proxy<br>
>> changes R-URI to that address:<br>
>><br>
>> Dec 5 13:16:23 sipproxy2 /usr/sbin/kamailio[1882]: INFO: <script>:<br>
>> Setting R-URI using peer auth realm '<a href="mailto:2405201302@sip.flowroute.com">2405201302@sip.flowroute.com</a>' -<br>
>> R=sip:<a href="mailto:2405201302@216.115.69.144">2405201302@216.115.69.144</a>:5060;transport=udp<br>
>> ID=NjdhOWM1MzFjYTRmMjgwMDkyNzY0N2EwYzU4OGZmOTY<br>
>><br>
>> Then it sends request to the lb which resolves <a href="http://sip.flowroute.com/" target="_blank">sip.flowroute.com</a> via DNS<br>
>> SRV. The request goes somewhere, but probably not where you want it.<br>
>><br>
>> Probably we should not overwrite R-URI with peer_auth_realm; we'll<br>
>> review that. In the meantime you can disable this overwrite. Copy<br>
>> /etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2 to<br>
>> /etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.customtt.tt2 (if<br>
>> it doesn't exist yet) and remove the following lines (for version 3.1,<br>
>> in 2.8 search for the line which says "Setting R-URI using peer auth<br>
>> realm"), save and ngcpcfg apply:<br>
>>> if(pv_isset("$xavp(caller_real_prefs[0]=>peer_auth_realm)"))<br>
>>> {<br>
>>> xlog("L_NOTICE", "Setting R-URI '$rU@$xavp(caller_real_prefs[0]=>peer_auth_realm)' using peer auth realm of subscriber - [% logreq -%]\n");<br>
>>> $ru = "sip:" + $rU + "@" + $xavp(caller_real_prefs[0]=>peer_auth_realm);<br>
>>> }<br>
>>> else if(pv_isset("$xavp(callee_real_prefs[0]=>peer_auth_realm)"))<br>
>>> {<br>
>>> xlog("L_NOTICE", "Setting R-URI '$rU@$xavp(callee_peer_prefs[0]=>peer_auth_realm)' using peer auth realm of peer - [% logreq -%]\n");<br>
>>> $ru = "sip:" + $rU + "@" + $xavp(callee_peer_prefs[0]=>peer_auth_realm);<br>
>>> }<br>
>><br>
>> Regards,<br>
>> Andrew<br>
><br>
<br>
<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
</div></div></blockquote></div><br></div>
</blockquote></div><br></div></body></html>