[Asterisk-Users] How to use return value in extensions.conf

usedcanon usedcanon at yahoo.co.uk
Sun Jul 4 05:03:06 MST 2004


Hi,

I am trying to implement a dialplan in which the user is notified of a
missed call, if no voicemail is left.

Basically what I would like to achieve is something like ...


exten => _0207XXXXXXX,1,DIAL(SIP/${EXTEN},15)
exten => _0207XXXXXXX,2,HasNewVoicemail(${EXTEN:4}@default:INBOX|msgcount)
exten => _0207XXXXXXX,3,Voicemail(u${EXTEN:4})
exten => _0207XXXXXXX,4,HasNewVoicemail(${EXTEN:4}@default:INBOX|msgcount2)
exten => _0207XXXXXXX,5,GotoIf($[${msgcount2}>${msgcount1}]?7:6)
exten => _0207XXXXXXX,6,Send an email or something. !
exten => _0207XXXXXXX,7,Hangup

However when the user hangsup the rest of the dial plan seems to be skipped.

Any ideas ? suggestions.

Umar.




More information about the asterisk-users mailing list