Seems strange, that would execute exactly the same code within FS. I can't se anything abvious that you're doing wrong. Try doing it exactly the same way, skip the uuid creation, and use api instead of bgapi, and see if anything is doing a difference. fs_cli will send using ESL as well, so there must be something else to it. /Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för James [jlyons@quikvoip.net] Skickat: den 23 juli 2012 00:10 Till: freeswitch-users@lists.freeswitch.org Ämne: Re: [Freeswitch-users] Originate with python ESL Yes, this same gw file has been functioning properly with a bash call to fs_cli -x "originate sofia/gateway/mygateway/XXXXXXXXXX &txfax(/tmp/fax.5661.tiff)" I'm now trying to do this with python and ESL to be able to monitor the result of the fax. -James On Sun, 22 Jul 2012 21:49:43 +0000 Peter Olsson <peter.olsson@visionutveckling.se> wrote:
That should be enough. Are you sure the gateway is properly configured?
/Peter
22 jul 2012 kl. 23:37 skrev "James" <jlyons@quikvoip.net>:
I'm trying to do an originate command via python script and ESL. FS attempts to make this call but is rejected by my gateway with a 407. FS does not follow-up with an INVITE with the credentials. Is there a variable I need to set in order to do this?
Here's the originate I'm using:
e = con.api("create_uuid").getBody() res = con.bgapi("originate", "{origination_uuid=" + e + ",fax_verbose=true,ignore_early_media=true}sofia/gateway/myprovider/XXXXXXXXXX &txfax(/tmp/fax.5661.tiff)")
-- James Lyons QuikVoIP, LLC. p: +1 (786) 369-5308 e: jlyons@quikvoip.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 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 !DSPAM:500c7a9832768724918108!