[Serusers] help about strip

Zeus Ng zeus.ng at isquare.com.au
Fri Sep 17 08:33:31 CEST 2004


Two things.

First, make sure this block of code is executed! You may have logic before
this section branching to another route block, which skip the stripping
totally.

Second, try escaping the dot(.) like 192\.168\.1\.1 if it's a IP address.

Also, when you say proxyB receive 9200001 at proxyB, you are referring to
"R-URI" and not the "To", right?


Zeus

> -----Original Message-----
> From: serusers-bounces at lists.iptel.org 
> [mailto:serusers-bounces at lists.iptel.org] On Behalf Of jacky
> Sent: Friday, 17 September 2004 3:54 PM
> To: serusers at lists.iptel.org
> Subject: [Serusers] help about strip
> 
> 
> 
> 
> I want do this:
>  
> uaA (invite 9200001 at B) ---->proxy A (invite 200001 at B )--->proxyB
>  
> so in proxyA's ser.cfg:
> ---------------------------
> if (uri=~"^sip:9[0-9]*@B") {  
>         strip(1);
>         t_relay_to_udp( "B", "5060");  
>         break;
> };
> ----------------------------
>  
> but proxyB received "sip:9200001" not "sip:200001".
>  
>  
> please help me how can I do!
>  
> thanks.
> 




More information about the sr-users mailing list