Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Which event contains ORIGINATOR_CANCEL?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
nicolas at medularis.com
Guest





PostPosted: Thu Aug 06, 2009 11:43 am    Post subject: [Freeswitch-users] Which event contains ORIGINATOR_CANCEL? Reply with quote

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:

2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-05 16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL

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?

Thanks!

Nicolas
Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Aug 06, 2009 1:37 pm    Post subject: [Freeswitch-users] Which event contains ORIGINATOR_CANCEL? Reply with quote

Hi Nicolas,

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.


Hangup causes can be found here:
http://wiki.freeswitch.org/wiki/Hangup_causes


[/url] --matt
hello hunter - hosted predictive dialer & voice broadcasting
[url=http://www.hellohunter.com/]http://www.hellohunter.com




On Thu, Aug 6, 2009 at 9:38 AM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:
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:

2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-05 16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL

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?

Thanks!

Nicolas



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
nicolas at medularis.com
Guest





PostPosted: Thu Aug 06, 2009 2:54 pm    Post subject: [Freeswitch-users] Which event contains ORIGINATOR_CANCEL? Reply with quote

Hi Matt,

Actually I'm explicitly setting hangup_after_bridge to true, think setting it to false would help? I'm going to try that.

Here's the JS code:
(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)

----------------
var uuid = argv[0]; // Call identifier
var dialstr1 = argv[1]; // Dial string obtained from previous call to LCR
var dialstr2 = argv[2]; // Dial string obtained from previous call to LCR
var greeting_snd = "/var/audio/alert.wav";

console_log("notice", "*********** STARTING C2C Call ***********\n");
timeout = 30;

console_log("notice", "*********** DIALING "+dialstr1+" ***********\n");

//var stUsRing = session.getVariable("us-ring");  // This doesn't work, self.session.getVariable doesn't work either
var stUsRing = "%(2000,4000,440,480)";

// Create new_session
new_session = new Session(originate_str1);
console_log("notice", "*********** Leg1: " + new_session.cause + " ***********\n");

if (new_session.ready()) {
        // log to the console
        console_log("notice", "*********** Leg1 ("+dialstr1+") CONNECTED! ***********\n");
        console_log("notice", "*********** Playing greeting sound: "+greeting_snd+" ***********\n");

        new_session.execute("sleep", 100);
        new_session.execute("playback", greeting_snd);

        // Originate second call and bridge
    originate_str2 = "{ignore_early_media=true,originate_timeout="+timeout+",hangup_after_bridge=true,medularis_uuid="+uuid+",c2c_call=true,leg=2}"+dialstr2;

        // Create new_session
        new_session.execute("bridge", originate_str2);
        console_log("notice", "*********** Leg2: " + new_session.cause + " ***********\n");

        if (new_session.ready()) {
                console_log("notice", "*********** Leg2 ("+dialstr2+") CONNECTED! ***********\n");
        }
}

exit();
----------------

Thanks!


Nicolas


On Thu, Aug 6, 2009 at 2:25 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Hi Nicolas,

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.


Hangup causes can be found here:
http://wiki.freeswitch.org/wiki/Hangup_causes


[/url] --matt
hello hunter - hosted predictive dialer & voice broadcasting
[url=http://www.hellohunter.com/]http://www.hellohunter.com





On Thu, Aug 6, 2009 at 9:38 AM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:


Quote:

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:

2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-05 16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL

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?

Thanks!

Nicolas





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
nicolas at medularis.com
Guest





PostPosted: Fri Aug 07, 2009 11:52 am    Post subject: [Freeswitch-users] Which event contains ORIGINATOR_CANCEL? Reply with quote

I changed the script to set hangup_after_bridge to false, but still the same thing happens, I get this on the console:

2009-08-07 12:27:44.229091 [NOTICE] sofia.c:322 Hangup sofia/external/00569xxxxxxx [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
2009-08-07 12:27:44.229091 [DEBUG] switch_channel.c:1683 Send signal sofia/external/00569xxxxxxx [KILL]
2009-08-07 12:27:44.229091 [DEBUG] switch_core_session.c:932 Send signal sofia/external/00569xxxxxxx [BREAK]
2009-08-07 12:27:44.231471 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-07 12:27:44.231471 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-07 12:27:44.231471 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-07 12:27:44.231471 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-07 12:27:44.231471 [DEBUG] switch_core_state_machine.c:398 (sofia/external/00569xxxxxxx) Running State Change CS_HANGUP
2009-08-07 12:27:44.231471 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL
2009-08-07 12:27:44.231471 [NOTICE] c2c.js:1 *********** Leg2: NORMAL_CLEARING ***********


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?


Thanks!

Nicolas

On Thu, Aug 6, 2009 at 3:45 PM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:
Hi Matt,

Actually I'm explicitly setting hangup_after_bridge to true, think setting it to false would help? I'm going to try that.

Here's the JS code:
(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)

----------------
var uuid = argv[0]; // Call identifier
var dialstr1 = argv[1]; // Dial string obtained from previous call to LCR
var dialstr2 = argv[2]; // Dial string obtained from previous call to LCR
var greeting_snd = "/var/audio/alert.wav";

console_log("notice", "*********** STARTING C2C Call ***********\n");
timeout = 30;

console_log("notice", "*********** DIALING "+dialstr1+" ***********\n");

//var stUsRing = session.getVariable("us-ring");  // This doesn't work, self.session.getVariable doesn't work either
var stUsRing = "%(2000,4000,440,480)";

// Create new_session
new_session = new Session(originate_str1);
console_log("notice", "*********** Leg1: " + new_session.cause + " ***********\n");

if (new_session.ready()) {
        // log to the console
        console_log("notice", "*********** Leg1 ("+dialstr1+") CONNECTED! ***********\n");
        console_log("notice", "*********** Playing greeting sound: "+greeting_snd+" ***********\n");

        new_session.execute("sleep", 100);
        new_session.execute("playback", greeting_snd);

        // Originate second call and bridge
    originate_str2 = "{ignore_early_media=true,originate_timeout="+timeout+",hangup_after_bridge=true,medularis_uuid="+uuid+",c2c_call=true,leg=2}"+dialstr2;

        // Create new_session
        new_session.execute("bridge", originate_str2);
        console_log("notice", "*********** Leg2: " + new_session.cause + " ***********\n");

        if (new_session.ready()) {
                console_log("notice", "*********** Leg2 ("+dialstr2+") CONNECTED! ***********\n");
        }
}

exit();
----------------

Thanks!


Nicolas



On Thu, Aug 6, 2009 at 2:25 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Hi Nicolas,

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.


Hangup causes can be found here:
http://wiki.freeswitch.org/wiki/Hangup_causes


[/url] --matt
hello hunter - hosted predictive dialer & voice broadcasting
[url=http://www.hellohunter.com/]http://www.hellohunter.com





On Thu, Aug 6, 2009 at 9:38 AM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:


Quote:

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:

2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-05 16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL

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?

Thanks!

Nicolas





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





Back to top
pjintheusa at gmail.com
Guest





PostPosted: Fri Aug 07, 2009 12:41 pm    Post subject: [Freeswitch-users] Which event contains ORIGINATOR_CANCEL? Reply with quote

What does

bridge_hangup_cause

give you?

On Fri, Aug 7, 2009 at 12:43 PM, Nicolas Brenner <nicolas@medularis.com> wrote:
Quote:

I changed the script to set hangup_after_bridge to false, but still the same thing happens, I get this on the console:

2009-08-07 12:27:44.229091 [NOTICE] sofia.c:322 Hangup sofia/external/00569xxxxxxx [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
2009-08-07 12:27:44.229091 [DEBUG] switch_channel.c:1683 Send signal sofia/external/00569xxxxxxx [KILL]
2009-08-07 12:27:44.229091 [DEBUG] switch_core_session.c:932 Send signal sofia/external/00569xxxxxxx [BREAK]
2009-08-07 12:27:44.231471 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-07 12:27:44.231471 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-07 12:27:44.231471 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-07 12:27:44.231471 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-07 12:27:44.231471 [DEBUG] switch_core_state_machine.c:398 (sofia/external/00569xxxxxxx) Running State Change CS_HANGUP
2009-08-07 12:27:44.231471 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL
2009-08-07 12:27:44.231471 [NOTICE] c2c.js:1 *********** Leg2: NORMAL_CLEARING ***********


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?


Thanks!

Nicolas

On Thu, Aug 6, 2009 at 3:45 PM, Nicolas Brenner <nicolas@medularis.com> wrote:
Quote:

Hi Matt,

Actually I'm explicitly setting hangup_after_bridge to true, think setting it to false would help? I'm going to try that.

Here's the JS code:
(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)

----------------
var uuid = argv[0]; // Call identifier
var dialstr1 = argv[1]; // Dial string obtained from previous call to LCR
var dialstr2 = argv[2]; // Dial string obtained from previous call to LCR
var greeting_snd = "/var/audio/alert.wav";

console_log("notice", "*********** STARTING C2C Call ***********\n");
timeout = 30;

console_log("notice", "*********** DIALING "+dialstr1+" ***********\n");

//var stUsRing = session.getVariable("us-ring");  // This doesn't work, self.session.getVariable doesn't work either
var stUsRing = "%(2000,4000,440,480)";

// Create new_session
new_session = new Session(originate_str1);
console_log("notice", "*********** Leg1: " + new_session.cause + " ***********\n");

if (new_session.ready()) {
        // log to the console
        console_log("notice", "*********** Leg1 ("+dialstr1+") CONNECTED! ***********\n");
        console_log("notice", "*********** Playing greeting sound: "+greeting_snd+" ***********\n");

        new_session.execute("sleep", 100);
        new_session.execute("playback", greeting_snd);

        // Originate second call and bridge
    originate_str2 = "{ignore_early_media=true,originate_timeout="+timeout+",hangup_after_bridge=true,medularis_uuid="+uuid+",c2c_call=true,leg=2}"+dialstr2;

        // Create new_session
        new_session.execute("bridge", originate_str2);
        console_log("notice", "*********** Leg2: " + new_session.cause + " ***********\n");

        if (new_session.ready()) {
                console_log("notice", "*********** Leg2 ("+dialstr2+") CONNECTED! ***********\n");
        }
}

exit();
----------------

Thanks!


Nicolas


On Thu, Aug 6, 2009 at 2:25 PM, Matthew Fong <mattdfong@gmail.com> wrote:
Quote:

Hi Nicolas,
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.
Hangup causes can be found here:
http://wiki.freeswitch.org/wiki/Hangup_causes
--matt
hello hunter - hosted predictive dialer & voice broadcasting
http://www.hellohunter.com

On Thu, Aug 6, 2009 at 9:38 AM, Nicolas Brenner <nicolas@medularis.com> wrote:
Quote:

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:

2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-05 16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL

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?

Thanks!

Nicolas



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
nicolas at medularis.com
Guest





PostPosted: Fri Aug 07, 2009 4:30 pm    Post subject: [Freeswitch-users] Which event contains ORIGINATOR_CANCEL? Reply with quote

That variable is not available, it is not included with the CHANNEL_HANGUP_COMPLETE event info. However I discovered that when the bridge does not work, there are two CHANNEL_HANGUP_COMPLETE events, one for each leg, nevertheless for some reason the daemon I have watching the events misses the second leg event, so I was only seeing the result of the first leg hangup, which is NORMAL_CLEARING, and the second event's hangup_cause is ORIGINATOR_CANCEL. I don't know why my daemon is missing the event though. I'll have to dig into this further.


On Fri, Aug 7, 2009 at 1:28 PM, Phillip Jones <pjintheusa@gmail.com (pjintheusa@gmail.com)> wrote:
Quote:
What does

bridge_hangup_cause

give you?


On Fri, Aug 7, 2009 at 12:43 PM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:

I changed the script to set hangup_after_bridge to false, but still the same thing happens, I get this on the console:

2009-08-07 12:27:44.229091 [NOTICE] sofia.c:322 Hangup sofia/external/00569xxxxxxx [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
2009-08-07 12:27:44.229091 [DEBUG] switch_channel.c:1683 Send signal sofia/external/00569xxxxxxx [KILL]
2009-08-07 12:27:44.229091 [DEBUG] switch_core_session.c:932 Send signal sofia/external/00569xxxxxxx [BREAK]
2009-08-07 12:27:44.231471 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-07 12:27:44.231471 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-07 12:27:44.231471 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-07 12:27:44.231471 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-07 12:27:44.231471 [DEBUG] switch_core_state_machine.c:398 (sofia/external/00569xxxxxxx) Running State Change CS_HANGUP
2009-08-07 12:27:44.231471 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL
2009-08-07 12:27:44.231471 [NOTICE] c2c.js:1 *********** Leg2: NORMAL_CLEARING ***********


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?


Thanks!

Nicolas

On Thu, Aug 6, 2009 at 3:45 PM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:

Hi Matt,

Actually I'm explicitly setting hangup_after_bridge to true, think setting it to false would help? I'm going to try that.

Here's the JS code:
(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)

----------------
var uuid = argv[0]; // Call identifier
var dialstr1 = argv[1]; // Dial string obtained from previous call to LCR
var dialstr2 = argv[2]; // Dial string obtained from previous call to LCR
var greeting_snd = "/var/audio/alert.wav";

console_log("notice", "*********** STARTING C2C Call ***********\n");
timeout = 30;

console_log("notice", "*********** DIALING "+dialstr1+" ***********\n");

//var stUsRing = session.getVariable("us-ring");  // This doesn't work, self.session.getVariable doesn't work either
var stUsRing = "%(2000,4000,440,480)";

// Create new_session
new_session = new Session(originate_str1);
console_log("notice", "*********** Leg1: " + new_session.cause + " ***********\n");

if (new_session.ready()) {
        // log to the console
        console_log("notice", "*********** Leg1 ("+dialstr1+") CONNECTED! ***********\n");
        console_log("notice", "*********** Playing greeting sound: "+greeting_snd+" ***********\n");

        new_session.execute("sleep", 100);
        new_session.execute("playback", greeting_snd);

        // Originate second call and bridge
    originate_str2 = "{ignore_early_media=true,originate_timeout="+timeout+",hangup_after_bridge=true,medularis_uuid="+uuid+",c2c_call=true,leg=2}"+dialstr2;

        // Create new_session
        new_session.execute("bridge", originate_str2);
        console_log("notice", "*********** Leg2: " + new_session.cause + " ***********\n");

        if (new_session.ready()) {
                console_log("notice", "*********** Leg2 ("+dialstr2+") CONNECTED! ***********\n");
        }
}

exit();
----------------

Thanks!


Nicolas


On Thu, Aug 6, 2009 at 2:25 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:

Hi Nicolas,
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.
Hangup causes can be found here:
http://wiki.freeswitch.org/wiki/Hangup_causes
--matt
hello hunter - hosted predictive dialer & voice broadcasting
http://www.hellohunter.com

On Thu, Aug 6, 2009 at 9:38 AM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:

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:

2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994 Hangup sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal sofia/external/005622170039 [KILL]
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal sofia/external/005622170039 [BREAK]
2009-08-05 16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed.  Cause: ORIGINATOR_CANCEL

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?

Thanks!

Nicolas



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services