How to keep leg A from hanging up from a bridge when Leg B hangs up (and vice versa)?
Hello, I'm using event socket outbound and have a framework that does stuff based on the events that come back (this includes my own IVR). What I have now is an IVR system that allows 2 users to bridge to one another at will, and to 'unbridge' at will by catching DTMF events. I have 2 requirements: 1. When one leg hangs up during a bridge, the other leg is presented with the IVR 2. After a bridge, when one leg sends a DTMF tone, both legs will be presented with the IVR and no longer be bridged (they can bridge with other sessions again after this point if they desire) I have done multiple experiments by using netcat and 2 sessions. Here is what I have found: * The hangup_after_bridge variable does nothing for me. I've set it on both legs, but whenever one leg hangs up after a uuid_bridge, the other leg will automatically hang up * I've tried setting "park_after_bridge=true" on both legs, and this works to a certain extent. If one leg hangs up, the other leg will be parked, and I can present that user with my IVR. This meets requirement #1. However, requirement #2 won't be met because: o If I set "park_after_bridge=true" and one leg sends a DTMF tone to signal an unbridge, I will "unbridge" the legs by "parking" both legs and I am able to present them both with an IVR. If they decide to bridge with each other again (by selecting an option in the IVR), I will attempt to do a uuid_bridge and this will FAIL! (both parties do not hear each other.) In the simplest terms, I can't do "uuid_bridge uuidA uuidB", "park", "uuid_bridge uuidA uuidB". * With "park_after_bridge=false" (default), I can do "uuid_bridge uuidA uuidB", "park", "uuid_bridge uuidA uuidB" with no issues, meeting requirement #2. However, this will not meet requirement #1, because when one leg hangs up, it will trigger a hangup on the other. Please help. How can I meet both of my requirements? Thanks. Simon Tang Lead, Server Team Suite 706, 1155 Robson Street Vancouver, B.C. Canada V6E 1B5 T: +1.604.408.2228 Ext. 116 F: +1.866.874.8136 E: simon@airg.com <mailto:simon@airg.com> W: www.airg.com <http://www.airg.com> The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material communicated under NDA. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
On Mon, Feb 16, 2009 at 2:26 PM, Simon Tang <simon@airg.com> wrote:
Hello,
I'm using event socket outbound and have a framework that does stuff based on the events that come back (this includes my own IVR). What I have now is an IVR system that allows 2 users to bridge to one another at will, and to 'unbridge' at will by catching DTMF events.
Two questions: What version of FS? Preferably latest SVN Are you using the default config, the one created with "make samples"? -MC
Revision 10626. Default config. I haven't tried latest svn yet, because my framework breaks with it (probably due to some event formatting changes). Can you explain what you mean by "make samples" and what default config? I don't recall ever doing a "make samples". -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: February 16, 2009 2:50 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to keep leg A from hanging up from abridge when Leg B hangs up (and vice versa)? On Mon, Feb 16, 2009 at 2:26 PM, Simon Tang <simon@airg.com> wrote:
Hello,
I'm using event socket outbound and have a framework that does stuff based on the events that come back (this includes my own IVR). What I have now is an IVR system that allows 2 users to bridge to one another at will, and to 'unbridge' at will by catching DTMF events.
Two questions: What version of FS? Preferably latest SVN Are you using the default config, the one created with "make samples"? -MC _______________________________________________ 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 Mon, Feb 16, 2009 at 3:04 PM, Simon Tang <simon@airg.com> wrote:
Revision 10626. Default config. I haven't tried latest svn yet, because my framework breaks with it (probably due to some event formatting changes).
Can you explain what you mean by "make samples" and what default config? I don't recall ever doing a "make samples".
I suppose I should have asked what your platform is! :) Is this Windows, Linux, Unix, or Mac ? -MC
Linux :). I've mucked around in the conf files, sip_profiles and dialplans to customize it for my use, but that's as far as I've done in playing with configs. -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: February 16, 2009 3:30 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to keep leg A from hanging up fromabridge when Leg B hangs up (and vice versa)? On Mon, Feb 16, 2009 at 3:04 PM, Simon Tang <simon@airg.com> wrote:
Revision 10626. Default config. I haven't tried latest svn yet, because my framework breaks with it (probably due to some event formatting changes).
Can you explain what you mean by "make samples" and what default config? I don't recall ever doing a "make samples".
I suppose I should have asked what your platform is! :) Is this Windows, Linux, Unix, or Mac ? -MC _______________________________________________ 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 (2)
-
Michael Collins
-
Simon Tang