[Asterisk-Dev] UPDATED: Patch to add INVALID_EXTEN variable

Eric Wieling eric at fnords.org
Tue Jun 24 14:27:23 MST 2003

Apparently there are two places that need to be modified, not just one. 
Updated patch is attached.

Attached is a small patch to pbx.c to set the variable INVALID_EXTEN
when exten => i is called, so you can know what the originally dialed
invalid extension was.  You can then do something like this:

exten => i,1,Playback(extension)
exten => i,2,SayDigits(${INVALID_EXTEN})
exten => i,3,Playback(isnotvalid)
exten => i,4,Hangup

BTEL Consulting
850-484-4535 x2111 (Office)
504-595-3916 x2111 (Experimental)
877-552-0838 (Backup Phone)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invalid-exten.diff
Type: text/x-patch
Size: 958 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20030624/0aff661e/invalid-exten.bin

More information about the asterisk-dev mailing list