[OpenSIPS-Users] miss BYE
Nick
nick_chang at ezmobo.com
Tue Dec 13 07:01:50 CET 2011
Hello
I used ngrep .
U 220.130.6.180:55260 -> 192.168.20.118:5060
BYE sip:81 at 220.130.6.180:17882 SIP/2.0.
Via: SIP/2.0/UDP 192.168.20.153:55260;branch=z9hG4bK1489712528;rport.
From: <sip:118 at 220.130.6.180>;tag=1735203887.
To: "Tony-opensips"<sip:81 at 220.130.6.180>;tag=2e7b1572.
Call-ID: ZDgzYzY5NjcxY2UzYmU0YzkwMWUzZWFiODA4NzlmY2I..
CSeq: 859463759 BYE.
Content-Length: 0.
Max-Forwards: 70.
Accept-Contact: *;+g.oma.sip-im.
Accept-Contact: *;language="en,fr".
Accept-Contact:
*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel".
Route: <sip:192.168.20.118;lr;did=827.ee7aaf17>.
Accept-Contact:
*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel".
P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.mmtel.
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK,
UPDATE, REFER.
Privacy: none.
P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000.
User-Agent: IM-client/OMA1.0 ios-ngn-stack/v00 (doubango r000).
P-Preferred-Identity: <sip:118 at 220.130.6.180>.
.
U 192.168.20.118:5060 -> 220.130.6.180:55260
SIP/2.0 404 Not here.
Via: SIP/2.0/UDP
192.168.20.153:55260;received=220.130.6.180;branch=z9hG4bK1489712528;rport=55260.
From: <sip:118 at 220.130.6.180>;tag=1735203887.
To: "Tony-opensips"<sip:81 at 220.130.6.180>;tag=2e7b1572.
Call-ID: ZDgzYzY5NjcxY2UzYmU0YzkwMWUzZWFiODA4NzlmY2I..
CSeq: 859463759 BYE.
Server: OpenSIPS (1.7.0-tls (i386/linux)).
Content-Length: 0.
When 118 send BYE to Server.
But Server tell 118 " Not Here".
It's my config for BYE
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 {
/* uncomment the following lines if you want to
enable presence */
if (is_method("SUBSCRIBE") && $rd ==
"192.168.20.118") {
# in-dialog subscribe requests
route(presence_handling);
exit;
}
if ( is_method("ACK") ) {
if ( t_check_trans() ) {
# non loose-route, but stateful
ACK; must be an ACK after
# a 487 or e.g. 404 from
upstream server
t_relay();
exit;
} else {
# ACK without matching
transaction ->
# ignore and discard
exit;
}
}
sl_send_reply("404","Not here");
}
exit;
}
Why is Not here??
Can everyone help me? Thanks
Nick
More information about the Users
mailing list