[Users] function capable of identifying the domain of the callee

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Sep 14 12:10:01 CEST 2006


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 at 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 at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>  
>





More information about the sr-users mailing list