[Serusers] finding the domain of the Request-URI

Ricardo Carvalho rcarvalho at iric.up.pt
Wed Sep 13 13:46:09 CEST 2006


I managed that using if (uri=~"^sip:.*@domain.*") { /*...*/ } in the 
main route. I thought that would search in a regular expression basis 
the INVITE sip message, but fortunately it doesn't. :)

Thanks anyway,
Ricardo.






Ricardo Carvalho wrote:
> Hi all,
>
> Is there a function that returns the domain (the realm) of the 
> Request-URI of INVITE messages? Note that it can't be done using 
> regular expressions that search SIP messages, because of cases where 
> has been dialled an alias of someone from a phone registered with a 
> user that belongs to other domain in a multi-domain environment.
>
> Thanks,
> Ricardo.
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>




More information about the sr-users mailing list