On 07/26/2013 09:26 PM, Anthony Minessale wrote:
The zombie exec mode executes the rest of the dp even when you hangup.
Thus, I can say that "zombie exec stops once all the steps of the extension definition have completed"?
Answer answers, otherwise its just early media. If you don't answer soon the call will end.
This is not what I see with freetdm - I have this extension to deal with incoming analog phone calls <extension name="fxo3"> <!-- <condition field="destination_number" expression="^.+$"> --> <condition field="chan_name" expression="FreeTDM/2:1/" > <action application="tone_detect" data="busy-pan 350,440 r 2 hangup> <action application="set" data="domain_name=$${domain}"/> <action application="log" data="chan_name ${chan_name}"/> <action application="log" data="freetdm_span_name ${freetdm_span_name}"/> <action application="log" data="freetdm_span_number ${freetdm_span_number}"/> <action application="log" data="freetdm_chan_number ${freetdm_chan_number}"/> <action application="transfer" data="my_voicemail XML features" /> </condition> </extension> Just sending to this for now.. <extension name="my_voicemail"> <condition field="destination_number" expression="^.*$"> <!-- <action application="set_zombie_exec"/> --> <action application="playback" data="mysounds/answer.wav"/> <action application="set" data="file=/home/freeswitch/voicemail/${strepoch()}.wav"/> <action application="record" data="${file} 300 100 5"/> <action application="sleep" data="50"/> <action application="system" data='echo "See attached Voicemail message" | mutt -a ${file} -s "Voice-mail Message" -- freeswitch@xtronics.network' /> </condition> </extension> It works - but is never answered. ( Could be I'm confusing myself by starting off focused on a a freetdm line that is an exception to how SIP calls normally work? ) There is a problem with what I have - I rely on the tone detect to hangup and stop the recording, zombie would let me finish doing things, but it works as is - possibly because I have never answered? I would have to have a different voicemail for SIP calls. The freetdm examples in the wiki don't have the answer application in them either.
On Jul 26, 2013 9:23 PM, "Karl Schmidt" <karl@xtronics.com <mailto:karl@xtronics.com>> wrote:
On 07/25/2013 04:13 PM, Anthony Minessale wrote: > If you hangup in the middle of recording it won't execute the rest of your dialplan unless you > enable zombie exec mode.
Hmm - seems to work different depending if it is a sip call or freedtm.. have to dig a little deeper..
The zombie docs don't tell 'how to kill a zombie' ?? ( Perhaps a silver stake? Wait that is for vampires.. )
I'm also puzzling over the answer command - I can send a freetdm call to voicemail with out answering it? What exactly does the answer command do.. I apparently can hangup a call I haven't answered if it comes from freetdm??
-------------------------------------------------------------------------------- Karl Schmidt EMail Karl@xtronics.com <mailto:Karl@xtronics.com> Transtronics, Inc. WEB http://secure.transtronics.com 3209 West 9th Street Ph (785) 841-3089 <tel:%28785%29%20841-3089> Lawrence, KS 66049 FAX (785) 841-0434 <tel:%28785%29%20841-0434>
It is high time that we start teaching ALL of the four 'R's: Reading, Riting, Rithmatic, AND Reason. -kps --------------------------------------------------------------------------------
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
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
-------------------------------------------------------------------------------- Karl Schmidt EMail Karl@xtronics.com Transtronics, Inc. WEB http://secure.transtronics.com 3209 West 9th Street Ph (785) 841-3089 Lawrence, KS 66049 FAX (785) 841-0434 The only way that has ever been discovered to have a lot of people cooperate together voluntarily is through the free market. And that’s why it’s so essential to preserving individual freedom. - Milton Freidman --------------------------------------------------------------------------------