Hello, I'm new to the list so I hope I'm asking the question in the right place. In our extensions.conf, we call an AGI script using the AGI command. e.g. exten => 11,1,Answer exten => 11,2,Wait(0.5) exten => 11,3,Playback(welcome1) exten => 11,4,agi(agi://192.168.1.88/hello.agi?src=test|${CALLERID}) If for some reason, the AGI script fails to run (e.g. our AGI prog isn't running), can we detect it and direct the call to a pre-recorded message? When I look at the documentation, it says agi returns -1 if there is a problem, which (as far as I understand) means the call is hung up. I don't know how to detect this condition and handle the call appropriately. Thanks for any help, Alex
Alex Hutton wrote:> Hello, > > I'm new to the list so I hope I'm asking the question in the right > place. In our extensions.conf, we call an AGI script using the AGI > command. > > e.g. > > exten => 11,1,Answer > exten => 11,2,Wait(0.5) > exten => 11,3,Playback(welcome1) > exten => 11,4,agi(agi://192.168.1.88/hello.agi?src=test|${CALLERID}) > > > > If for some reason, the AGI script fails to run (e.g. our AGI prog isn't > running), can we detect it and direct the call to a pre-recorded message?What I personally would do is first set a variable before you run the agi (i.e. completionstatus to "beforerun") then run the AGI. Once inside the AGI, set the variable for completion status. I.E. you could have ran well, failed with x etc etc. Then on the next priority, you can check this variable and via gotoif for the various statuses (including "beforerun" which would mean that the AGI didn't run at all). While this doesn't exactly answer your question, it is the best way to use multiple statuses. Make sense? -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://freevoip.gedameurope.com (Free Asterisk Voip Community) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
Anyone here using AMP and having problems with users chaning their voicemail passwords? They stick until I go into AMP and make changes then reload. The AMP settings contain the old password and are overwriting the new one saved by the user. What am I doing wrong or what is the correct way to do it? - James
James Armstrong wrote:> Anyone here using AMP and having problems with users chaning their > voicemail passwords? They stick until I go into AMP and make changes > then reload. The AMP settings contain the old password and are > overwriting the new one saved by the user. What am I doing wrong or what > is the correct way to do it?Please post to the amportal-users mailing list: http://lists.sourceforge.net/lists/listinfo/amportal-users and/or Help forum: http://sourceforge.net/forum/forum.php?forum_id=414452 Please include in your post info such as version of AMP, where the users are trying to change their passwords (i.e. phone (0 -> 5) or ARI), etc. Regards, -- Jason Becker Director & CEO Coalescent Systems Inc. Enabling Open Source Telephony 403.244.8089 www.coalescentsystems.ca