[Freeswitch-users] Dial plan public- HELP

Andrew aademattia at comcast.net
Mon Dec 23 01:10:26 MSK 2013


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 at lists.freeswitch.org
[mailto:freeswitch-users-bounces at 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 at comcast.net
<mailto:aademattia at 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 at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
<mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131222/d1a49e7a/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list