[Dundi] dundi lookup in a other tree
DUNDi Peering
dundi at swissirc.net
Sun Apr 4 06:23:44 CDT 2010
Dear all,
I'm Using Asterisk 1.6.2.0~rc2-0ubuntu1.2 built by buildd @ crested
on a x86_64 running Linux on 2010-01-04 02:36:22 UTC on a Ubuntu
Linux, and i try to do in the extensions.conf a DUNDILOOKUP on a
other DUNDi Tree but it dont work. If i do it on the Asterisk Console
it works.
asterisk*CLI> dundi lookup 00041xxxxxxxxx at dundi-sNE
1. 0 IAX2/dundisNE:0hS7ZY70VB
+HT4ZHjT8dAg==@193.16.217.20/00041xxxxxxxxx (EXISTS|NOUNSLCTD|
NOCOMUNSLTD)
from 00:1c:c0:30:d6:7a, expires in 3600 s
DUNDi lookup completed in 121 ms
So it works on the console but in my script i try everything but i'm
not sure where i need to set the "@dundi-sNE" on the Lookup that i
get the correct answer back.
exten => _000XXX.,1,NoOp(DOING DUNDi sNE-PSTN LOOKUP)
exten => _000XXX.,n,Set(dundiresult=${DUNDILOOKUP(${EXTEN})})
exten => _000XXX.,n,GotoIf($["" = "${dundiresult}"]?:30)
exten => _000XXX.,n,GotoIf($["" = "${dundiresult}"]?20:30)
exten => _000XXX.,20,NoOp(DUNDi sNE-PSTN Failed)
exten => _000XXX.,n,Return
exten => _000XXX.,30,NoOp(DUNDi sNE-PSTN Successful)
exten => _000XXX.,n,NoOp(Call from ${CALLERID(name)} over DUNDi out)
exten => _000XXX.,n,macro(call,${dundiresult})
exten => _000XXX.,n,Return
I hope somewhere can help me and give me a hint to fix my problem.
best regards
Marcel
More information about the Dundi
mailing list