FreeSWITCH Version 1.0.head (git-) from 5/28/10 I have a lua script called from the dialplan that bridges the call with session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") after the call ends, I am trying to get some variables out of the Bleg session, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info.
you can't, at least the way you are trying. you should not be doing accounting in your script, rather, you should make a separate system to process call data. On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank@impactfax.com>wrote:
FreeSWITCH Version 1.0.head (git-) from 5/28/10
I have a lua script called from the dialplan that bridges the call with
session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212")
after the call ends, I am trying to get some variables out of the Blegsession, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info.
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
I am not trying to do accounting in the lua script. I am really just trying to determine which leg hung up on the bridge. Is there another way to get that same information if it do it like I am trying? -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Friday, May 28, 2010 3:41 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg you can't, at least the way you are trying. you should not be doing accounting in your script, rather, you should make a separate system to process call data. On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank@impactfax.com> wrote: FreeSWITCH Version 1.0.head (git-) from 5/28/10 I have a lua script called from the dialplan that bridges the call with session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") after the call ends, I am trying to get some variables out of the Bleg session, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info. _______________________________________________ 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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
Anthony: Can you kindly describe why is it not a good practice to do accounting in the script? And what's the major benefit for doing accounting from a separate system? Henry Chat Skype: unicsolution MSN: b_ball_henry@hotmail.com Contact Me [image: Linkedin]<http://www.linkedin.com/pub/henry-huang/1/654/578>[image: Facebook] <http://www.facebook.com/profile.php?id=595148342>[image: Twitter]<http://twitter.com/unicsolution> On Sat, May 29, 2010 at 3:41 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
you can't, at least the way you are trying.
you should not be doing accounting in your script, rather, you should make a separate system to process call data.
On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank@impactfax.com>wrote:
FreeSWITCH Version 1.0.head (git-) from 5/28/10
I have a lua script called from the dialplan that bridges the call with
session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212")
after the call ends, I am trying to get some variables out of the Blegsession, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info.
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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
On Fri, May 28, 2010 at 8:19 PM, Henry Huang <b_ball_henry@hotmail.com>wrote:
Anthony:
Can you kindly describe why is it not a good practice to do accounting in the script? And what's the major benefit for doing accounting from a separate system?
"Separation of concerns." The PBX/soft-switch is designed to connect calls and it does a great job of that. It also does a great job of producing raw information from which a proper database application can do billing. Mixing the two has, at best, marginal benefits, but it can cause many troubles. Having the billing app/db in a separate process (preferably on a completely separate system) makes it more robust, more scalable, easier to maintain and easier to troubleshoot. Those rewards are well worth the relatively small effort that is required to build the billing system separately.
-MC
Henry
Chat Skype: unicsolution MSN: b_ball_henry@hotmail.com Contact Me [image: Linkedin]<http://www.linkedin.com/pub/henry-huang/1/654/578>[image: Facebook] <http://www.facebook.com/profile.php?id=595148342>[image: Twitter] <http://twitter.com/unicsolution>
On Sat, May 29, 2010 at 3:41 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
you can't, at least the way you are trying.
you should not be doing accounting in your script, rather, you should make a separate system to process call data.
On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank@impactfax.com>wrote:
FreeSWITCH Version 1.0.head (git-) from 5/28/10
I have a lua script called from the dialplan that bridges the call with
session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212")
after the call ends, I am trying to get some variables out of the Blegsession, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info.
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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
Michael, I agree to do the accounting work somewhere else. But I am really just trying to determine which leg hung up on the bridge when I do session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") I am trying to get the sip_hangup_disposition from both legs. The variables for both legs is not in the 'info' output available after the bridge ends. Is there another way to get this same information if I do the bridge as listed? -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Friday, May 28, 2010 11:57 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg On Fri, May 28, 2010 at 8:19 PM, Henry Huang <b_ball_henry@hotmail.com> wrote: Anthony: Can you kindly describe why is it not a good practice to do accounting in the script? And what's the major benefit for doing accounting from a separate system? "Separation of concerns." The PBX/soft-switch is designed to connect calls and it does a great job of that. It also does a great job of producing raw information from which a proper database application can do billing. Mixing the two has, at best, marginal benefits, but it can cause many troubles. Having the billing app/db in a separate process (preferably on a completely separate system) makes it more robust, more scalable, easier to maintain and easier to troubleshoot. Those rewards are well worth the relatively small effort that is required to build the billing system separately. -MC Henry Chat Skype: unicsolution MSN: b_ball_henry@hotmail.com Contact Me <http://www.linkedin.com/pub/henry-huang/1/654/578> Linkedin <http://www.facebook.com/profile.php?id=595148342> Facebook <http://twitter.com/unicsolution> Twitter On Sat, May 29, 2010 at 3:41 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote: you can't, at least the way you are trying. you should not be doing accounting in your script, rather, you should make a separate system to process call data. On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank@impactfax.com> wrote: FreeSWITCH Version 1.0.head (git-) from 5/28/10 I have a lua script called from the dialplan that bridges the call with session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") after the call ends, I am trying to get some variables out of the Bleg session, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info. _______________________________________________ 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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900 _______________________________________________ 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
Or is there something I could do in my lua script that is setting up the bridge if I used bridge_pre_execute_bleg_app to somehow get the bleg session object so that I can refer to it later in the lua script after the bridge has terminated? I am not so sure how to use bridge_pre_execute_bleg_app from within the lua to do this. -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Frank @ Impact Sent: Saturday, May 29, 2010 10:48 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg Michael, I agree to do the accounting work somewhere else. But I am really just trying to determine which leg hung up on the bridge when I do session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") I am trying to get the sip_hangup_disposition from both legs. The variables for both legs is not in the info output available after the bridge ends. Is there another way to get this same information if I do the bridge as listed? -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Friday, May 28, 2010 11:57 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg On Fri, May 28, 2010 at 8:19 PM, Henry Huang <b_ball_henry@hotmail.com> wrote: Anthony: Can you kindly describe why is it not a good practice to do accounting in the script? And what's the major benefit for doing accounting from a separate system? "Separation of concerns." The PBX/soft-switch is designed to connect calls and it does a great job of that. It also does a great job of producing raw information from which a proper database application can do billing. Mixing the two has, at best, marginal benefits, but it can cause many troubles. Having the billing app/db in a separate process (preferably on a completely separate system) makes it more robust, more scalable, easier to maintain and easier to troubleshoot. Those rewards are well worth the relatively small effort that is required to build the billing system separately. -MC Henry Chat Skype: unicsolution MSN: b_ball_henry@hotmail.com Contact Me On Sat, May 29, 2010 at 3:41 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote: you can't, at least the way you are trying. you should not be doing accounting in your script, rather, you should make a separate system to process call data. On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank@impactfax.com> wrote: FreeSWITCH Version 1.0.head (git-) from 5/28/10 I have a lua script called from the dialplan that bridges the call with session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") after the call ends, I am trying to get some variables out of the Bleg session, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info. _______________________________________________ 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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _______________________________________________ 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
You can't get the hangup disposition till the channel is hung up. That is why they call it hangup disposition. /b Sent from my iPad On May 29, 2010, at 9:48 AM, "Frank @ Impact" <frank@impactfax.com> wrote:
Michael,
I agree to do the accounting work somewhere else. But I am really just trying to determine which leg hung up on the bridge when I do session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") I am trying to get the sip_hangup_disposition from both legs. The variables for both legs is not in the ‘info’ output available after the bridge ends.
Is there another way to get this same information if I do the bridge as listed?
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Friday, May 28, 2010 11:57 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg
On Fri, May 28, 2010 at 8:19 PM, Henry Huang <b_ball_henry@hotmail.com> wrote: Anthony:
Can you kindly describe why is it not a good practice to do accounting in the script? And what's the major benefit for doing accounting from a separate system?
"Separation of concerns." The PBX/soft-switch is designed to connect calls and it does a great job of that. It also does a great job of producing raw information from which a proper database application can do billing. Mixing the two has, at best, marginal benefits, but it can cause many troubles. Having the billing app/db in a separate process (preferably on a completely separate system) makes it more robust, more scalable, easier to maintain and easier to troubleshoot. Those rewards are well worth the relatively small effort that is required to build the billing system separately.
-MC
Henry
Chat Skype: unicsolution MSN: b_ball_henry@hotmail.com Contact Me
On Sat, May 29, 2010 at 3:41 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote: you can't, at least the way you are trying.
you should not be doing accounting in your script, rather, you should make a separate system to process call data.
On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank@impactfax.com> wrote: FreeSWITCH Version 1.0.head (git-) from 5/28/10
I have a lua script called from the dialplan that bridges the call with session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212")
after the call ends, I am trying to get some variables out of the Bleg session, the bridged leg. But I do not have a session handle to get the variables. I know what the uuid is from global variable_bridge_uuid. But how can I get the session of the B-leg so that I can do a getVariable()? The variables I want are not available in any of the global variables I can see with info.
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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
Yes. I understand that. So, after the bridge is done, how can I get the hangup disposition of both legs? Again, I am just trying to record which leg said bye. -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Saturday, May 29, 2010 11:07 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg You can't get the hangup disposition till the channel is hung up. That is why they call it hangup disposition. /b
you can't till the channel is hung up. /b Sent from my iPad On May 29, 2010, at 12:21 PM, "Frank @ Impact" <frank@impactfax.com> wrote:
Yes. I understand that. So, after the bridge is done, how can I get the hangup disposition of both legs? Again, I am just trying to record which leg said bye.
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Saturday, May 29, 2010 11:07 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg
You can't get the hangup disposition till the channel is hung up. That is why they call it hangup disposition.
/b
_______________________________________________ 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
Ok. so after the bridge is done and the channels are hung up, how do I know which leg disconnected and why? Who hung up first and send the bye? I am initiating the bridge with session:execute("bridge","{route=sofia/gateway/US/15555551212} sofia/gateway/US/15555551212") -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Saturday, May 29, 2010 1:44 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] how to get session of bridged Bleg you can't till the channel is hung up. /b
On Sat, May 29, 2010 at 10:21 AM, Frank @ Impact <frank@impactfax.com>wrote:
Yes. I understand that. So, after the bridge is done, how can I get the hangup disposition of both legs? Again, I am just trying to record which leg said bye.
Okay, I think the point that Brian is trying to drive home is that since the hangup disposition isn't known until hangup occurs you cannot know the disposition inside of a session. The session ceases to exist at hangup so the only way to know the disposition is to look at the CDRs or to play around with "set_hangup_hook" and "session_in_hangup_hook" chan vars. -MC
-----Original Message----- *From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Brian West *Sent:* Saturday, May 29, 2010 11:07 AM *To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] how to get session of bridged Bleg
You can't get the hangup disposition till the channel is hung up. That is why they call it hangup disposition.
/b
_______________________________________________ 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
participants (5)
-
Anthony Minessale
-
Brian West
-
Frank @ Impact
-
Henry Huang
-
Michael Collins