[Asterisk-Users] *69
Jeremy Jones
jjones at westcomllc.com
Tue Jun 22 10:51:41 MST 2004
This:
> ; Return last call
> exten => *69,1,DBget(temp=LastCIDNum/${CALLERIDNUM}) ; read db value
> LastCIDNum for this CALLERIDNUM (i.e. the extension making the call)
> exten => *69,2,GotoIf($[${temp:0:3} = 208]?3:4)
> ; if it's area
> code 208 (my local area), go to priority 3, otherwise priority 4
> exten => *69,3,Macro(dialout,${temp:3})
> ; call my
> dialout macro, stripping the 208
> exten => *69,4,Macro(dialout,${temp}) ; call my
> dialout macro, using full string
> exten => *69,103,Congestion ; no
> key? congestion
> exten => *69,104,Congestion ; no
> key? congestion
Should be this:
exten => *69,1,DBget(temp=LastCIDNum/${CALLERIDNUM})
exten => *69,2,GotoIf($[${temp:0:3} = 208]?3:4)
exten => *69,3,Macro(dialout,${temp:3})
exten => *69,4,Macro(dialout,${temp})
exten => *69,102,Congestion
jeremy
More information about the asterisk-users
mailing list