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

Kevin Snow Kevin.Snow at ooma.com
Wed Feb 29 16:56:24 MSK 2012


Did you ever find any information on this? I'm chasing a similar issue.

In my case, the session is in switch_ivr_originate, an INVITE goes out.
Shortly after, mod_sofia's sofia_handle_sip_i_state() is called with state
nua_callstate_terminated with SIP error 503. It appears this is coming
from the sofia library itself as it did not receive a 503.
Switch_ivr_originate fails with NORMAL_TEMPORARY_FAILURE.

The problem is the INVITE went out but sofia doesn't send a CANCEL in this
case. We have code that attempts the call again, so another INVITE goes
out. This leaves it receiving 180 RINGING and 200 OKs for both INVITEs.
Essentially two calls but the first is dead. After a couple seconds sofia
sends a 481 Call Does Not Exist for the first Call-Id.

Of course, I have no idea how to reproduce this and it's pretty rare so I
don't have much to go on. But we do see it occasionally and I'm trying to
understand it.


Kevin







On 2/24/12 3:45 PM, "Harry Coin" <hcoin at quietfountain.com> wrote:

>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
>
>
>
>
>
>_________________________________________________________________________
>Professional FreeSWITCH Consulting Services:
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>
>
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://wiki.freeswitch.org
>http://www.cluecon.com
>
>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org




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