I changed the script to set hangup_after_bridge to false, but still the same thing happens, I get this on the console:<br><br>2009-08-07 12:27:44.229091 [NOTICE] sofia.c:322 Hangup sofia/external/00569xxxxxxx [CS_SOFT_EXECUTE] [NORMAL_CLEARING]<br>
2009-08-07 12:27:44.229091 [DEBUG] switch_channel.c:1683 Send signal sofia/external/00569xxxxxxx [KILL]<br>2009-08-07 12:27:44.229091 [DEBUG] switch_core_session.c:932 Send signal sofia/external/00569xxxxxxx [BREAK]<br>2009-08-07 12:27:44.231471 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]<br>
2009-08-07 12:27:44.231471 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]<br>2009-08-07 12:27:44.231471 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]<br>2009-08-07 12:27:44.231471 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]<br>
2009-08-07 12:27:44.231471 [DEBUG] switch_core_state_machine.c:398 (sofia/external/00569xxxxxxx) Running State Change CS_HANGUP<br>2009-08-07 12:27:44.231471 [INFO] mod_dptools.c:2092 Originate Failed. Cause: ORIGINATOR_CANCEL<br>
2009-08-07 12:27:44.231471 [NOTICE] c2c.js:1 *********** Leg2: NORMAL_CLEARING ***********<br><br><br>
The second to last line comes from the script, and prints the hangup_cause of he session, instead of getting ORIGINATOR_CANCEL, I'm getting NORMAL_CLEARING. Where is the ORIGINATOR_CANCEL value set?<br><br><br>Thanks!<br>
<br>Nicolas<br><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 3:45 PM, Nicolas Brenner <span dir="ltr"><<a href="mailto:nicolas@medularis.com">nicolas@medularis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Matt,<br><br>Actually I'm explicitly setting hangup_after_bridge to true, think setting it to false would help? I'm going to try that.<br><br>Here's the JS code:<br>(Note: session.getVariable() doesn't work, FS complains saying it is not a function, also tried self.session.getVariable() - that's what the wiki says - and FS complains that self does not exist)<br>
<br>----------------<br>var uuid = argv[0]; // Call identifier<br>var dialstr1 = argv[1]; // Dial string obtained from previous call to LCR<br>var dialstr2 = argv[2]; // Dial string obtained from previous call to LCR<br>
var greeting_snd = "/var/audio/alert.wav";<br>
<br>console_log("notice", "*********** STARTING C2C Call ***********\n");<br>timeout = 30;<br><br>console_log("notice", "*********** DIALING "+dialstr1+" ***********\n");<br>
<br>//var stUsRing = session.getVariable("us-ring"); // This doesn't work, self.session.getVariable doesn't work either<br>var stUsRing = "%(2000,4000,440,480)";<br><br>// Create new_session <br>
new_session = new Session(originate_str1);<br>console_log("notice", "*********** Leg1: " + new_session.cause + " ***********\n");<br><br>if (new_session.ready()) {<br> // log to the console<br>
console_log("notice", "*********** Leg1 ("+dialstr1+") CONNECTED! ***********\n");<br> console_log("notice", "*********** Playing greeting sound: "+greeting_snd+" ***********\n");<br>
<br> new_session.execute("sleep", 100);<br> new_session.execute("playback", greeting_snd);<br><br> // Originate second call and bridge<br> originate_str2 = "{ignore_early_media=true,originate_timeout="+timeout+",hangup_after_bridge=true,medularis_uuid="+uuid+",c2c_call=true,leg=2}"+dialstr2;<br>
<br> // Create new_session <br> new_session.execute("bridge", originate_str2);<br> console_log("notice", "*********** Leg2: " + new_session.cause + " ***********\n");<br>
<br> if (new_session.ready()) {<br> console_log("notice", "*********** Leg2 ("+dialstr2+") CONNECTED! ***********\n");<br> }<br>}<br><br>exit();<br>----------------<br>
<br>Thanks!<br><font color="#888888"><br><br>Nicolas</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 2:25 PM, Matthew Fong <span dir="ltr"><<a href="mailto:mattdfong@gmail.com" target="_blank">mattdfong@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Nicolas,<div><br></div><div>do you have a copy of the .js code you can paste. I would guess tho, that ORIGINATOR_CANCLE might be related to not setting hangup_after_bridge to false. Just a guess tho.</div><div><br></div>
<div>Hangup causes can be found here:</div><div><a href="http://wiki.freeswitch.org/wiki/Hangup_causes" target="_blank">http://wiki.freeswitch.org/wiki/Hangup_causes</a></div><div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Hangup_causes" target="_blank"></a><span style="border-collapse: collapse;"><div>
--matt</div><div>hello hunter - hosted predictive dialer & voice broadcasting</div><div><a href="http://www.hellohunter.com/" style="color: rgb(20, 125, 186);" target="_blank">http://www.hellohunter.com</a></div></span></div>
<div><br><br><div class="gmail_quote"><div><div></div><div>On Thu, Aug 6, 2009 at 9:38 AM, Nicolas Brenner <span dir="ltr"><<a href="mailto:nicolas@medularis.com" target="_blank">nicolas@medularis.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
I'm bridging 2 calls in a javascript file, I originate the first call
and then execute a bridge with an origination string for the second
call. If I hangup the first call while trying to make the second call,
I get this on the console:<br>
<br>2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994
Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA]
[ORIGINATOR_CANCEL]<br>2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]<br>
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]<br>2009-08-05
16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled
by originator termination Cause: 487 [ORIGINATOR_CANCEL]<br>
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed. Cause: ORIGINATOR_CANCEL<br><br>But
if I check hangup_cause in the CHANNEL_HANGUP_COMPLETE event, I see
NORMAL_CLEARING. And the variable_originate_disposition has a value of
"failure". Where can I get the detail of the call/bridge failure due to 'ORIGINATOR_CANCEL' as reported through the console?<br>
<br>Thanks!<br><font color="#888888"><br>Nicolas<br><br><br>
</font><br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>