Thanks guys for the answers, I tried but it doesn’t work, the calls start also for the extension that aren’t included. What do you think?
-- Executing [33333333@default:1] NoOp("SIP/9997-000001da", "9997") in new stack
-- Executing [33333333@default:2] GotoIf("SIP/9997-000001da", "0 | 0?y") in new stack
-- Executing [33333333@default:3] NoOp("SIP/9997-000001da", "“Allow”") in new stack
-- Executing [33333333@default:4] AGI("SIP/9997-000001da", "agi://127.0.0.1:4577/call_log") in new stack
-- Executing [33333333@default:1] NoOp("SIP/1000-000001d8", "1000") in new stack
-- Executing [33333333@default:2] GotoIf("SIP/1000-000001d8", "0 | 0?y") in new stack
-- Executing [33333333@default:3] NoOp("SIP/1000-000001d8", "“Allow”") in new stack
-- Executing [33333333@default:4] AGI("SIP/1000-000001d8", "agi://127.0.0.1:4577/call_log") in new stack
The log makes the problem stand out like a sore thumb! You have two logical expressions separated by a literal | character when you actually want a single logical expression, with the | in the middle of it.
The log should look like
GotoIf("SIP/9997-000001da", "1?y")
or
GotoIf("SIP/9997-000001da", "0?y")
depending on whether the expression is true or false.
-- Executing [333333333@default:1] NoOp("PJSIP/6002-00000009", "6002") in new stack
-- Executing [333333333@default:2] GotoIf("PJSIP/6002-00000009", "1?y:n") in new stack
-- Goto (default,333333333,3)
-- Executing [333333333@default:3] NoOp("PJSIP/6002-00000009", ".Allow.") in new stack
-- Executing [333333333@default:4] Dial("PJSIP/6002-00000009", "SIP/333333333") in new stack
Unmatch CALLERDID
-- Executing [333333333@default:1] NoOp("PJSIP/6002-00000008", "-------") in new stack
-- Executing [333333333@default:2] GotoIf("PJSIP/6002-00000008", "0?y:n") in new stack
-- Goto (default,333333333,5)
-- Executing [333333333@default:5] Playback("PJSIP/6002-00000008", "goodbye") in new stack
-- <PJSIP/6002-00000008> Playing 'goodbye.ulaw' (language 'en')