[Freeswitch-users] api_hangup_hook question
Meftah Tayeb
tayeb.meftah at gmail.com
Tue Dec 7 23:31:48 MSK 2010
please can you try this:
1. run the info app from inside your perl script
and see what's going on
otherwise:
<action application="set"
data="api_hangup_hook=system(/usr/local/freeswitch/scripts/perl/faxStatus.pl)"/>
if the info app run so your perl script is likely called
le 07/12/2010 19:27, Madovsky a écrit :
> I have this in dialplan/default
> <extension name="9999999999">
> <condition field="destination_number" expression="^(9999999999)$">
> <action application="set" data="domain_name=$${domain}"/>
> <action application="export" data="dialed_extension=$1"/>
> <action application="set" data="hangup_after_bridge=true"/>
> <action application="set"
> data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/>
> <action application="ring_ready"/>
> <action application="tone_detect" data="fax 1100 r +5000 transfer
> 'receivefax XML features' 1" />
> <action application="export" data="originate_timeout=15"/>
> <action application="bridge"
> data="{absolute_codec_string='speex at 16000k,G729,GSM,G726,PCMU,PCMA',sip_from_uri=${sip_from_user}@${sip_from_host},origination_caller_id_name=${caller_id_name},origination_caller_id_number=${caller_id_number}}user/${dialed_extension}"/
> <mailto:%7Babsolute_codec_string=%27speex at 16000k,G729,GSM,G726,PCMU,PCMA%27,sip_from_uri=$%7Bsip_from_user%7D@$%7Bsip_from_host%7D,origination_caller_id_name=$%7Bcaller_id_name%7D,origination_caller_id_number=$%7Bcaller_id_number%7D%7Duser/$%7Bdialed_extension%7D%22/>>
> <action application="sleep" data="3000"/>
> <action application="answer"/>
> <action application="voicemail" data="default ${domain_name}
> ${dialed_extension}"/>
> </condition>
> </extension>
> and this in dialplan/features
> <extension name="receivefax">
> <condition field="destination_number" expression="^receivefax$">
> <action application="set" data="session_in_hangup_hook=true"/>
> <action application="set"
> data="fax_file=/usr/local/freeswitch/storage/fax/${caller_id_number}-${uuid}.rxfax.tiff"/>
> <action application="set" data="fax_mode=recv"/>
> <action application="set" data="api_hangup_hook=perl
> /usr/local/freeswitch/scripts/perl/faxStatus.pl"/>
> <action application="answer" />
> <action application="playback" data="silence_stream://2000"/>
> <action application="set" data="fax_enable_t38_request=true"/>
> <action application="set" data="fax_enable_t38=true"/>
> <action application="rxfax"
> data="/usr/local/freeswitch/storage/fax/${caller_id_number}-${uuid}.rxfax.tiff"/>
> <action application="hangup"/>
> </condition>
> </extension>
> the fax is received well, but the perl script is not executed.
> Am I missing anything ?
> Thanks
> Franck
>
>
> _______________________________________________
> 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
>
--
Meftah Tayeb
inum: +883510001288000
Phone: +13602276297
Fax: +12538020313
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101207/3289be76/attachment.html
More information about the FreeSWITCH-users
mailing list