hello, I use extensions_custom.conf to make my own context:
[from-pstn-custom]
exten => 1234, 1, NoOp("Incomming from O2 SIP Trunk from ${CALLERID(num)} to ${EXTEN}")
exten => 1234, 2, Set(CALLERID(num)=anonymous)
exten => 1234, 3, NoOp(Cislo je: ${CALLERID(all)})
exten => 1234, 4, GotoIf($["${CALLERID(num)}"= "anonymous"]?MUJSKOK)
exten => 1234, n(MUJSKOK), Goto(from-trunk,${EXTEN},1)
In PJSIP Trunk settings I´m pointing to this custom context at line “Context:”
but when i make a call this happen:
Executing [1234@from-pstn-custom:1] NoOp("PJSIP/VoiceBlue-00000004", ""Incomming from O2 SIP Trunk from to 1234"") in new stack
-- Executing [1234@from-pstn-custom:2] Set("PJSIP/VoiceBlue-00000004", "CALLERID(num)=anonymous") in new stack
-- Executing [1234@from-pstn-custom:3] NoOp("PJSIP/VoiceBlue-00000004", "Cislo je: "" <anonymous>") in new stack
-- Executing [1234@from-pstn-custom:4] GotoIf("PJSIP/VoiceBlue-00000004", "1?MUJSKOK") in new stack
-- Goto (from-pstn-custom,1234,5)
-- Executing [1234@from-pstn-custom:5] Goto("PJSIP/VoiceBlue-00000004", "from-trunk,1234,1") in new stack
-- Goto (from-trunk,1234,1)
-- Executing [1234@from-trunk:1] NoOp("PJSIP/VoiceBlue-00000004", ""Incomming from O2 SIP Trunk from anonymous to 1234"") in new stack
-- Executing [1234@from-trunk:2] Set("PJSIP/VoiceBlue-00000004", "CALLERID(num)=anonymous") in new stack
-- Executing [1234@from-trunk:3] NoOp("PJSIP/VoiceBlue-00000004", "Cislo je: "" <anonymous>") in new stack
-- Executing [1234@from-trunk:4] GotoIf("PJSIP/VoiceBlue-00000004", "1?MUJSKOK") in new stack
-- Goto (from-trunk,1234,5)
-- Executing [1234@from-trunk:5] Goto("PJSIP/VoiceBlue-00000004", "from-trunk,1234,1") in new stack
-- Goto (from-trunk,1234,1)
-- Executing [1234@from-trunk:1] NoOp("PJSIP/VoiceBlue-00000004", ""Incomming from O2 SIP Trunk from anonymous to 1234"") in new stack
-- Executing [1234@from-trunk:2] Set("PJSIP/VoiceBlue-00000004", "CALLERID(num)=anonymous") in new stack
-- Executing [1234@from-trunk:3] NoOp("PJSIP/VoiceBlue-00000004", "Cislo je: "" <anonymous>") in new stack
-- Executing [1234@from-trunk:4] GotoIf("PJSIP/VoiceBlue-00000004", "1?MUJSKOK") in new stack
-- Goto (from-trunk,1234,5)
-- Executing [1234@from-trunk:5] Goto("PJSIP/VoiceBlue-00000004", "from-trunk,1234,1") in new stack
-- Goto (from-trunk,1234,1)
And it is going same loop again and again…
Why It look like it processing trom-trunk general context but it is actualy my frompstn-custom context?