[Kamailio-Users] Question about manually manipulating RURI

Edson - Lists 4lists at gmail.com
Mon Jun 22 15:10:22 CEST 2009


Iñaki Baz Castillo escreveu:
> 2009/6/19 Edson - Lists <4lists at gmail.com>:
>> Try
>>
>> if (uri=~"^sip:d") {
> 
> Note that this would match the following URI (with no username):
> 
>   sip:domain.org
> 
> I would prefer:
> 
>   if ( $rU =~ "^d" )
> 
Yep... a better one:

  if (uri=~"^sip:d[0-9]+@") {


but, all this is only about REGEX and which part used on comparison, so, 
either one would work... one more restrictive than other...

Edson.



More information about the Users mailing list