[OpenSIPS-Users] Call transfer problem

Schneur Rosenberg rosenberg11219 at gmail.com
Mon Mar 9 19:40:33 CET 2015


I have a OpenSIPS server that acts as a load balancing server for a couple
of asterisk servers, and lately I'm having a issue with asterisk responding
with a 488 Not acceptable here for transfer requests when it comes to port
5060 on the Opensips server, but if I send it to another port it works
fine, I realized that when using port 5060 the sdp has port 0  ie  (m=audio
0 RTP/AVP 0 8 101.) but when using another port it does have a port number
(ie m=audio 16422 RTP/AVP 0 8 101.)

Im attaching both traces, I changed ips for security 212.212.212.212. is
the opensips server, 212.212.212.213 is the asterisk server,
and 91.176.221.245 is the end user.

Can anyone please help me make this work on port 5060 too, and can you
please explain why it would act differently, the NAT is also handeled
differently as can be seen in the VIA header (maybe router is trying to use
some ALG?)

Here is the trace using port 5060

U 91.176.221.245:49242 -> 212.212.212.212:5060
INVITE sip:19174250000 at 212.212.212.213:5060;nat=yes SIP/2.0.
Via: SIP/2.0/UDP 91.176.221.245:32781;branch=z9hG4bK-a6635dda.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=3189bbd5cf53a984o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as7f636018.
Call-ID: f8a392e9-f1139d80 at 192.168.0.101.
CSeq: 103 INVITE.
Max-Forwards: 70.
Route: <sip:212.212.212.212:5060
;lr;ftag=3189bbd5cf53a984o0;did=d97.6c4d2422>.
Proxy-Authorization: Digest

username="WindowP1",realm="myserver",nonce="54f468a5000180cd88bd6cead37ab9d1920cc4c54a0ecdd3",uri="sip:19174250000 at 212.212.

212.213:5060",algorithm=MD5,response="0a5a118e2b318621f32b5d60b600229c".
Contact: "EXT 101" <sip:WindowP1 at 91.176.221.245:32781>.
Expires: 30.
User-Agent: Cisco/SPA525G2-7.5.6.
Content-Length: 226.
Content-Type: application/sdp.
.
v=0.
o=- 33523926 33523927 IN IP4 192.168.0.101.
s=-.
c=IN IP4 0.0.0.0.
t=0 0.
m=audio 0 RTP/AVP 0 8 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendonly.

U 212.212.212.212:5060 -> 91.176.221.245:49242
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP 91.176.221.245:32781
;received=91.176.221.245;rport=49242;branch=z9hG4bK-a6635dda.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=3189bbd5cf53a984o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as7f636018.
Call-ID: f8a392e9-f1139d80 at 192.168.0.101.
CSeq: 103 INVITE.
Server: OpenSIPS (1.7.2-notls (x86_64/linux)).
Content-Length: 0.
.

U 212.212.212.212:5060 -> 212.212.212.213:5060
INVITE sip:19174250000 at 212.212.212.213:5060 SIP/2.0.
Record-Route: <sip:212.212.212.212;lr;ftag=3189bbd5cf53a984o0>.
Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe66e.0702ec92.0.
Via: SIP/2.0/UDP 91.176.221.245:32781
;rport=49242;received=91.176.221.245;branch=z9hG4bK-a6635dda.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=3189bbd5cf53a984o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as7f636018.
Call-ID: f8a392e9-f1139d80 at 192.168.0.101.
CSeq: 103 INVITE.
Max-Forwards: 69.
Proxy-Authorization: Digest

username="WindowP1",realm="myserver",nonce="54f468a5000180cd88bd6cead37ab9d1920cc4c54a0ecdd3",uri="sip:19174250000 at 212.212.

212.213:5060",algorithm=MD5,response="0a5a118e2b318621f32b5d60b600229c".
Contact: "EXT 101" <sip:WindowP1 at 91.176.221.245:49242;nat=yes>.
Expires: 30.
User-Agent: Cisco/SPA525G2-7.5.6.
Content-Length: 226.
Content-Type: application/sdp.
.
v=0.
o=- 33523926 33523927 IN IP4 192.168.0.101.
s=-.
c=IN IP4 0.0.0.0.
t=0 0.
m=audio 0 RTP/AVP 0 8 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendonly.

