[Asterisk-Dev] Online patch to add INVALID_EXTEN variable

Eric Wieling eric at fnords.org
Tue Jun 24 12:18:23 MST 2003

Attached is a one line 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: 556 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20030624/05816195/invalid-exten.bin

More information about the asterisk-dev mailing list