I have a macro that checks to see if a dundi route exists, if it does it
attempts to dial it. The remote end can set the chan as unavailable, or busy.
If it does the call immediately hangs up instead of returning to the macro for
more processing. Is there a way to force it to return?
Logic from extensions.conf is below, first is from the system making the call,
the second is from the system receiving the call:
(CALLING SYSTEM)
The DUNDi system makes calls via IAX using a peer named priv
[local-dundi]
exten => _817NXXXXXX,1,Macro(dundi-lookup,${EXTEN})
exten => _817NXXXXXX,n,Macro(trunkdial,Zap/G0/w${EXTEN})
exten => _NXXNXXXXXX,1,Macro(trunkdial,Zap/G0/w${EXTEN})
[macro-dundi-lookup]
exten => s,1,Goto(${ARG1},1)
exten => s,n,MacroExit
include => dundi-priv-local
include => dundi-priv-lookup
include => dundi-e164-lookup
[dundi-priv-local]
exten => _4XX,1,Noop
[dundi-priv-lookup]
switch => DUNDi/priv
[dundi-e164-lookup]
switch => DUNDi/e164
(CALLED SYSTEM)
The IAX peer priv is dropped into the following context in the dialplan
[dundi-e164]
exten => _817.,1,Set(DID=${EXTEN:6})
exten => _817.,n,Noop(${DID})
exten => _817.,n,Set(GROUP(IAX)=incoming)
exten => _817.,n,GotoIf($[${MATH(${GROUP_COUNT([EMAIL
PROTECTED])}+${GROUP_COUNT([EMAIL PROTECTED])},i)}>10]?fail)
exten => _817.,n,Goto(from-pri,${DID},1)
exten => _817.,n(fail),Set(DIALSTATUS=CHANUNAVAIL)
If the total for all IAX calls is above 10, I want the call to fail so it'll
fall back and use ZAP instead of IAX. Instead the call just hangs up at the
CALLING system.
The from-pri logic has been excluded since it has no bearing on the question at
hand.
________________________________
This e-mail, facsimile, or letter and any files or attachments transmitted with
it contains information that is confidential and privileged. This information
is intended only for the use of the individual(s) and entity(ies) to whom it is
addressed. If you are the intended recipient, further disclosures are
prohibited without proper authorization. If you are not the intended recipient,
any disclosure, copying, printing, or use of this information is strictly
prohibited and possibly a violation of federal or state law and regulations. If
you have received this information in error, please notify Texas Health
Management Group immediately at 1-817-310-4999. Texas Health Management Group,
its subsidiaries, and affiliates hereby claim all applicable privileges related
to this information.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users