[Freeswitch-users] parallel execution in dialplan

Mathieu Rene mrene_lists at avgs.ca
Thu Jul 15 08:36:07 PDT 2010


Hi,

originate is an API command to launch a separate call. API commands are normally not linked to any calls. What exactly do you want to do in your "test" app?

Also, you can jump in on #freeswitch on freenode, live chatting might be easier.


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene at avgs.ca




On 2010-07-15, at 11:01 AM, Achim Stamm wrote:

> Mathieu Rene schrieb:
>> Hi,
>> 
>> Only one application per channel can be running at the same time. However, you can run an API command in the background (the bgapi api will start the command in another thread).
>> 
>> You can also pass the current call's uuid (via ${uuid}) to your API in order to be able to control the call, transfer it, etc.
>> 
>> PS: You can hop on irc for a live chat
>> 
>> Viel glueck!
>> 
>> Mathieu Rene
>> Avant-Garde Solutions Inc
>> Office: + 1 (514) 664-1044 x100
>> Cell: +1 (514) 664-1044 x200
>> mrene at avgs.ca
>> 
>> 
>> 
>> 
>> On 2010-07-14, at 9:59 AM, Achim Stamm wrote:
>> 
>> 
>>> Hello!
>>> 
>>> I have following problem:
>>> I want that 2 applications are executed parallel from my dialplan.
>>> Actually the dialplan is executed step by step, that means that 
>>> application "bridge"
>>> is started and phone 1011 is ringing. But application "test" will not 
>>> start at the same time.
>>> 
>>> This is a snipit from my dialplan:
>>> -----------------------------------
>>> <extension name="TEST-Anrufer">
>>> <condition field="destination_number" expression="70">
>>> <action application="info"/>
>>> <action application="bridge" data="user/1011 at 192.168.1.30"/>
>>> <action application="test" data="EProcessCall,EXT50,70"/>
>>> </condition>
>>> </extension>
>>>     ----------------------------------
>>> 
>>> Is there a solution that both applications are executed parallel and 
>>> start at same time ?
>>> 
>>> regards
>>> 
>>> Achim Stamm
>>> 
>>> -- 
>>> Achim Stamm, Dipl.-Inform. (FH)
>>> 
>>> 
>>> Lyncker & Theis GmbH
>>> Wilhelmstr. 16
>>> 65185 Wiesbaden
>>> Germany
>>> 
>>> Fon +49 611/9006951
>>> Fax +49 611/9406125
>>> 
>>> 
>>> Handelsregister: HRB 23156 Amtsgericht Wiesbaden
>>> Steuernummer: 04323897052
>>> USt-IdNr.: DE255806399
>>> 
>>> Geschäftsführer:
>>> Filip Lyncker,
>>> Armin Theis 
>>> 
>>> 
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> 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
>>> 
>> 
>> 
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> 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
>> 
>> 
> Hi,
> 
> Thanks for helping. It works with bgapi. Here a snipit from my Dialplan 
> with bgapi:
> 
> 
> --------------------------------------------------------------------------------
> <extension name="EBV-Anrufer">
>      <condition field="destination_number" expression="70">
>         <action application="info"/>
>          <action application="set" data="api_result=${bgapi(originate 
> {ignore_early_media=true,originate_timeout=60}user/1011 at 192.168.1.30 
> EBV-Anrufer)}"/>
> 
>         <action application="test" data="EProcessCall,EXT50,70"/>
> 
>      </condition>
> 
> --------------------------------------------------------------------------------
> 
> The telephone 1011 rings and i can do something in my method 
> EProcessCall at same time.
> 
> But I have a problem, that the call with originate is not connected 
> probably. I think the second parameter extension (EBV-Anrufer) of 
> command originate is not
> correct.
> 
> Thanks
> 
> 
> Achim Stamm
> 
> -- 
> Achim Stamm, Dipl.-Inform. (FH)
> 
> 
> Lyncker & Theis GmbH
> Wilhelmstr. 16
> 65185 Wiesbaden
> Germany
> 
> Fon +49 611/9006951
> Fax +49 611/9406125
> 
> 
> Handelsregister: HRB 23156 Amtsgericht Wiesbaden
> Steuernummer: 04323897052
> USt-IdNr.: DE255806399
> 
> Geschäftsführer:
> Filip Lyncker,
> Armin Theis 
> 
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> 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




More information about the FreeSWITCH-users mailing list