Justin Killen wrote:
Joshua,
If I'm understanding this correctly, you're saying that the Playback
is failing because it isn't connected to anything on the other end,
because the Dial() failed. When the channel is created on the
"OutgoingSpoolFailed" extension, what context is it created in, one
of the origin legs? Is there a way detect this condition in the
target context ([outbound-swift]), or better yet, verify the other
leg is attached before starting the logic?
It is created in the context you have told the answered channel to go
to. One way to fix it would be to add an OutgoingSpoolFailed extension
for each priority so that Swift isn't invoked. You could also use GotoIf
in the first priority and go elsewhere if the extension is
OutgoingSpoolFailed. There exist many options.
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users