[Freeswitch-users] Why doesn't continue_on_fail continue?

Harry Coin hcoin at quietfountain.com
Sat Feb 25 02:45:06 MSK 2012


This is a 'why doesn't continue_on_fail' continue question.

session:setVariable("continue_on_fail", "true");
session:setVariable("ignore_early_media", "true");
session:setVariable("hangup_after_bridge", "true");

# Try some local registered extensions
session:execute("bridge", "[leg_timeout=28]loopback/202/default/XML");
# Ok, this works, we get here only when nobody picks up.
#  Use the dial plan leading to a bridge 
sofia/internal/xxx at voip2pstn1|sofia/internal/xxx at voip2pstn
session:execute("bridge", 
"[leg_timeout=30][accountcode=4499090]sofia/internal/5551212@${domain}");
#  If fails for any reason (all outgoing voip->pstn lines are busy or if 
voip2pstn device is dead/busy) continue here.
#  Problem is --  We never get here if the above fails.
# The reason is 'NORMAL_TEMPORARY_FAILURE' but it just hangs up the 
calling extension.
session:execute("bridge", "[leg_timeout=136]loopback/*99008");  #should 
leave voicemail, never gets called.

What am I doing wrong?

Harry





-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4461 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120224/291a842e/attachment-0001.bin 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list