[Freeswitch-users] Can't we run both applications with one dialplan?
Adeel Ansari
adeel.gnome at gmail.com
Wed Sep 24 22:41:59 PDT 2008
Thanks Anthony. In my case the second one never executes, if written like
below
====
<extension name="liverpie_test">
<condition field="destination_number" expression="121">
<action application="socket" data="127.0.0.1:8084" />
<action application="bridge"
data="sofia/gateway/${voip}/${recepient}" />
</condition>
</extension>
====
same result, 2nd doesn't execute, if reverse like this
====
<extension name="liverpie_test">
<condition field="destination_number" expression="121">
<action application="bridge"
data="sofia/gateway/${voip}/${recepient}" />
<action application="socket" data="127.0.0.1:8084" />
</condition>
</extension>
====
Yes it works sequentially, if written like this.
====
<extension name="bridge_test" continue="true">
<condition field="destination_number" expression="121">
<action application="bridge"
data="sofia/gateway/${voip}/${recepient}" />
</condition>
</extension>
<extension name="liverpie_test">
<condition field="destination_number" expression="121">
<action application="socket" data="127.0.0.1:8084" />
</condition>
</extension>
====
but the second got executed after hanging up the call. I want to capture the
call events during call. How should I proceed with this.
Thanks.
On Wed, Sep 10, 2008 at 9:09 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:
> If the first app hangs up the cal then the 2nd one will never execute.
>
>
>
> On Wed, Sep 10, 2008 at 3:55 AM, Adeel Ansari <adeel.gnome at gmail.com>wrote:
>
>> Only the first application is working in both cases. How to proceed? Any
>> idea.
>>
>>
>> On Wed, Sep 10, 2008 at 2:19 PM, Adeel Ansari <adeel.gnome at gmail.com>wrote:
>>
>>> Hey, actually, none is work with me.
>>>
>>> *Not this*
>>> ====
>>> <extension name="liverpie_test" continue="true">
>>> <condition field="destination_number" expression="121">
>>> <action application="socket" data="127.0.0.1:8084" />
>>> <action application="java"
>>> data="/home/programs/freeswitch/scripts/freeswitch.jar net.fs.CallTest"/>
>>> </condition>
>>> </extension>
>>> ====
>>>
>>> *Nor this*
>>> ====
>>> <extension name="liverpie_test" continue="true">
>>> <condition field="destination_number" expression="121">
>>> <action application="socket" data="127.0.0.1:8084" />
>>> </condition>
>>> </extension>
>>>
>>> <extension name="java_test">
>>> <condition field="destination_number" expression="121">
>>> <action application="java"
>>> data="/home/programs/freeswitch/scripts/freeswitch.jar net.fs.CallTest"/>
>>> </condition>
>>> </extension>
>>> ====
>>>
>>> Whatever comes first, works. Anyone tell me, how I should go about it. I
>>> need to invoke both application on a single call. Thanks.
>>>
>>>
>>>
>>> On Wed, Sep 10, 2008 at 12:34 PM, Adeel Ansari <adeel.gnome at gmail.com>wrote:
>>>
>>>> So, it means we can run it like simultaneously. It was not working with
>>>> me, actually. Liverpie was not sending anything to my web app, when run the
>>>> thing in the former way. However, running it in a sequence is fine with me.
>>>>
>>>> Need to ask one more thing. How about if we swap both application
>>>> configuration in former dialplan. I mean if we put *java* first and *
>>>> socket* later, does it create any difference? Are you getting me?
>>>>
>>>> Thanks.
>>>>
>>>>
>>>> On Wed, Sep 10, 2008 at 12:04 PM, Brian West <brian at freeswitch.org>wrote:
>>>>
>>>>> Depends are you wanting them to run at the same time? Or one after the
>>>>> other?
>>>>> /b
>>>>>
>>>>> On Sep 9, 2008, at 10:58 PM, Adeel Ansari wrote:
>>>>>
>>>>> Or should we do this in two, like this.
>>>>>
>>>>> ====
>>>>> <extension name="liverpie_test" continue="true">
>>>>> <condition field="destination_number" expression="121">
>>>>> <action application="socket" data="127.0.0.1:8084" />
>>>>> </condition>
>>>>> </extension>
>>>>>
>>>>> <extension name="java_test">
>>>>> <condition field="destination_number" expression="121">
>>>>> <action application="java"
>>>>> data="/home/programs/freeswitch/scripts/freeswitch.jar
>>>>> apps.freeswitch.CallTest"/>
>>>>> </condition>
>>>>> </extension>
>>>>>
>>>>> ====
>>>>>
>>>>>
>>>>> On Wed, Sep 10, 2008 at 11:47 AM, Adeel Ansari <adeel.gnome at gmail.com>wrote:
>>>>>
>>>>>> Hi folks,
>>>>>>
>>>>>> Can't we run both applications with one dialplan? Like this.
>>>>>>
>>>>>> ====
>>>>>> <extension name="liverpie_test" continue="true">
>>>>>> <condition field="destination_number" expression="121">
>>>>>> <action application="socket" data="127.0.0.1:8084" />
>>>>>> <action application="java"
>>>>>> data="/home/adeel/programs/freeswitch/scripts/freeswitch.jar
>>>>>> net.digitalapps.freeswitch.CallTest"/>
>>>>>> </condition>
>>>>>> </extension>
>>>>>> ====
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> --
>>>>>> Best,
>>>>>> Adeel Ansari
>>>>>>
>>>>>> http://www.linkedin.com/in/adeelansari
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best,
>>>>> Adeel Ansari
>>>>>
>>>>> http://www.linkedin.com/in/adeelansari
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>> Brian West
>>>>> sip:brian at 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best,
>>>> Adeel Ansari
>>>>
>>>> http://www.linkedin.com/in/adeelansari
>>>>
>>>
>>>
>>>
>>> --
>>> Best,
>>> Adeel Ansari
>>>
>>> http://www.linkedin.com/in/adeelansari
>>>
>>
>>
>>
>> --
>> Best,
>> Adeel Ansari
>>
>> http://www.linkedin.com/in/adeelansari
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:213-799-1400
>
> _______________________________________________
> 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
>
>
--
Best,
Adeel Ansari
http://www.linkedin.com/in/adeelansari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080925/950fcdc5/attachment-0002.html
More information about the FreeSWITCH-users
mailing list