[Serusers] help about strip

jacky jacklyman at sohu.com
Fri Sep 17 09:22:02 CEST 2004


Very thanks.

This block of code is not executed! 


> 
> 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 iptel.org 
> > [mailto:serusers-bounces at iptel.org] On Behalf Of jacky
> > Sent: Friday, 17 September 2004 3:54 PM
> > To: serusers at 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