[asterisk-users] GotoIf CALLERID(num)
Joseph
syscon780 at gmail.com
Thu Dec 30 00:21:59 UTC 2010
I've tried all posibilities with quotes without qoutes :-/
Here is the line output:
-- Goto (office-open,s,1)
-- Executing [s at office-open:1] Wait("SIP/pstn-5665-0000006e", "1") in new stack
-- Executing [s at office-open:2] Answer("SIP/pstn-5665-0000006e", "") in new stack
-- Executing [s at office-open:3] Verbose("SIP/pstn-5665-0000006e", "3|CALLERID(num) is :7804715665:") in new stack
-- CALLERID(num) is :7804715665:
-- Executing [s at office-open:4] GotoIf("SIP/pstn-5665-0000006e", "0?5:7") in new stack
-- Goto (office-open,s,7)
-- Executing [s at office-open:7] SetMusicOnHold("SIP/pstn-5665-0000006e", "default") in new stack
-- Executing [s at office-open:8] BackGround("SIP/pstn-5665-0000006e", "sys_concept_welcome|tr") in new stack
-- <SIP/pstn-5665-0000006e> Playing 'sys_concept_welcome' (language 'en')
I see my problem, caller ID is coming in as 7804715665 and I was blocking 4715665
I need to enter area code first, or can I use "*" as first digits?
--
Joseph
On 12/29/10 18:56, Doug Lytle wrote:
>Joseph wrote:
>> ; for Caller ID is 471-5665, always signal congestion:
>> exten => s,3,GotoIf($["${CALLERID(num)}" = "4715665"]?4:6)
>
>Yours on the top, mine on the bottom.
>
>GotoIf($["${CALLERID(num)}" = "4715665"]?4:6)
>GotoIf($["${CALLERID(num)}" = "4715665" ]?4:6)
>
>If that wasn't it, then lets see your console output
>
>
>Doug
>
More information about the asterisk-users
mailing list