If it strips the first + it should not re-enter the if condition because
the + has been removed at that stage right ?
Thanks


-----Original Message-----
From: Luciano Afranllie [mailto:listas.luaf...@gmail.com] 
Sent: 2009-01-23 17:20
To: Ali Jawad
Cc: Henning Westerholt; users@lists.kamailio.org
Subject: Re: [Kamailio-Users] CarrierRoute With + Prefix

On Fri, Jan 23, 2009 at 1:14 PM, Ali Jawad <ali.ja...@splendor.net>
wrote:
> Hi Again
>
> I did use
>        if($rU =~ "^[+].*")
>                {
>
>                strip(1);
>
>                }
>
> before the cr statement ...from asterisk I get address incomplete at 
> times..when this happens I find that the first two characters are 
> stripped instead of only the first one.
>
> Any clues ?

Check if your request is not passing twice by same place. A log sentence
before strip could help.

_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Reply via email to