[Asterisk-Dev] Enum and Registrar

Olle E. Johansson oej at edvina.net
Mon Oct 4 22:54:38 MST 2004


Jens Kübler wrote:

>>Yes, it's a dialplan error, not an chan_sip error really.
>>You need to detect that the URI returned from ENUM is local and remove
>>the domain part before dialling.
>>
>>Also, please note that SIP uri's are user at domain, not user at server.
>>When you mail me you mail user at domain, why not call that way? :-)
>>
> 
> Well I found some processing in apps/app_enumlockup enum_lockup_exec and I'm 
> thinking about to extent that.
> The question is how do we gain information about what remove.

Don't make life too complicated. Set a variable called MYDOMAIN in the dialplan
and use the variable functions to compare the domain you get from ENUM with that
one.

gotoif() with string constructs and regular expressions work fine.
- read README.variables ;-)

/O



More information about the asterisk-dev mailing list