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

usedcanon usedcanon at yahoo.co.uk
Sun Jul 4 14:17:09 MST 2004


I am happy using AGI, however the dialplan does not seem to work. What
should I expect the priority to jump to when the caller hangsup during
voicemail greeting playback.

Thanks

Umar.

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Chad Scott
Sent: 04 July 2004 18:42
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] How to use return value in extensions.conf


This looks like a job for AGI...

I'd do something like

exten => _0207XXXXXXX,1,Dial(SIP/$EXTEN},15)
exten => _0207XXXXXXX,2AGI('missed-call-email.agi')
exten => _0207XXXXXXX,3,Voicemail(u${EXTEN:4})
exten => _0207XXXXXXX,4,Hangup
exten => _0207XXXXXXX,102,AGI('missed-call-email.agi')

...etc...

On Jul 4, 2004, at 5:03 AM, usedcanon wrote:

> 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.
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at 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 at 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




More information about the asterisk-users mailing list