[asterisk-users] ENUM lookup
Klaus Darilion
klaus.mailinglists at pernau.at
Thu Aug 14 07:15:13 CDT 2008
Use the ENUMLOOKUP function, e.g.:
[from_sip_phone]
exten => _00X.,1,Set(enumresult=${ENUMLOOKUP(+${EXTEN:2})})
exten => _00X.,2,GotoIf($["${enumresult}" = ""]?103:3)
exten => _00X.,3,Dial(SIP/${enumresult},90)
exten => _00X.,4,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?103:5)
exten => _00X.,5,GotoIf($["${DIALSTATUS}" = "CONGESTION"]?103:6)
exten => _00X.,6,Hangup
exten => _00X.,103,Dial(ZAP/g1/${EXTEN},90)
klaus
Adrian Marsh schrieb:
> Hi All,
>
>
>
> For a 1.4 version asterisk, whats the recommended mechanism for dialling
> with ENUM lookup? At the moment I user SIPbroker, but am getting tired
> of it hanging on certain numbers, so I was thinking about implementing
> it myself.
>
>
>
> I’ve seen various vo-ip.info pages
> (http://www.voip-info.org/wiki/view/Asterisk+cmd+EnumLookup) talking
> about the func ENUMLOOKUP instead of EnumLookup Application, but then
> I’ll need to implement my own logic around this right??
>
>
>
> Thanks,
>
>
>
> Adrian
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list