Hi, I am building a standalone program where I will take an incoming call and do a lookup and then bridge the incoming call with an outbound call. I create a new session using the UUID that the in inbound call then I call the bridge code. What happens is as soon as I call the bridge call the inbound call disconnects. I know I need to edit the dial plan but not sure what to update it to. The other way I tried to do this is pass the bridge info via dial plan variable but the variable hits faster than I can set it. Is there a wait for variable I can put in the dial plan? Andrew
Are you doing this with lua? You don't need to create any new session -- you can just do the lookup then bridge the call. Can you show us what code you're using to do this? -Avi On Sat, Dec 21, 2013 at 3:26 PM, Andrew <aademattia@comcast.net> wrote:
Hi,
I am building a standalone program where I will take an incoming call and
do a lookup and then bridge the incoming call with an outbound call.
I create a new session using the UUID that the in inbound call then I call the bridge code.
What happens is as soon as I call the bridge call the inbound call disconnects.
I know I need to edit the dial plan but not sure what to update it to.
The other way I tried to do this is pass the bridge info via dial plan variable but the variable hits faster than I can set it.
Is there a wait for variable I can put in the dial plan?
Andrew
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hi, I am using mod_managed. :) I am getting an inbound call. Setting it to a session. Making a new session and passing the dial plan. When I bridge the two leg of the call Leg A (incoming) Disconnects. I found adding park to the public dial plan did fix my issue. I was also trying to pass the dial plan through a variable but looks like the bridge is called too fast and I can't set "my_dialstring." <action application="bridge" data="${my_dialstring}"/> I need to do everything I can do to keep performance. I plan to make this into a sip server/proxy server to handle dialer traffic. Here is the code I did get to work. string Route = "{bypass_media=true,hangup_after_bridge=true,hangup_complete_with_xml=true,c ontinue_on_fail=true,execute_on_answer=sched_hangup +" + SecMaxTalkTime + " alloted_timeout, ignore_early_media=true, origination_caller_id_number=" + CallerIDNumber + ", origination_caller_id_name=" + CallerIDName + ",originate_timeout=" + MaxTimeOUT + ",progress_timeout=" + PDD + ",fail_on_single_reject=USER_BUSY NO_ANSWER NO_USER_RESPONSE ORIGINATOR_CANCEL} " + DialPath; ManagedSession leg_A = new ManagedSession(UUID_LegA); ManagedSession leg_b = new ManagedSession(Route); if (leg_b.Ready()) { freeswitch.bridge(leg_A, leg_b); } Public dial plan: <extension name="public_extensions"> <condition field="destination_number" expression="^.*$"> <action application="info"/> <action application="set" data="bypass_media=true"/> <action application="set" data="hangup_after_bridge=true"/> <action application="park"/> </condition> </extension> From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Avi Marcus Sent: Sunday, December 22, 2013 3:55 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dial plan public- HELP Are you doing this with lua? You don't need to create any new session -- you can just do the lookup then bridge the call. Can you show us what code you're using to do this? -Avi On Sat, Dec 21, 2013 at 3:26 PM, Andrew <aademattia@comcast.net <mailto:aademattia@comcast.net> > wrote: Hi, I am building a standalone program where I will take an incoming call and do a lookup and then bridge the incoming call with an outbound call. I create a new session using the UUID that the in inbound call then I call the bridge code. What happens is as soon as I call the bridge call the inbound call disconnects. I know I need to edit the dial plan but not sure what to update it to. The other way I tried to do this is pass the bridge info via dial plan variable but the variable hits faster than I can set it. Is there a wait for variable I can put in the dial plan? Andrew _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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)
-
Andrew
-
Avi Marcus