[Serdev] Re: [Sems] Stale CSeq Value with BYE
Ulrich Holeschak
ulrich at holeschak.de
Sun May 2 20:29:08 UTC 2004
Hello,
thanks for the modification, i tried the same thing myself, its working now.
But i had to modify my routing script again to let also the BYE get routed
correctly (with maddr present), see here:
route{
...
# Don't accept messages that are too long. Don't change this
setting.
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# for Windows Messenger: if maddres is present route telegranms there
if(uri=~"sip:.*@.*:[0-9]*;maddr=.*;.*"){
log("replace destination with maddr\n");
exec_dset("
NEW_URI=`echo $SIP_RURI | sed -e
's/\(sip:\)\(.*@.*\)\(:[0-9]*;\)\(maddr=\)\(.*\)\;/\1\5\3/'`
echo $NEW_URI
echo > /dev/null
");
route(1);
break;
}
# By default we record route everything except REGISTERs
if (!(method=="REGISTER")) record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
# Deal with our domain first. This condition matches if the SIP URI
is
# one of the domains specified in the "listen=" or "alias="
statements
# above.
if (uri==myself) {
...
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
----- Original Message -----
From: "Raphael Coeffic" <rco at iptel.org>
To: "Ulrich Holeschak" <ulrich at holeschak.de>; <sems at lists.iptel.org>
Sent: Sunday, May 02, 2004 9:34 PM
Subject: Re: [Sems] Stale CSeq Value with BYE
> Hi Ulrich,
>
> i just fixed that bug (please update from CVS). Thanks for reporting it.
> Could you test it now ?
>
> -Raphael.
>
> ----- Original Message -----
> From: "Ulrich Holeschak" <ulrich at holeschak.de>
> To: <sems at lists.iptel.org>
> Sent: Sunday, May 02, 2004 2:21 AM
> Subject: [Sems] Stale CSeq Value with BYE
>
>
> Hello,
> now after my ACK problem has been (hopefully) solved i got stuck at
another
> point:
>
> If i hangup my PSTN phone (connected via isdngw to Windows Messenger) the
> Windows Messenger doesn't react on the BYE and finally stops transmission
> with an timeout.
>
> If have looked in the protocols and have found that the Windows Messenger
> rejects the BYE with: 500 Stale CSeq Value.
> The CSeq Value in all Reqests (INVITE, ACK, BYE) is always 11!
>
> If the Windows Messenger disconnects (what is working ok), 1 is used for
the
> CSeq in BYE.
>
> It seems that there is an BUG in isdngw (or sems) that doesn't modiy the
> CSeq for BYE. Is this true?
>
> Ulrich
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > _______________________________________________
> > Sems mailing list
> > sems at lists.iptel.org
> > http://lists.iptel.org/cgi-bin/mailman/listinfo/sems
> >
More information about the Serdev
mailing list