[OpenSIPS-Users] Far end byes are not being routed back to UAE
Kurtis vel
kurtisvelarde at gmail.com
Tue Apr 5 02:20:48 CEST 2011
Hi Everyone,
I'm a new user and am having an issue routing byes from the called recipient
back to the origin UAE.
With `opensipsctl online` I can see that the device is registered. When the
recipient hangs up, opensips returns a 404 to the bye sent from my provider.
Attached is a sip trace and most or the opensips.cfg routing script. It is
marked where the 404 is being sent in both files.
Tried adding -
if (uri==myself){
route(1);
}
In front of the 404 reply but a 483 To Many Hops is revived from the remote
network.
Any help would be appreciated.
Thanks
Kurtis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110404/48d184c3/attachment-0001.htm>
-------------- next part --------------
Inital invite *works fine *
23:49:58.074500 IP rev-98-158-206-111.dvpne.com.34699 > sip01.siptech.internal.sip: SIP, length: 920
E.......u.. b..o28j)........INVITE sip:13103442105 at 50.56.106.41 SIP/2.0
Via: SIP/2.0/UDP 172.16.113.63:10090;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:1000 at 172.16.113.63:10090>
To: "13103442105"<sip:13103442105 at 50.56.106.41>
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1104o stamp 56125
Content-Length: 368
v=0
o=- 3 2 IN IP4 172.16.113.63
s=CounterPath X-Lite 3.0
c=IN IP4 172.16.113.63
t=0 0
m=audio 45806 RTP/AVP 107 0 8 101
a=alt:1 3 : DTu1AzhP YO+A9vbf 172.16.113.63 45806
a=alt:2 2 : 6T0NqZTc ko4ixGgd 192.168.62.1 45806
a=alt:3 1 : 5W2uMwF9 r44bb+hd 192.168.126.1 45806
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:101 telephone-event/8000
a=sendrecv
23:49:58.074726 IP sip01.siptech.internal.sip > rev-98-158-206-111.dvpne.com.34699: SIP, length: 391
E..... at .@.k.28j)b..o........SIP/2.0 100 Giving a try
Via: SIP/2.0/UDP 172.16.113.63:10090;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport=34699;received=98.158.206.111
To: "13103442105"<sip:13103442105 at 50.56.106.41>
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Server: OpenSIPS (1.6.4-2-notls (x86_64/linux))
Content-Length: 0
23:49:58.169968 IP sip01.siptech.internal.sip > cust-216.115.69.144.switchnap.com.sip: SIP, length: 1065
E..E.. at .@.|328j).sE......1..INVITE sip:91045338#13103442105 at sip.flowroute.com SIP/2.0
Record-Route: <sip:50.56.106.41;lr=on>
Via: SIP/2.0/UDP 50.56.106.41;branch=z9hG4bKe454.c2540392.0
Via: SIP/2.0/UDP 172.16.113.63:10090;received=98.158.206.111;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport=34699
Max-Forwards: 69
Contact: <sip:1000 at 172.16.113.63:10090>
To: "13103442105"<sip:13103442105 at 50.56.106.41>
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1104o stamp 56125
Content-Length: 368
v=0
o=- 3 2 IN IP4 172.16.113.63
s=CounterPath X-Lite 3.0
c=IN IP4 172.16.113.63
t=0 0
m=audio 45806 RTP/AVP 107 0 8 101
a=alt:1 3 : DTu1AzhP YO+A9vbf 172.16.113.63 45806
a=alt:2 2 : 6T0NqZTc ko4ixGgd 192.168.62.1 45806
a=alt:3 1 : 5W2uMwF9 r44bb+hd 192.168.126.1 45806
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:101 telephone-event/8000
a=sendrecv
23:49:58.215762 IP cust-216.115.69.144.switchnap.com.sip > sip01.siptech.internal.sip: SIP, length: 397
E....`..2..{.sE.28j).......rSIP/2.0 100 Trying
Via: SIP/2.0/UDP 50.56.106.41;branch=z9hG4bKe454.c2540392.0
Via: SIP/2.0/UDP 172.16.113.63:10090;received=98.158.206.111;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport=34699
To: "13103442105"<sip:13103442105 at 50.56.106.41>
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Content-Length: 0
23:49:59.902414 IP cust-216.115.69.144.switchnap.com.sip > sip01.siptech.internal.sip: SIP, length: 843
E..g.a..2....sE.28j).....S..SIP/2.0 183 Session Progress
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
To: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
Via: SIP/2.0/UDP 50.56.106.41;rport=5060;branch=z9hG4bKe454.c2540392.0
Via: SIP/2.0/UDP 172.16.113.63:10090;received=98.158.206.111;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport=34699
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Record-Route: <sip:216.115.69.133;lr>
Record-Route: <sip:216.115.69.144;lr>
Record-Route: <sip:50.56.106.41;lr=on>
Contact: <sip:3103442105 at 65.98.237.158:5060;transport=udp>
Content-Type: application/sdp
Content-Length: 182
v=0
o=- 3510949784 3510949800 IN IP4 65.98.237.158
s=-
c=IN IP4 65.98.237.158
t=0 0
m=audio 27042 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
23:49:59.902571 IP sip01.siptech.internal.sip > rev-98-158-206-111.dvpne.com.34699: SIP, length: 771
E..... at .@.jO28j)b..o........SIP/2.0 183 Session Progress
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
To: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
Via: SIP/2.0/UDP 172.16.113.63:10090;received=98.158.206.111;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport=34699
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Record-Route: <sip:216.115.69.133;lr>
Record-Route: <sip:216.115.69.144;lr>
Record-Route: <sip:50.56.106.41;lr=on>
Contact: <sip:3103442105 at 65.98.237.158:5060;transport=udp>
Content-Type: application/sdp
Content-Length: 182
v=0
o=- 3510949784 3510949800 IN IP4 65.98.237.158
s=-
c=IN IP4 65.98.237.158
t=0 0
m=audio 27042 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
23:50:03.685664 IP rev-98-158-206-111.dvpne.com.23632 > sip01.siptech.internal.sip: SIP, length: 4
E.. v...u...b..o28j)\P.....>
***Call answered*** - *works fine*
23:50:07.471158 IP cust-216.115.69.144.switchnap.com.sip > sip01.siptech.internal.sip: SIP, length: 829
E..Y.b..2....sE.28j).....E..SIP/2.0 200 OK
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
To: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
Via: SIP/2.0/UDP 50.56.106.41;rport=5060;branch=z9hG4bKe454.c2540392.0
Via: SIP/2.0/UDP 172.16.113.63:10090;received=98.158.206.111;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport=34699
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Record-Route: <sip:216.115.69.133;lr>
Record-Route: <sip:216.115.69.144;lr>
Record-Route: <sip:50.56.106.41;lr=on>
Contact: <sip:3103442105 at 65.98.237.158:5060;transport=udp>
Content-Type: application/sdp
Content-Length: 182
v=0
o=- 3510949784 3510949800 IN IP4 65.98.237.158
s=-
c=IN IP4 65.98.237.158
t=0 0
m=audio 27042 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
23:50:07.471309 IP sip01.siptech.internal.sip > rev-98-158-206-111.dvpne.com.34699: SIP, length: 757
E..... at .@.j]28j)b..o.......}SIP/2.0 200 OK
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
To: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
Via: SIP/2.0/UDP 172.16.113.63:10090;received=98.158.206.111;branch=z9hG4bK-d8754z-fb00fe495c7c8415-1---d8754z-;rport=34699
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 INVITE
Record-Route: <sip:216.115.69.133;lr>
Record-Route: <sip:216.115.69.144;lr>
Record-Route: <sip:50.56.106.41;lr=on>
Contact: <sip:3103442105 at 65.98.237.158:5060;transport=udp>
Content-Type: application/sdp
Content-Length: 182
v=0
o=- 3510949784 3510949800 IN IP4 65.98.237.158
s=-
c=IN IP4 65.98.237.158
t=0 0
m=audio 27042 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
23:50:07.746750 IP rev-98-158-206-111.dvpne.com.34699 > sip01.siptech.internal.sip: SIP, length: 575
E..[.}..u...b..o28j).....GP.ACK sip:3103442105 at 65.98.237.158:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 172.16.113.63:10090;branch=z9hG4bK-d8754z-22222857dd5c124e-1---d8754z-;rport
Max-Forwards: 70
Route: <sip:50.56.106.41;lr>
Route: <sip:216.115.69.144;lr>
Route: <sip:216.115.69.133;lr>
Contact: <sip:1000 at 172.16.113.63:10090>
To: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 ACK
User-Agent: X-Lite release 1104o stamp 56125
Content-Length: 0
23:50:07.747534 IP sip01.siptech.internal.sip > cust-216.115.69.144.switchnap.com.sip: SIP, length: 636
E..... at .@.}.28j).sE.........ACK sip:3103442105 at 65.98.237.158:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 50.56.106.41;branch=z9hG4bKe454.c2540392.2
Via: SIP/2.0/UDP 172.16.113.63:10090;received=98.158.206.111;branch=z9hG4bK-d8754z-22222857dd5c124e-1---d8754z-;rport=34699
Max-Forwards: 69
Route: <sip:216.115.69.144;lr>
Route: <sip:216.115.69.133;lr>
Contact: <sip:1000 at 172.16.113.63:10090>
To: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
From: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 1 ACK
User-Agent: X-Lite release 1104o stamp 56125
Content-Length: 0
***Far end hangs up call*** *Breaks here*
23:50:20.141955 IP cust-216.115.69.144.switchnap.com.sip > sip01.siptech.internal.sip: SIP, length: 644
E....c..2....sE.28j)........BYE sip:1000 at 50.56.106.41:5060 SIP/2.0
Record-Route: <sip:216.115.69.144;lr>
Record-Route: <sip:216.115.69.133;lr>
From: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
To: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Via: SIP/2.0/UDP 216.115.69.144;branch=z9hG4bKa8df.5ba5f93cd85a1347d5daa74781f332fe.0
Via: SIP/2.0/UDP 216.115.69.133;branch=z9hG4bKa8df.929940dd2f121716afee35504189f6d2.0
Via: SIP/2.0/UDP 65.98.237.158:5060;branch=z9hG4bKunr1bi30dgegbe9ev4m0.1
Max-Forwards: 67
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 34708768 BYE
Content-Length: 0
Route: <sip:50.56.106.41;lr=on>
23:50:20.142335 IP sip01.siptech.internal.sip > cust-216.115.69.144.switchnap.com.sip: SIP, length: 563
E..O.. at .@.~)28j).sE......;..SIP/2.0 404 Not here said the fei fei
From: "13103442105"<sip:13103442105 at 50.56.106.41>;tag=14c02ea8+1+11f0227+ccda79dd
To: "1000"<sip:1000 at 50.56.106.41>;tag=d516a36d
Via: SIP/2.0/UDP 216.115.69.144;branch=z9hG4bKa8df.5ba5f93cd85a1347d5daa74781f332fe.0
Via: SIP/2.0/UDP 216.115.69.133;branch=z9hG4bKa8df.929940dd2f121716afee35504189f6d2.0
Via: SIP/2.0/UDP 65.98.237.158:5060;branch=z9hG4bKunr1bi30dgegbe9ev4m0.1
Call-ID: ZGVmMzNjNjE2ZjhjNzIzMTVmMjdmOTlmYzFlYzYwMWE.
CSeq: 34708768 BYE
Server: OpenSIPS (1.6.4-2-notls (x86_64/linux))
Content-Length: 0
-------------- next part --------------
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
}
if (has_totag()) {
# sequential request withing a dialog should
# take the path determined by record-routing
if (loose_route()) {
if (is_method("BYE")) {
setflag(1); # do accounting ...
setflag(3); # ... even if the transaction fails
} else if (is_method("INVITE")) {
# even if in most of the cases is useless, do RR for
# re-INVITEs alos, as some buggy clients do change route set
# during the dialog.
record_route();
}
# route it out to whatever destination was set by loose_route()
# in $du (destination URI).
route(1);
} else {
if ( is_method("ACK") ) {
if ( t_check_trans() ) {
t_relay();
exit;
} else {
exit;
}
}
*404 returned* sl_send_reply("404","Not here said the fei fei");
}
exit;
}
#initial requests
# CANCEL processing
if (is_method("CANCEL"))
{
if (t_check_trans())
t_relay();
exit;
}
t_check_trans();
# preloaded route checking
if (loose_route()) {
xlog("L_ERR",
"Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]");
if (!is_method("ACK"))
sl_send_reply("403","Preload Route denied");
exit;
}
# record routing
if (!is_method("REGISTER|MESSAGE"))
record_route();
# account only INVITEs
if (is_method("INVITE")) {
setflag(1); # do accounting
setflag(2); # Even on missed calls
route(4);
}
if (!uri==myself)
{
append_hf("P-hint: outbound\r\n");
route(1);
}
if (is_method("PUBLISH"))
{
sl_send_reply("503", "Service Unavailable");
exit;
}
if (is_method("REGISTER"))
{
# authenticate the REGISTER requests (uncomment to enable auth)
if (!www_authorize("", "subscriber"))
{
www_challenge("", "0");
exit;
}
##
if (!db_check_to())
{
sl_send_reply("403","Forbidden auth ID");
exit;
}
if (!save("location"))
sl_reply_error();
exit;
}
if ($rU==NULL) {
# request with no Username in RURI
sl_send_reply("484","Address Incomplete");
exit;
}
# apply DB based aliases (uncomment to enable)
##alias_db_lookup("dbaliases");
# do lookup with method filtering
if (!lookup("location","m")) {
switch ($retcode) {
case -1:
case -3:
t_newtran();
t_reply("404", "Not Found");
exit;
case -2:
sl_send_reply("405", "Method Not Allowed");
exit;
}
}
# when routing via usrloc, log the missed calls also
setflag(2);
route(1);
route[1] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {
t_on_branch("2");
t_on_reply("2");
t_on_failure("1");
}
if (!t_relay()) {
sl_reply_error();
};
exit;
}
route[4] {
# Dynamic routing route
if( !do_routing("0") ) {
send_reply("503","no rules found matching the URI prefix");
exit;
}
setflag(10);
route(1);
}
More information about the Users
mailing list