From: Ricardo Carvalho
<rcarvalho(a)iric.up.pt>
To: "G.Jacobsen" <g_jacobsen(a)yahoo.co.uk>
CC: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Re: rewrite the FROM part of SIP INVITE
Date: Fri, 08 Sep 2006 17:21:16 +0100
It isn't necessary to restore those from-header fields to maintain
the call leg of transactions taking place. As far as I know, by the
tests I made, Ser routes SIP messages based on Call-Id and not as
well From and To tags of messages.
Although this is only true if all UAs that you use are
RFC3261compliant. If some phones that you use implement the old
protocol, uses the full content of From/To for the same purposes, you
may get some problems... It's risky manipulate From/To tags...
Regards,
Ricardo.
G.Jacobsen wrote:
Ricardo,
Ok, but how do you restore the from-header when you send answers of the
downstream party to the upstream party again ?
Cheers
Gerry
----- Original Message ----- From: "Ricardo Carvalho"
<rcarvalho(a)iric.up.pt>
To: "Alex Fler" <alexfler(a)yahoo.com>
Cc: <serusers(a)lists.iptel.org>
Sent: Friday, September 08, 2006 5:15 PM
Subject: Re: [Serusers] Re: rewrite the FROM part of SIP INVITE
I've used subst() function for substituting
From and To URIs and calls
succeed well! I think that this indicates that Ser uses in fact
only the
Call-Id to keep track of calls and not as well From and To tags of
messages. Although I this may end up biting me later...
You can do that for example with the following syntax:
subst('/^From:(.*)sip:.*@your_domain(.*)/From:\1sip:what_ever_number@what_ev
er_domain\2/');
Greetings,
Ricardo.
Alex Fler wrote:
> Hello guys,
>
> Sorry for a stupid question, but how do you actually rewrite the FROM
> part of SIP INVITE ?
>
> Do you use avp ? Could someone give me an example ?
>
>
>
> Thanks to all
>
>
>
> Alex Fler
>
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> Serusers mailing list
> Serusers(a)lists.iptel.org
>
http://lists.iptel.org/mailman/listinfo/serusers
>
>
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
___________________________________________________________ Try the
all-new Yahoo! Mail. "The New Version is radically easier to use" –
The Wall Street Journal
http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org