U 212.212.212.213:5060 -> 212.212.212.212:5060
SIP/2.0 488 Not acceptable here.
Via: SIP/2.0/UDP
212.212.212.212;branch=z9hG4bKe66e.0702ec92.0;received=212.212.212.212;rport=5060.
Via: SIP/2.0/UDP 91.176.221.245:32781
;rport=49242;received=91.176.221.245;branch=z9hG4bK-a6635dda.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=3189bbd5cf53a984o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as7f636018.
Call-ID: f8a392e9-f1139d80 at 192.168.0.101.
CSeq: 103 INVITE.
Server: SIP Server 9.21/CS.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH.
Supported: replaces, timer.
X-Asterisk-HangupCause: Normal Clearing.
X-Asterisk-HangupCauseCode: 16.
Content-Length: 0.
.
here is the trace using port 5744
U 91.176.221.245:63719 -> 212.212.212.212:5744
INVITE sip:19174250000 at 212.212.212.213:5060;nat=yes SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.101:5060;branch=z9hG4bK-6f0161f0.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=f8c2b14a55549ac2o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as1fcb82f4.
Call-ID: 5832b9ea-a4a32aa2 at 192.168.0.101.
CSeq: 103 INVITE.
Max-Forwards: 70.
Route: <sip:212.212.212.212:5744
;lr;ftag=f8c2b14a55549ac2o0;did=9ae.775cc5c5>.
Proxy-Authorization: Digest
username="WindowP1",realm="myserver",nonce="54f46d7a0000081272baa39f9e34a0ee81f471dec7b034ba",uri="
sip:19174250000 at 212.212.212.213:5060
",algorithm=MD5,response="4096f485853bf6a209424c36dac2342b".
Contact: "EXT 101" <sip:WindowP1 at 192.168.0.101:5060>.
Expires: 30.
User-Agent: Cisco/SPA525G2-7.5.6.
Content-Length: 224.
Content-Type: application/sdp.
.
v=0.
o=- 30981 30982 IN IP4 192.168.0.101.
s=-.
c=IN IP4 0.0.0.0.
t=0 0.
m=audio 16422 RTP/AVP 0 8 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendonly.

U 212.212.212.212:5744 -> 91.176.221.245:63719
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP 192.168.0.101:5060
;received=91.176.221.245;rport=63719;branch=z9hG4bK-6f0161f0.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=f8c2b14a55549ac2o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as1fcb82f4.
Call-ID: 5832b9ea-a4a32aa2 at 192.168.0.101.
CSeq: 103 INVITE.
Server: OpenSIPS (1.7.2-notls (x86_64/linux)).
Content-Length: 0.
.


U 212.212.212.212:5744 -> 212.212.212.213:5060
INVITE sip:19174250000 at 212.212.212.213:5060 SIP/2.0.
Record-Route: <sip:212.212.212.212:5744;lr;ftag=f8c2b14a55549ac2o0>.
Via: SIP/2.0/UDP 212.212.212.212:5744;branch=z9hG4bKa7d5.c5b6d177.0.
Via: SIP/2.0/UDP 192.168.0.101:5060
;rport=63719;received=91.176.221.245;branch=z9hG4bK-6f0161f0.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=f8c2b14a55549ac2o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as1fcb82f4.
Call-ID: 5832b9ea-a4a32aa2 at 192.168.0.101.
CSeq: 103 INVITE.
Max-Forwards: 69.
Proxy-Authorization: Digest
username="WindowP1",realm="myserver",nonce="54f46d7a0000081272baa39f9e34a0ee81f471dec7b034ba",uri="
sip:19174250000 at 212.212.212.213:5060
",algorithm=MD5,response="4096f485853bf6a209424c36dac2342b".
Contact: "EXT 101" <sip:WindowP1 at 91.176.221.245:63719;nat=yes>.
Expires: 30.
User-Agent: Cisco/SPA525G2-7.5.6.
Content-Length: 224.
Content-Type: application/sdp.
.
v=0.
o=- 30981 30982 IN IP4 192.168.0.101.
s=-.
c=IN IP4 0.0.0.0.
t=0 0.
m=audio 16422 RTP/AVP 0 8 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendonly.

U 212.212.212.213:5060 -> 212.212.212.212:5744
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 212.212.212.212:5744
;branch=z9hG4bKa7d5.c5b6d177.0;received=212.212.212.212;rport=5744.
Via: SIP/2.0/UDP 192.168.0.101:5060
;rport=63719;received=91.176.221.245;branch=z9hG4bK-6f0161f0.
Record-Route: <sip:212.212.212.212:5744;lr;ftag=f8c2b14a55549ac2o0>.
From: "EXT 101" <sip:WindowP1 at sip.myserver.com>;tag=f8c2b14a55549ac2o0.
To: <sip:19174250000 at sip.myserver.com>;tag=as1fcb82f4.
Call-ID: 5832b9ea-a4a32aa2 at 192.168.0.101.
CSeq: 103 INVITE.
Server: SIP Server 9.21/CS.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE.
Supported: replaces, timer.
Contact: <sip:19174250000 at 212.212.212.213:5060>.
Content-Length: 0.
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150309/73eb4797/attachment.htm>


More information about the Users mailing list