[Spce-user] Incoming calls from sip trunk

Christopher Saroli csaroli at isysp.com
Thu Jul 5 16:00:56 EDT 2012


I am actually getting a different error than before, it is a "404 not found" error.  I have attached the log

We receive *no* country code from the SIP trunk provider- It's just a 10 digit American dialed-number as a destination.   It does not seem to match the subscriber's E.164 properly because if I make the SIP URI the telephone number, it does match and the call is completed.
Do we need a regex re-write rule to add "1" or "+1" to the number being received in order for it to match properly?  If so, where would we specifiy the re-write rule?

Thank you
---------------------------------
Christopher Saroli
csaroli at isysp.com


-----Original Message-----
From: Jon Bonilla [mailto:jbonilla at sipwise.com] 
Sent: Thursday, July 05, 2012 2:55 PM
To: spce-user@
Cc: Christopher Saroli
Subject: Re: [Spce-user] Incoming calls from sip trunk

El Thu, 5 Jul 2012 17:33:20 +0000
Christopher Saroli <csaroli at isysp.com> escribió:

> I have attached the capture, Thanks again
> 

Hi Christopher.

Next time please use "ngrep-sip b" to avoid OPTIONS traffic. What I can see in your trace is an INVITE request being rejected with 407 for auth challenge and your device does not send another INVITE with the auth credentials.

Please check your device. Make sure you have configured the user and password and the device is capable of authenticating. This is not a server problem.


cheers,

Jon

-------------- next part --------------
nterface: any
filter: (ip or ip6) and ( port 5060 )
match: (^|CSeq:\s?\d* )(INVITE|ACK|CANCEL|BYE|MESSAGE|REFER|PRACK|INFO|UPDATE)
###############################
U 2012/07/05 21:37:06.500432 64.120.22.242:5060 -> private:5060
INVITE sip:private at private:5060 SIP/2.0'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>'
Contact: <sip:private at 64.120.22.242>'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 INVITE'
User-Agent: VoIPMS/SERAST'
Max-Forwards: 70'
Remote-Party-ID: "Chris Saroli" <sip:private at 64.120.22.242>;privacy=off;screen=no'
Date: Thu, 05 Jul 2012 19:37:06 GMT'
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO'
Supported: replaces'
Content-Type: application/sdp'
Content-Length: 475'
'
v=0'
o=root 19107 19107 IN IP4 64.120.22.242'
s=session'
c=IN IP4 64.120.22.242'
t=0 0'
m=audio 13900 RTP/AVP 0 3 8 112 5 10 7 18 111 101'
a=rtpmap:0 PCMU/8000'
a=rtpmap:3 GSM/8000'
a=rtpmap:8 PCMA/8000'
a=rtpmap:112 AAL2-G726-32/8000'
a=rtpmap:5 DVI4/8000'
a=rtpmap:10 L16/8000'
a=rtpmap:7 LPC/8000'
a=rtpmap:18 G729/8000'
a=fmtp:18 annexb=no'
a=rtpmap:111 G726-32/8000'
a=rtpmap:101 telephone-event/8000'
a=fmtp:101 0-16'
a=silenceSupp:off - - - -'
a=ptime:20'
a=sendrecv'

#
U 2012/07/05 21:37:06.501003 127.0.0.1:5060 -> 127.0.0.1:5062
INVITE sip:private at private:5060 SIP/2.0'
Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=as051ed9c1;ngcplb=yes>'
Record-Route: <sip:private;r2=on;lr=on;ftag=as051ed9c1;ngcplb=yes>'
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK0c33.8f7989be4564d235836b68ef597de3ea.0'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport=5060'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>'
Contact: <sip:private at 64.120.22.242>'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 INVITE'
User-Agent: VoIPMS/SERAST'
Max-Forwards: 69'
Remote-Party-ID: "Chris Saroli" <sip:private at 64.120.22.242>;privacy=off;screen=no'
Date: Thu, 05 Jul 2012 19:37:06 GMT'
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO'
Supported: replaces'
Content-Type: application/sdp'
Content-Length: 475'
P-NGCP-Src-Ip: 64.120.22.242'
P-NGCP-Src-Port: 5060'
P-NGCP-Src-Proto: udp'
P-NGCP-Src-Af: 4'
'
v=0'
o=root 19107 19107 IN IP4 64.120.22.242'
s=session'
c=IN IP4 64.120.22.242'
t=0 0'
m=audio 13900 RTP/AVP 0 3 8 112 5 10 7 18 111 101'
a=rtpmap:0 PCMU/8000'
a=rtpmap:3 GSM/8000'
a=rtpmap:8 PCMA/8000'
a=rtpmap:112 AAL2-G726-32/8000'
a=rtpmap:5 DVI4/8000'
a=rtpmap:10 L16/8000'
a=rtpmap:7 LPC/8000'
a=rtpmap:18 G729/8000'
a=fmtp:18 annexb=no'
a=rtpmap:111 G726-32/8000'
a=rtpmap:101 telephone-event/8000'
a=fmtp:101 0-16'
a=silenceSupp:off - - - -'
a=ptime:20'
a=sendrecv'

