[asterisk-users] Advanced Dial Plan

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Oct 25 11:35:50 CDT 2007


On Thursday 25 October 2007 10:36:02 Brett Crapser wrote:
> [outbound]
> exten=> _X.,1,GotoIf([${CALLERID(num)} == "3000"]?path0|1)

exten=> _X.,1,GotoIf([${CALLERID(num)} = "3000"]?path0,${EXTEN},1)

> exten=> _X.,2,GotoIf([${CALLERID(num)} == "3001"]?path1|1)

exten=> _X.,2,GotoIf([${CALLERID(num)} = "3001"]?path1,${EXTEN},1)

> exten=> _X.,3,Playback(tt-monkeys)
> exten=> _X.,4,Hangup

You do not need double '=' and you were missing the ${EXTEN}.  Also, '|'
separating arguments is now deprecated.

-- 
Tilghman



More information about the asterisk-users mailing list