Displaying 1 result from an estimated 1 matches for "sipcount".
can ENUMLOOKUP query multiple DNS servers without having to replicate the same code for each server?
2007 Jun 15
1
can ENUMLOOKUP query multiple DNS servers without having to replicate the same code for each server?
...rote in enum.conf?
To let you understand better, I wish to use just a block of code that
is able to query multiple DNS servers, instead of repeating like in
the following example the same code for each DNS server I wish to
lookup for:
; Start first with e164.arpa zone:
exten => _X.,1,Set(sipcount=${ENUMLOOKUP(+${EXTEN},sip,c)}|counter=0)
exten => _X.,2,GotoIf($["${counter}"<"${sipcount}"]?3:6)
exten => _X.,3,Set(counter=$[${counter}+1])
exten => _X.,4,Dial(SIP/${ENUMLOOKUP(+${EXTEN},sip,${counter})})
exten => _X.,5,GotoIf($["${counter}"<"...