Carl Youngblood
2006-Jun-15 17:48 UTC
[Asterisk-Users] Problem trying to SayDigits when an invalid extension is dialed
I am trying to modify a fairly complex digital receptionist dialplan that has a number of included contexts. Right now the system is not announcing the extension that the caller attempted to dial, so callers get confused when they think they dialed a valid extension but asterisk didn't pick everything up. I would like to have the system announce the entension that they attempted to dial in addition to the error message. However, at the part where the error announcement is made, the extension is set to "i", so I no longer know what digits the caller dialed. I tried inserting a wildcard extension before this point that saves the dialed digits in a variable, but since my wildcard extension matches everything, it no longer things that an invalid extension was dialed, so it doesn't go to the "i" extension. Is there a way I can erase the fact that an extension was matched? Or is there some other way of accomplishing what I am trying to do? Thanks, Carl
undrhil.1528785@bloglines.com
2006-Jun-15 18:41 UTC
[Asterisk-Users] Problem trying to SayDigits when an invalid extension is dialed
Does SayDigits(${EXTEN}) not work in this case? I would imagine that it would still maintain the dialled extension in that variable, would it not? Undrhil --- Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com wrote: I am trying to modify a fairly complex digital receptionist dialplan> that has a number of included contexts. Right now the system is not >announcing the extension that the caller attempted to dial, so callers>get confused when they think they dialed a valid extension but> asteriskdidn't pick everything up. I would like to have the system> announce theentension that they attempted to dial in addition to the> error message.However, at the part where the error announcement is> made, the extensionis set to "i", so I no longer know what digits the> caller dialed. I triedinserting a wildcard extension before this> point that saves the dialeddigits in a variable, but since my> wildcard extension matches everything,it no longer things that an> invalid extension was dialed, so it doesn'tgo to the "i" extension.> Is there a way I can erase the fact that an extensionwas matched? Or> is there some other way of accomplishing what I am tryingto do?> > Thanks, > Carl > _______________________________________________> --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Usersmailing list> To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users>
Lacy Moore - Aspendora
2006-Jun-16 13:58 UTC
[Asterisk-Users] Problem trying to SayDigits when an invalid extension is dialed
http://www.voip-info.org/wiki/index.php?page=Asterisk+Variables Use ${INVALID_EXTEN} On 6/15/06, Carl Youngblood <carl@youngbloods.org> wrote:> > I am trying to modify a fairly complex digital receptionist dialplan > that has a number of included contexts. Right now the system is not > announcing the extension that the caller attempted to dial, so callers > get confused when they think they dialed a valid extension but > asterisk didn't pick everything up. I would like to have the system > announce the entension that they attempted to dial in addition to the > error message. However, at the part where the error announcement is > made, the extension is set to "i", so I no longer know what digits the > caller dialed. I tried inserting a wildcard extension before this > point that saves the dialed digits in a variable, but since my > wildcard extension matches everything, it no longer things that an > invalid extension was dialed, so it doesn't go to the "i" extension. > Is there a way I can erase the fact that an extension was matched? Or > is there some other way of accomplishing what I am trying to do? > > Thanks, > Carl > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Lacy Moore Aspendora, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060616/b3c22556/attachment.htm
Carl Youngblood
2006-Jun-17 21:31 UTC
[Asterisk-Users] Problem trying to SayDigits when an invalid
Thanks Doug, but this would not have helped me. Fortunately the ${INVALID_EXTEN} response was exactly what I needed, but your suggestion would not have worked, because if an extension is found, it no longer goes to exten => i. So the variable setting approach ends up altering the flow of the dialplan. On 6/16/06, Doug Lytle <support@drdos.info> wrote:> Carl Youngblood wrote: > > No, ${EXTEN} contains "i" at that point in the dialplan. > > exten => 123,1,Set(_TMPEXTEN=${EXTEN}) > exten => i,1,SayDigit({$TEMPEXTEN}) > > You need to read the document in the Asterisk source directory on the > subject of variable inheritance. > > asterisk/doc/README.variables. > > Doug > > -- > > Ben Franklin quote: > > "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >