[Freeswitch-users] Break command not working
Chris Martineau
chris at ghosttelecom.com
Mon Oct 10 14:01:01 MSD 2011
Hi,
Thanks for that, I had found the api on answer and was trying to make
that work.
Trying to get the below to work but looking at the log it seems to be
ignoring ${uuid} as this is not inserted in the EXECUTE section. All I
see is..
EXECUTE ... bridge({api_on_answer='uuid_break '}.... I assume that I
should see the uuid inserted here?
I then get a DEBUG message on answer saying
api on answer: uuid_break()
-USAGE: <uuid> [all]
Which I assume is telling me that there is no uuid!
Any ideas
Regards
Chris
-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Anthony Minessale
Sent: 07 October 2011 17:47
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Break command not working
you can't execute the break because it's busy playing the file, you
can do the break on the other leg though,
This is more of what you want.
<extension name="1235">
<condition field="destination_number" expression="^1235$">
<action application="set"
data="execute_on_media=playback::/path/file"/>
<action application="pre_answer"/>
<action application="bridge"
data="{ignore_early_media=true,api_on_answer='uuid_break
${uuid}'}sofia/internal/foo at bar.com"/>
</condition>
</extension>
On Fri, Oct 7, 2011 at 10:03 AM, Chris Martineau
<chris at ghosttelecom.com> wrote:
> Hi,
>
>
>
> I have the following scenario...
>
>
>
> application='preanswer'
>
> application='set' data='execute_on_answer=break'
>
> application='sched_broadcast' data='+1 /path/file'
>
> application='bridge' data='sofia...'
>
>
>
> This works fine in that it pre answers the call and plays back a
welcome
> message prior to normal early media ringtone.
>
>
>
> The problem I have is that if the call is answered quickly the
playback just
> continues until finished.
>
>
>
> I would have thought that application='set'
data='execute_on_answer=break'
> should stop the playback on answer but the break command doesn't have
any
> effect. I have tried break all to no effect.
>
>
>
> Should this work?
>
>
>
> Any ideas on how to make this work?
>
>
>
> Many thanks
>
>
>
> Chris
>
>
>
> 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/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
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
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list