[Kamailio-Users] CarrierRoute With + Prefix

Henning Westerholt henning.westerholt at 1und1.de
Fri Jan 23 17:55:18 CET 2009


On Friday 23 January 2009, Ali Jawad wrote:
> 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.

Try this:

if (uri =~ "^sip:\+") {
	strip(1);
}

Cheers,

Henning




More information about the Users mailing list