Hi,
I'm looking for a function capable of identifying the domain of the called so I can implement something like this:
if(domain_of_called == domain_A) { do this }
if(domain_of_called == domain_B) { do that }
The domain_of_called should be extracted from the R-URI and not from the message itself because in some cases (because I'm using multi-domain) if the caller dialled an alias, OpenSer must first determine in aliases table to which user corresponds that alias.
Is there a function that does this?
Thanks,
Ricardo.
Hi,
try : if (uri==myself) and set proper aliases t match your domain or if multi domain cfg is used, see the domain module : http://openser.org/docs/modules/1.1.x/domain.html#AEN95
regards, bogdan
rcarvalho@iric.up.pt wrote:
Hi,
I'm looking for a function capable of identifying the domain of the called so I can implement something like this:
if(domain_of_called == domain_A) { do this }
if(domain_of_called == domain_B) { do that }
The domain_of_called should be extracted from the R-URI and not from the message itself because in some cases (because I'm using multi-domain) if the caller dialled an alias, OpenSer must first determine in aliases table to which user corresponds that alias.
Is there a function that does this?
Thanks,
Ricardo.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users