[Freeswitch-users] multiple commands in execute_on_answer

2009-07-29 Thread Apostolos Pantsiopoulos
Hi,

Is there a way to execute more than 1 commands in the execute_on_answer
variable? I want to execute both a python script AND the sched_hangup 
application.


-- 
---
Apostolos Pantsiopoulos
Kinetix Tele.com R & D
email: r...@kinetix.gr
---

___
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


Re: [Freeswitch-users] multiple commands in execute_on_answer

2009-07-29 Thread Matthew Fong
can't you just have your python script execute the sched_hangup command, and
then finish the remainder of the python script?

On Wed, Jul 29, 2009 at 12:15 AM, Apostolos Pantsiopoulos
wrote:

> Hi,
>
> Is there a way to execute more than 1 commands in the execute_on_answer
> variable? I want to execute both a python script AND the sched_hangup
> application.
>
>
> --
> ---
> Apostolos Pantsiopoulos
> Kinetix Tele.com R & D
> email: r...@kinetix.gr
> ---
>
> ___
> 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
>
___
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


Re: [Freeswitch-users] multiple commands in execute_on_answer

2009-07-29 Thread Apostolos Pantsiopoulos
Yes, I could do that but the logic of the python script is
not dialplan oriented and I hate mixing different things. I just
found a workaround though. I am executing the python script on the
b leg and the sched_hangup on the a leg (with the help of nolocal:)
Thanx for the help anyway.

Matthew Fong wrote:
> can't you just have your python script execute the sched_hangup command, 
> and then finish the remainder of the python script?
> 
> On Wed, Jul 29, 2009 at 12:15 AM, Apostolos Pantsiopoulos 
> mailto:r...@kinetix.gr>> wrote:
> 
> Hi,
> 
> Is there a way to execute more than 1 commands in the execute_on_answer
> variable? I want to execute both a python script AND the sched_hangup
> application.
> 
> 
> --
> ---
> Apostolos Pantsiopoulos
> Kinetix Tele.com R & D
> email: r...@kinetix.gr 
> ---
> 
> ___
> 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
> 
> 
> 
> 
> 
> ___
> 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


-- 
---
Apostolos Pantsiopoulos
Kinetix Tele.com R & D
email: r...@kinetix.gr
---

___
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


Re: [Freeswitch-users] multiple commands in execute_on_answer

2009-07-29 Thread Michael Collins
On Wed, Jul 29, 2009 at 12:59 AM, Apostolos Pantsiopoulos
wrote:

> Yes, I could do that but the logic of the python script is
> not dialplan oriented and I hate mixing different things. I just
> found a workaround though. I am executing the python script on the
> b leg and the sched_hangup on the a leg (with the help of nolocal:)
> Thanx for the help anyway.
>

You can also do something like this:


And then define your answer handler extension:

  




  


Just a thought...
-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