We are having problems with calling out from digital phone connected to MD11 switchboard that is connected to a vicidial server through E1-connection. When calling inbound the setup works great. But not when calling outbound. The error message:
Extension '0' in context 'trunkinbound' from '3741' does not exist. Rejecting call on channel 0/20, span 1
The 3741 is one of the digital phones connected to the switchboard. Same thing happens if i change the context to default, where are my dialing extensions for E1-connections. The 3741 phone uses prefix 851 to dial outbound and the '0' is the first number that goes to asterisk.
Does anybody know what could be the issue?
Edit:
When pressing '#' after the 851, asterisk gives this kind of error:
-- Accepting call from '3741' to '#' on channel 0/5, span 1
[Nov 30 15:18:02] VERBOSE[26885] logger.c: -- Executing [#@default:1] Playback("DAHDI/5-1", "invalid") in new stack
[Nov 30 15:18:02] DEBUG[26885] chan_dahdi.c: Requested indication -1 on channel DAHDI/5-1
[Nov 30 15:18:02] VERBOSE[26885] logger.c: -- <DAHDI/5-1> Playing 'invalid' (language 'en')
[Nov 30 15:18:06] VERBOSE[26885] logger.c: -- Executing [#@default:2] Hangup("DAHDI/5-1", "") in new stack
[Nov 30 15:18:06] VERBOSE[26885] logger.c: == Spawn extension (default, #, 2) exited non-zero on 'DAHDI/5-1'
[Nov 30 15:18:06] VERBOSE[26885] logger.c: -- Executing [h@default:1] DeadAGI("DAHDI/5-1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Nov 30 15:18:06] VERBOSE[26885] logger.c: -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Nov 30 15:18:06] DEBUG[26885] chan_dahdi.c: Set option AUDIO MODE, value: ON(1) on DAHDI/5-1
[Nov 30 15:18:06] DEBUG[26885] chan_dahdi.c: Not yet hungup... Calling hangup once with icause, and clearing call
[Nov 30 15:18:06] DEBUG[26885] chan_dahdi.c: Set option AUDIO MODE, value: OFF(0) on DAHDI/5-1
[Nov 30 15:18:06] VERBOSE[26885] logger.c: -- Hungup 'DAHDI/5-1'
Don't know if this helps...