Hello, I am trying to troubleshoot this dialplan. I have a dial that receives the fax and executes a curl that invokes a script on a remote site (emails the fax, and does few more things). rxfax works fine and saves the tiff file accordingly, but every so often (about 50% of the time), curl call doesn't get executed. It doesn't even show up on the fs_cli log of it being executed, not to mention the apache side on the other end. Dialplan looks as follows actually values are obfuscated: <condition field="destination_number" expression="^(99999)$"> <action application="answer"/> <action application="playback" data="silence_stream://2000"/> <action application="rxfax" data="/usr/local/freeswitch/storage/fax/${uuid}.tiff"/> <action application="curl" data="http://abc.test post uuid=${uuid}"/> <action application="hangup"/> </condition> Thanks, Frank -- ----=======================---- Frank Park Telonium Communications, LLC frank@telonium.com http://www.telonium.com Follow Us on Twitter: @GetTelonium 404-566-8888 x1001 Office 404-939-4242 Cell ----=======================----
Perhaps the aleg hangs up after rxfax but before curl is executed? If the aleg hangs up the remaining extension actions won't run. Looks like you're only using it to indicate a fax has been received? Try using ESL or CDRs. Mod_xml_cdr can post a CDR to a server and will have various variables set that indicate the fax has been received. Steve on iPhone On 11 Feb 2011, at 22:26, Frank Park <frank@telonium.com> wrote:
Hello,
I am trying to troubleshoot this dialplan. I have a dial that receives the fax and executes a curl that invokes a script on a remote site (emails the fax, and does few more things). rxfax works fine and saves the tiff file accordingly, but every so often (about 50% of the time), curl call doesn't get executed. It doesn't even show up on the fs_cli log of it being executed, not to mention the apache side on the other end.
Dialplan looks as follows actually values are obfuscated: <condition field="destination_number" expression="^(99999)$"> <action application="answer"/> <action application="playback" data="silence_stream://2000"/> <action application="rxfax" data="/usr/local/freeswitch/storage/fax/${uuid}.tiff"/> <action application="curl" data="http://abc.test post uuid=${uuid}"/> <action application="hangup"/> </condition>
Thanks, Frank
--
----=======================---- Frank Park Telonium Communications, LLC frank@telonium.com http://www.telonium.com Follow Us on Twitter: @GetTelonium 404-566-8888 x1001 Office 404-939-4242 Cell ----=======================----
_______________________________________________ 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
How about an api_hangup_hook? On Sat, Feb 12, 2011 at 3:24 AM, Steven Ayre <steveayre@gmail.com> wrote:
Perhaps the aleg hangs up after rxfax but before curl is executed? If the aleg hangs up the remaining extension actions won't run.
Looks like you're only using it to indicate a fax has been received? Try using ESL or CDRs. Mod_xml_cdr can post a CDR to a server and will have various variables set that indicate the fax has been received.
Steve on iPhone
Didn't think about the other end hanging up so quickly. I do currently use xml_cdr for CDR, and prefer that I keep that separate. I will try the api_hangup_hook, that might work better. Thank you, sirs On Sat, Feb 12, 2011 at 5:50 PM, Michael Collins <msc@freeswitch.org> wrote:
How about an api_hangup_hook?
On Sat, Feb 12, 2011 at 3:24 AM, Steven Ayre <steveayre@gmail.com> wrote:
Perhaps the aleg hangs up after rxfax but before curl is executed? If the aleg hangs up the remaining extension actions won't run.
Looks like you're only using it to indicate a fax has been received? Try using ESL or CDRs. Mod_xml_cdr can post a CDR to a server and will have various variables set that indicate the fax has been received.
Steve on iPhone
_______________________________________________ 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
-- ----=======================---- Frank Park Telonium Communications, LLC frank@telonium.com http://www.telonium.com Follow Us on Twitter: @GetTelonium 404-566-8888 x1001 Office 404-939-4242 Cell ----=======================----
participants (3)
-
Frank Park
-
Michael Collins
-
Steven Ayre