What makes you decide wehter or not you want to keep the recorded file? Is the fact that the user hangup the call before the 30 seconds or the fact that he really talked?<br><br>As far as I know current version of asterisk doesn't allow you to detect who end up the call.
<br><br>Of course you may use some tricks for these, I mean you may set the IVR to record a bit more than 30 seconds, then when the call hangs up when you reach the "h" extension in you diaplan you may check the answered time of the call.
<br><br>If your call has an answered time duration lower than 30 seconds, for sure was the caller who hangup the call.<br><br>Hope it helps.<br><br><br><div class="gmail_quote">On Dec 18, 2007 8:04 PM, Jamshed Zaidi <<a href="mailto:jamshed.jimmy@gmail.com">
jamshed.jimmy@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">yes, the senario is this when user gets a call IVR starts playing and
<br>after hearing beep user starts recording message for 30 seconds(call<br>duration is for 30 seconds). What i want is During 30 seconds if user<br>does hangup his/her call then message should be recorded<br>otherwise(after timeout) message is discarded. Is there any thing that
<br>will help me...???<br><br>currently I am doing the same thing on pressing 1 with php agi script<br>and its working fine.<br><div><div></div><div class="Wj3C7c"><br>On 12/19/07, Marco Mouta <<a href="mailto:marco.mouta@gmail.com">
marco.mouta@gmail.com</a>> wrote:<br>> What do you mean with record a call on hangup? If the calling party ends the<br>> call you want to keep recorded file?<br>><br>> On Dec 18, 2007 6:27 PM, Jamshed Zaidi <
<a href="mailto:jamshed.jimmy@gmail.com">jamshed.jimmy@gmail.com</a>> wrote:<br>><br>> > Hello everyone out there, I am having a problem in call recording with php<br>> > agi library. I have already recorded voice after playing an IVR, to accept
<br>> > the recording user need to press one. but I need to record a call on<br>> hangup,<br>> > Is there any way to do it. Currently i am using record_file() function in<br>> > php. Is there any way to record voice by using record_file() function with
<br>> > hangup. can anyone helps me in resolving this problem ???<br>> ><br>> > --<br>> > Syed Jamshed Zaidi (Jamy-Virus)<br>> > Linux Admin/Programmer @ Naseeb Networks<br>> > 0321-4087492
<br>> > "Shoot for the moon. Even if you miss, you'll land among the stars"<br>> > _______________________________________________<br>> > --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">
http://www.api-digital.com--</a><br>> ><br>> > asterisk-users mailing list<br>> > To UNSUBSCRIBE or update options visit:<br>> > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>> ><br>><br>><br>><br>> --<br>> Esta mensagem (incluindo quaisquer anexos) pode conter informação<br>> confidencial para uso exclusivo do destinatário. Se não for o destinatário
<br>> pretendido, não deverá usar, distribuir ou copiar este e-mail. Se recebeu<br>> esta mensagem por engano, por favor informe o emissor e elimine-a<br>> imediatamente. Obrigado.<br>><br>> This e-mail message is intended only for individual(s) to whom it is
<br>> addressed and may contain information that is privileged, confidential,<br>> proprietary, or otherwise exempt from disclosure under applicable law. If<br>> you believe you have received this message in error, please advise the
<br>> sender by return e-mail and delete it from your mailbox. Thank you.<br>><br><br><br>--<br>Syed Jamshed Zaidi (Jamy-Virus)<br>Linux Admin/Programmer @ Naseeb Networks<br>0321-4087492<br>"Shoot for the moon. Even if you miss, you'll land among the stars"
<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></div></blockquote></div>
<br><br clear="all"><br>-- <br>Esta mensagem (incluindo quaisquer anexos) pode conter informação confidencial para uso exclusivo do destinatário. Se não for o destinatário pretendido, não deverá usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado.
<br><br>This e-mail message is intended only for individual(s) to whom it is addressed and may contain information that is privileged, confidential, proprietary, or otherwise exempt from disclosure under applicable law. If you believe you have received this message in error, please advise the sender by return e-mail and delete it from your mailbox. Thank you.