[Asterisk-Users] Macro(dundi-dundi-test, ${ENTEN}) to return +101 on lookup failure ?

Zachary McGibbon zachary.mcgibbon at gmail.com
Wed Dec 22 10:56:47 MST 2004


I'm looking at finding a way for my Macro(dundi-dundi-test,${ENTEN})
when I dial out on the dundi-test network to return a +101 to my
[dundi-test-out] context, if the number being dialed on the dundi-test
network does not exist, then I will route the call out using my pstn
or voip connection i have.  I have a feeling it will have to be the
switch => DUNDi/dundi-test that will have to return the +101.

Also currently, using CVS HEAD of asterisk and dundi, when dialing a
number on dundi-test my asterisk crashes with a clean crash and must
be re-started manually.  Any ideas?

[dundi-test-out]
exten => _*9.,1,Macro(dundi-dundi-test,${EXTEN:2})

;------------------------
; dundi-test

[dundi-dundi-test-canonical]

[dundi-dundi-test-customers]

[dundi-dundi-test-via-pstn]

[dundi-dundi-test-local]
include => dundi-dundi-test-canonical
include => dundi-dundi-test-customers
include => dundi-dundi-test-via-pstn

[dundi-dundi-test-switch]
switch => DUNDi/dundi-test

[dundi-dundi-test-lookup]
include => dundi-dundi-test-local
include => dundi-dundi-test-switch

[macro-dundi-dundi-test]
; Usage: exten => _*91NXXNXXXXXX,1,Macro(dundi-dundi-test,${EXTEN:2})
; This would lookup the number using DUNDi.
exten => s,1,Playback(channel-insecure-warn)
exten => s,2,Goto(${ARG1},1)
include => dundi-dundi-test-lookup



More information about the asterisk-users mailing list