[Asterisk-Users] Help Debugging my code?
Scheda
scheda at gmail.com
Tue Mar 22 19:37:42 MST 2005
Hey, I'm currently using the GotoIf application to set it so if
certain caller ID's call my number, it will transfer it to my cell
phone, here is the code I have so far. I get an error message that
states "call rejected by 198.22.67.70: No such context/extention."
when I call the number from my house number. Anyway, here is the code
I have.
[inbound]
exten => 8667393960,1,Answer()
exten => 8667393960,2,GotoIf($[${CALLERIDNUM} =
${house}]?specialized,8667393960,1:2)
exten => 8667393960,3,GotoIf($[${CALLERIDNUM} =
${kendra}]?specialized,8667393960,1:2)
exten => 8667393960,4,GotoIf($[${CALLERIDNUM} =
${rob}]?specialized,8667393960,1:2)
exten => 8667393960,5,GotoIf($[${CALLERIDNUM} =
${jen}]?specialized,8667393960,1:2)
exten => 8667393960,6,GotoIf($[${CALLERIDNUM} =
${mom}]?specialized,8667393960,1:2)
exten => 8667393960,7,GotoIf($[${CALLERIDNUM} =
${dad}]?specialized,8667393960,1:2)
exten => 8667393960,8,Wait(3)
exten => 8667393960,9,Background(/root/asterisk-1.0.6/sounds/ast-intro)
exten => 8667393960,10,Wait(12)
exten => 8667393960,11,Hangup()
[specialized]
[specialized]
exten => 8667393960,1,SetCallerID(${cid})
exten => 8667393960,2,Wait(1)
exten => 8667393960,3,SetMusicOnHold(danecook)
exten => 8667393960,4,Dial(${TRUNK}/${scheda},35,t)
exten => 8667393960,5,Hangup()
I have all the global variables set up correctly, so I'm not sure what
it is exactly
More information about the asterisk-users
mailing list