Dialplan using CallerID


#1

I’ve been using asterisk ver 1.0.3 and built another using version CVS-v1-0-06/25/05-03:29:20. Previously I have been able to include the callerid in the extension for decision making. Example:

extensions.conf

exten => s/8665153451,1,Wait,1
exten => s,1,Wait,25

This does not appear to work in the CVS version.

extensions.conf

exten => s/3162842775,1,Wait,3
exten => s,1,Wait,30 ; Wait a second, just for fun
exten => s,2,Wait,30 ; Wait a second, just for fun
exten => s,3,Answer ; Answer the line
exten => s,4,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,5,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,6,BackGround(demo-congrats) ; Play a congratulatory message
exten => s,7,BackGround(demo-instruct) ; Play some instructions
;

[ Context ‘2562’ created by ‘pbx_config’ ]
’#’ => 1. Playback(demo-thanks) [pbx_config]
2. Hangup() [pbx_config]
‘i’ => 1. Playback(invalid) [pbx_config]
‘s’ => 1. Wait(30) [pbx_config]
2. Wait(30) [pbx_config]
3. Answer() [pbx_config]
4. DigitTimeout(5) [pbx_config]
5. ResponseTimeout(10) [pbx_config]
6. BackGround(demo-congrats) [pbx_config]
7. BackGround(demo-instruct) [pbx_config]
‘s/8665153451’ => 1. Wait(3) [pbx_config]
‘t’ => 1. Goto(#|1) [pbx_config]

The callerid is not shown in the dial plan for version 1.0.3. Has the handling of callerid changed or am I not doing something right?


#2

Caller ID is broken in 1.0.8. You can either roll back to 1.0.7 or use (and help test) the patch posted by a Digium employee to asterisk-users.