[Spce-user] Rewrite Question

Martin Wong martin.wong at binaryelements.com.au
Fri Apr 19 08:03:45 EDT 2013


Hi Jon,

Here's the logs. Caller is 0415827421, 44.92.1.2 is the peer and
42.136.11.129 is the SPCE box.

It seems that somewhere down the road, the regex is failing and its taking
Null as the destination number if I'm not wrong.

What's your take on this?

Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: New request -
M=INVITE R=sip:42.136.11.129:5060 F=sip:0415827421 at 44.92.1.2 T=
sip:0390058982 at 44.92.1.2 IP=44.92.1.2:5060 (127.0.0.1:5060) ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Call from
PSTN - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Load peer
preferences for peer host '7' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Load dialplan
IDs for peer host '7' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Fetched
dialplan IDs caller_in='1', callee_in='2' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Use
'P-NGCP-Src-Ip' for CDR IP - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Dialog set
mark total - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Dialog set
mark peer to '7' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: IP
authorization for caller not provisioned, allow call - R=sip:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: User-Provided
CLI '0415827421' taken from From-User - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>:
Network-Provided CLI '0415827421' taken from From-User - R=sip:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
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:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Rewriting
user-provided CLI '0415827421' to '415827421' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
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:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Rewriting
network-provided CLI '0415827421' to '415827421' - R=sip:42.136.11.129:5060ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Setting '
415827421 at 44.92.1.2' as initiating user-provided CLI - R=sip:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Setting '
415827421 at 44.92.1.2' as initiating network-provided CLI - R=sip:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Searching for
callee - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Applying
callee-in peer rewrite rules using dpid '2' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: No matching
rewrite rules for '<null>' found - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Clear callee
preferences - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Callee is not
local - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Check
Administrative NCOS level - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Check User
NCOS level - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Checking URI
'@42.136.11.129' and CLI '<null>' against block out lists - R=sip:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Admin caller
block mode is 'open' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Caller block
mode is 'open' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Call to
unknown user - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1868]: INFO: <script>: Accounting
failed request for uuid '0' - R=sip:42.136.11.129:5060 ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
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:42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
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:
42.136.11.129:5060 ID=call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1
Apr 19 21:23:49 km1 /usr/sbin/kamailio[1866]: INFO: <script>: New request -
M=ACK R=sip:42.136.11.129:5060 F=sip:0415827421 at 44.92.1.2 T=
sip:0390058982 at 44.92.1.2 IP=44.92.1.2:5060 (127.0.0.1:5060) ID=
call-F1F8CD5B-678B-3010-130D-2F4EB at 44.92.1.1




On Fri, Apr 19, 2013 at 7:36 PM, Jon Bonilla <jbonilla at sipwise.com> wrote:

> El Fri, 19 Apr 2013 18:17:49 +1000
> Martin Wong <martin.wong at binaryelements.com.au> escribió:
>
> > Hi Lorenzo,
> >
> > I think it's not going through the rewrite rule itself.
> >
> > I've hardcoded the rewrite rule to say
> >
> > ^123456789 -> 12345678900 (for example)
> >
> > and it didn't even catch it.
> >
> > Is it because I've manually updated the template to register the peer?
> >
> >
>
> Please send the proxy log of an example call. grep the proxy log by ID.
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130419/5a6a7c06/attachment-0001.html>


More information about the Spce-user mailing list