<div dir="ltr"><div style>Hi Jon,</div><div style><br></div><div style>Here's the logs. Caller is 0415827421, 44.92.1.2 is the peer and 42.136.11.129 is the SPCE box.<br></div><div style><br></div><div style>It seems that somewhere down the road, the regex is failing and its taking Null as the destination number if I'm not wrong. </div>
<div style><br></div><div style>What's your take on this?</div><div style><br></div><div style><div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: New request - M=INVITE R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> F=<a href="mailto:sip%3A0415827421@44.92.1.2">sip:0415827421@44.92.1.2</a> T=<a href="mailto:sip%3A0390058982@44.92.1.2">sip:0390058982@44.92.1.2</a> IP=<a href="http://44.92.1.2:5060">44.92.1.2:5060</a> (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Call from PSTN - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Load peer preferences for peer host '7' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Load dialplan IDs for peer host '7' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Fetched dialplan IDs caller_in='1', callee_in='2' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Use 'P-NGCP-Src-Ip' for CDR IP - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Dialog set mark total - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Dialog set mark peer to '7' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: IP authorization for caller not provisioned, allow call - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: User-Provided CLI '0415827421' taken from From-User - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Network-Provided CLI '0415827421' taken from From-User - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Applying caller-in peer rewrite rules on user-provided CLI using dpid '1' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Rewriting user-provided CLI '0415827421' to '415827421' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Applying caller-in peer rewrite rules on network-provided CLI using dpid '1' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Rewriting network-provided CLI '0415827421' to '415827421' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Setting '<a href="mailto:415827421@44.92.1.2">415827421@44.92.1.2</a>' as initiating user-provided CLI - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Setting '<a href="mailto:415827421@44.92.1.2">415827421@44.92.1.2</a>' as initiating network-provided CLI - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Searching for callee - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Applying callee-in peer rewrite rules using dpid '2' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: No matching rewrite rules for '<null>' found - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Clear callee preferences - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Callee is not local - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Check Administrative NCOS level - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Check User NCOS level - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Checking URI '@<a href="http://42.136.11.129">42.136.11.129</a>' and CLI '<null>' against block out lists - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Admin caller block mode is 'open' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Caller block mode is 'open' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Call to unknown user - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Accounting failed request for uuid '0' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Setting acc source-leg for uuid '0': '0|0415827421|44.92.1.2|415827421|||<null>|||0|call|44.92.1.2|1366370629.932476' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Setting acc destination-leg for uuid '0': '0|||<null>|<null>|0|<null>|42.136.11.129|<null>|42.136.11.129' - R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div>Apr 19 21:23:49 km1 /usr/sbin/kamailio[1866]: INFO: <script>: New request - M=ACK R=sip:<a href="http://42.136.11.129:5060">42.136.11.129:5060</a> F=<a href="mailto:sip%3A0415827421@44.92.1.2">sip:0415827421@44.92.1.2</a> T=<a href="mailto:sip%3A0390058982@44.92.1.2">sip:0390058982@44.92.1.2</a> IP=<a href="http://44.92.1.2:5060">44.92.1.2:5060</a> (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=<a href="mailto:call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1">call-F1F8CD5B-678B-3010-130D-2F4EB@44.92.1.1</a></div>
<div><br></div></div><div class="gmail_extra"><br>
<br><br><div class="gmail_quote">On Fri, Apr 19, 2013 at 7:36 PM, Jon Bonilla <span dir="ltr"><<a href="mailto:jbonilla@sipwise.com" target="_blank">jbonilla@sipwise.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
El Fri, 19 Apr 2013 18:17:49 +1000<br>
Martin Wong <<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.com.au</a>> escribió:<br>
<div><br>
> Hi Lorenzo,<br>
><br>
> I think it's not going through the rewrite rule itself.<br>
><br>
> I've hardcoded the rewrite rule to say<br>
><br>
> ^123456789 -> 12345678900 (for example)<br>
><br>
> and it didn't even catch it.<br>
><br>
> Is it because I've manually updated the template to register the peer?<br>
><br>
><br>
<br>
</div>Please send the proxy log of an example call. grep the proxy log by ID.<br>
<br>
<br>_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">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>
<br></blockquote></div><br></div></div>