You might try adding:

exten => h,1,Hangup

Chris Blake wrote:

Greetings *`s,

I have set up a call which constantly loops a pre-recorded message
waiting for the user to press a digit on their phone. At this point the
call is sent elsewhere in the dialplan.

But if the called party doesn`t press any buttons and hangs up, the
message carries on playing...the same goes for if the called party hangs
up without pressing any buttons.
The same happens if the call goes thru to the called party`s
voicemail..it plays the message but doesn`t stop.

Here is the section in my dialplan :

[realyst1]
exten => s,1,DigitTimeout,5             ; Set Digit Timeout to 5 seconds
exten => s,2,ResponseTimeout,10         ; Set Response Timeout to 10
seconds
exten => s,3,Answer
exten => s,4,Wait(1)
exten => s,5,Background(realyst/updaterequest)         ; "play outbound
msg"
exten => s,6,Background(realyst/acknowledge)   ; "Press 1 to replay or 2
to acknowledge receiving this message"
exten => s,7,Goto(s,5)
exten => 1,1,Goto(s,5)   ; replay message
exten => 2,1,Goto(msgack,s,1) ; acknowledge message
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup

Any links/ideas/tips welcome...

Regards


--
Chris Blake Cell: 082 775 1492
Work: +27 11 782 0840
Fax : +27 11 782 0841
Mail: [EMAIL PROTECTED]


Remember that as a teenager you are in the last stage of your life when
you will be happy to hear that the phone is for you. -- Fran Lebowitz,
"Social Studies"


_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to