#
U 2012/07/05 21:37:06.501075 127.0.0.1:5062 -> 127.0.0.1:5060
SIP/2.0 100 Trying'
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK0c33.8f7989be4564d235836b68ef597de3ea.0;rport=5060'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport=5060'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 INVITE'
Server: Sipwise NGCP Proxy 2.X'
Content-Length: 0'
'

#
U 2012/07/05 21:37:06.501481 private:5060 -> 64.120.22.242:5060
SIP/2.0 100 Trying'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport=5060'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 INVITE'
Server: Sipwise NGCP Proxy 2.X'
Content-Length: 0'
'

#
U 2012/07/05 21:37:06.508252 127.0.0.1:5062 -> 127.0.0.1:5060
SIP/2.0 404 Not Found'
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK0c33.8f7989be4564d235836b68ef597de3ea.0;rport=5060'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport=5060'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>;tag=f3067022b00c564156251ba2f28f331f-6390'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 INVITE'
Server: Sipwise NGCP Proxy 2.X'
Content-Length: 0'
'

#
U 2012/07/05 21:37:06.508353 private:5060 -> 64.120.22.242:5060
SIP/2.0 404 Not Found'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport=5060'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>;tag=f3067022b00c564156251ba2f28f331f-6390'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 INVITE'
Server: Sipwise NGCP Proxy 2.X'
Content-Length: 0'
'

#
U 2012/07/05 21:37:06.546399 64.120.22.242:5060 -> private:5060
ACK sip:private at private:5060 SIP/2.0'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>;tag=f3067022b00c564156251ba2f28f331f-6390'
Contact: <sip:private at 64.120.22.242>'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 ACK'
User-Agent: VoIPMS/SERAST'
Max-Forwards: 70'
Remote-Party-ID: "Chris Saroli" <sip:private at 64.120.22.242>;privacy=off;screen=no'
Content-Length: 0'
'

#
U 2012/07/05 21:37:06.546592 127.0.0.1:5060 -> 127.0.0.1:5062
ACK sip:private at private:5060 SIP/2.0'
Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=as051ed9c1;ngcplb=yes>'
Record-Route: <sip:private;r2=on;lr=on;ftag=as051ed9c1;ngcplb=yes>'
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK0c33.8f7989be4564d235836b68ef597de3ea.0'
Via: SIP/2.0/UDP 64.120.22.242:5060;branch=z9hG4bK20a3791c;rport=5060'
From: "Chris Saroli" <sip:private at 64.120.22.242>;tag=as051ed9c1'
To: <sip:private at private:5060>;tag=f3067022b00c564156251ba2f28f331f-6390'
Contact: <sip:private at 64.120.22.242>'
Call-ID: 44dce36e4a04cf047b15c5bc1860761f at 64.120.22.242'
CSeq: 102 ACK'
User-Agent: VoIPMS/SERAST'
Max-Forwards: 69'
Remote-Party-ID: "Chris Saroli" <sip:private at 64.120.22.242>;privacy=off;screen=no'
Content-Length: 0'
P-NGCP-Src-Ip: 64.120.22.242'
P-NGCP-Src-Port: 5060'
P-NGCP-Src-Proto: udp'
P-NGCP-Src-Af: 4'
'

############^Cexit
96 received, 0 dropped
root at spce:/etc/asterisk#


More information about the Spce-user mailing list