[Serusers] Re: rewrite the FROM part of SIP INVITE

G.Jacobsen g_jacobsen at yahoo.co.uk
Fri Sep 8 17:43:44 CEST 2006


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 at iric.up.pt>
To: "Alex Fler" <alexfler at yahoo.com>
Cc: <serusers at 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 at 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 at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
>
> _______________________________________________
> Serusers mailing list
> Serusers at 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



More information about the sr-users mailing list