[Serusers] finding the domain of the Request-URI

sip sip at arcdiv.com
Wed Sep 13 23:31:22 CEST 2006


Only if you're running the development version of SER. 

For those of us in production scenarios, it's not an option. 

N.


On Wed, 13 Sep 2006 19:17:42 +0000, Luis Silva wrote
> You can use @ruri.host
> 
> >From: Ricardo Carvalho <rcarvalho at iric.up.pt>
> >To: serusers at lists.iptel.org
> >Subject: Re: [Serusers] finding the domain of the Request-URI
> >Date: Wed, 13 Sep 2006 12:46:09 +0100
> >
> >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
> >>
> >
> >_______________________________________________
> >Serusers mailing list
> >Serusers at lists.iptel.org
> >http://lists.iptel.org/mailman/listinfo/serusers
> 
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list