AFAIK Asterisk supports multiple domains, but it seems that is not used for registration.

On 09.03.2014 00:58, Alex Villací­s Lasso wrote:

The above is the non-encoding version. What is the best way to modify it
to do a domain encoding in the username? Or, if a better solution
exists, what is it?


It should work this way:
  $uac_req(furi)="sip:" + $au + "_" + $fd + "@" + $var(rip) + ":5060";
  $uac_req(turi)="sip:" + $au + "_" + $td + "@" + $var(rip) + ":5060";

Be aware that $fd/$td can contain an optional port (depends on what the client sends and if you want to accept not only "domain.com" but also "domain.com:5060"). So you may need to use one of the transformations to URI-escape the domain part.

Of course in the incoming part you have to restore the original URI before lookup() the user.

regards
Klaus

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to