maddr patch (was Re: [Serdev] Re: [Sems] Stale CSeq Value with
BYE
Jiri Kuthan
jiri at iptel.org
Sun May 2 22:12:47 UTC 2004
At 10:29 PM 5/2/2004, Ulrich Holeschak wrote:
>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=.*;.*"){
FYI: I made my computer's life easier in that I avoided use of per-request
execs by use of subst_uri, a rough but mostly working (no IPv6, foomaddr
parameters processed too, etc.)
subst_uri("/(sip:)([a-zA-Z0-9_.!~*'()%&=+$,;?-]+@)?([a-zA-Z0-9.-]+)(;.*)(maddr=)([0-9.]{7,15})/\1\2\6\4\5\6/");
-jiri
More information about the Serdev
mailing list