Quantcast
Channel: IP-Phone-Forum
Viewing all articles
Browse latest Browse all 15636

Asterisk10 und ENUMLOOKUP

$
0
0
Hi,

ich steige gerade von * 1.2 auf 10 um, leider funktioniert mein ENUMLOOKUP nicht mehr, er geht sofort zur PRIO 10 weiter, jemand eine Idee?

Code:

[enum-go]                                                                                                                                   
exten => _+Z.,1,Set(Nebenstelle=${CALLERID(num)})                                                                                       
exten => _X.,1,Set(Nebenstelle=${CALLERID(num)})                                                                                       
exten => _Z.,2,Goto(nachenum${Nebenstelle},${EXTEN},1)                                                                                   
exten => _+Z.,2,Goto(enum,${EXTEN},1)                                                                                                                             
exten => _0Z.,2,Goto(enum,+43${EXTEN:1},1)                                                                                               
exten => _00Z.,2,Goto(enum,+${EXTEN:2},1)                                                                                                 
exten => _000Z.,2,Goto(nachenum${Nebenstelle},${EXTEN},1)                                                                                             
                                                                                                                                 
[enum]                                                                                                                                               
exten => _+Z.,1,Set(CALLERID(number)=+43123456)                                                                                     
exten => _+Z.,n,Set(enumlist=e164.arpa e164.org|tree=0)                                                                         
exten => _+Z.,n,While($["${SET(e164=${CUT(enumlist, ,${SET(tree=$[${tree} + 1])})})}" != ""])                                                     
exten => _+Z.,n,Set(sipcount=${ENUMLOOKUP(${EXTEN},sip,c,${e164})}|counter=0)                                                               
exten => _+Z.,n,While($[${counter}<0${sipcount}])                                                                                       
exten => _+Z.,n,Set(counter=$[${counter}+1])                                                                                               
exten => _+Z.,n,Gotoif($["${SET(e=${ENUMLOOKUP(${EXTEN},sip,${counter},${e164})})}"=""]?ew)                                                                                                                         
exten => _+Z.,n,Dial(SIP/${e},120,W)                                                                                                       
exten => _+Z.,n(ew),EndWhile                                                                                                                                                       
exten => _+Z.,n,EndWhile                                                                                                             
exten => _+Z.,n,GotoIf($["${DIALSTATUS}"=""]?ef)                                                                                                           
exten => _+Z.,n,Noop                                                                                                             
exten => _+Z.,n,Congestion()                                                                                                       
exten => _+Z.,n,Hangup                                                                                                                                 
exten => _+Z.,n(ef),goto(enum-lcr,00${EXTEN:1},1)


und hier das Debug:

Code:

-- Executing [07200101011@SIP-PHONE-157833036530c70b8cedbe:1] Set("SIP/52-00000087", "Nebenstelle=52") in new stack
    -- Executing [07200101011@SIP-PHONE-157833036530c70b8cedbe:2] Goto("SIP/52-00000087", "enum,+437200101011,1") in new stack
    -- Goto (enum,+437200101011,1)
    -- Executing [+437200101011@enum:1] Set("SIP/52-00000087", "CALLERID(number)=+43123456") in new stack
  == Extension Changed 52[internal] new state InUse for Notify User 43
    -- Executing [+437200101011@enum:2] Set("SIP/52-00000087", "enumlist=e164.arpa e164.org|tree=0") in new stack
    -- Executing [+437200101011@enum:3] While("SIP/52-00000087", "0") in new stack
    -- Jumping to priority 10
    -- Executing [+437200101011@enum:11] GotoIf("SIP/52-00000087", "1?ef") in new stack
    -- Goto (enum,+437200101011,15)
    -- Executing [+437200101011@enum:15] Goto("SIP/52-00000087", "enum-lcr,00437200101011,1") in new stack
    -- Goto (enum-lcr,00437200101011,1)


Thx
Timm

Viewing all articles
Browse latest Browse all 15636


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>