when I do this : originate /sofia/gateway/blabla/9999999999 &app(hahaha) is the ap executed at early media or after answer ? Thanks
early media if you want after answer do originate {ignore_early_media=true}sofia/gateway/blabla/9999999999 &app(hahaha) On Thu, Feb 24, 2011 at 7:02 PM, Madovsky <infos@madovsky.org> wrote:
when I do this : originate /sofia/gateway/blabla/9999999999 &app(hahaha)
is the ap executed at early media or after answer ?
Thanks _______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
ha ok got it. so in case of txfax app should I use early_media ? in the case of the call is already answered can I run the app from uuid_broadcast or uuid_transfer if the app is in an extension ? I tried the last but it makes a fax timeout thanks ----- Original Message ----- From: "Anthony Minessale" <anthony.minessale@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Thursday, February 24, 2011 8:04 PM Subject: Re: [Freeswitch-users] exec app on originate
early media if you want after answer do
originate {ignore_early_media=true}sofia/gateway/blabla/9999999999 &app(hahaha)
On Thu, Feb 24, 2011 at 7:02 PM, Madovsky <infos@madovsky.org> wrote:
when I do this : originate /sofia/gateway/blabla/9999999999 &app(hahaha)
is the ap executed at early media or after answer ?
Thanks _______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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
On Thu, Feb 24, 2011 at 5:14 PM, Madovsky <infos@madovsky.org> wrote:
ha ok got it. so in case of txfax app should I use early_media ? in the case of the call is already answered can I run the app from uuid_broadcast or uuid_transfer if the app is in an extension ? I tried the last but it makes a fax timeout
What exactly did you do that resulted in a fax timeout? Please pastebin console log w/ the extension in question and whatever API commands you sent. -MC
ok Mike, after hundred tests I understand more now... but first I made a mistake by sending broadcast to aleg and not bleg. Thank you Franck ----- Original Message ----- From: Michael Collins To: FreeSWITCH Users Help Sent: Thursday, February 24, 2011 10:15 PM Subject: Re: [Freeswitch-users] exec app on originate On Thu, Feb 24, 2011 at 5:14 PM, Madovsky <infos@madovsky.org> wrote: ha ok got it. so in case of txfax app should I use early_media ? in the case of the call is already answered can I run the app from uuid_broadcast or uuid_transfer if the app is in an extension ? I tried the last but it makes a fax timeout What exactly did you do that resulted in a fax timeout? Please pastebin console log w/ the extension in question and whatever API commands you sent. -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
On 25 February 2011 01:04, Anthony Minessale <anthony.minessale@gmail.com>wrote:
early media if you want after answer do
originate {ignore_early_media=true}sofia/gateway/blabla/9999999999 &app(hahaha)
Is there any way to get the app launched even earlier? I need to be able to act upon a 4XX/5XX class response to the INVITE within the app.
On Thu, Feb 24, 2011 at 7:02 PM, Madovsky <infos@madovsky.org> wrote:
when I do this : originate /sofia/gateway/blabla/9999999999 &app(hahaha)
is the ap executed at early media or after answer ?
Thanks _______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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
On Fri, Mar 11, 2011 at 1:04 AM, Pete Kelly <pkelly@gmail.com> wrote:
On 25 February 2011 01:04, Anthony Minessale <anthony.minessale@gmail.com>wrote:
early media if you want after answer do
originate {ignore_early_media=true}sofia/gateway/blabla/9999999999 &app(hahaha)
Is there any way to get the app launched even earlier? I need to be able to act upon a 4XX/5XX class response to the INVITE within the app.
The originate API does not work that way. The &app(foo) won't be executed unless the originate is successful. If you get a 4xx/5xx then the originate will fail and &app(foo) won't ever get executed. There is no notion of "execute_on_fail" since a failed call means there is no channel/session to send through the dialplan or through an application. Depending on exactly what you're doing you probably need to be using "bgapi originate ..." and then checking the BACKGROUND_JOB event to see what happened. Alternatively you could be listening/watching for CDRs and then acting upon them. Alternatively using mod_xml_cdr is an easy way to receive notification of failed calls. The channel variable "proto_specific_hangup_cause" will have the "SIP:4xx" value, and you can react to it accordingly. -MC
Thank you as it happens I am using bgapi originate via an XMLRPC call anyway... I'll look into the BACKGROUND_JOB event and mod_xml_cdr On 11 March 2011 21:38, Michael Collins <msc@freeswitch.org> wrote:
On Fri, Mar 11, 2011 at 1:04 AM, Pete Kelly <pkelly@gmail.com> wrote:
On 25 February 2011 01:04, Anthony Minessale <anthony.minessale@gmail.com
wrote:
early media if you want after answer do
originate {ignore_early_media=true}sofia/gateway/blabla/9999999999 &app(hahaha)
Is there any way to get the app launched even earlier? I need to be able to act upon a 4XX/5XX class response to the INVITE within the app.
The originate API does not work that way. The &app(foo) won't be executed unless the originate is successful. If you get a 4xx/5xx then the originate will fail and &app(foo) won't ever get executed. There is no notion of "execute_on_fail" since a failed call means there is no channel/session to send through the dialplan or through an application.
Depending on exactly what you're doing you probably need to be using "bgapi originate ..." and then checking the BACKGROUND_JOB event to see what happened. Alternatively you could be listening/watching for CDRs and then acting upon them. Alternatively using mod_xml_cdr is an easy way to receive notification of failed calls. The channel variable "proto_specific_hangup_cause" will have the "SIP:4xx" value, and you can react to it accordingly.
-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
participants (4)
-
Anthony Minessale
-
Madovsky
-
Michael Collins
-
Pete Kelly