So whenever I make a call through my trunk the call rings correctly but the moment someone picks up the phone asterisk hangs up the call.
I am guessing from the logs there is something wrong with the codec selection:
[2016-12-12 17:40:46] WARNING[16075][C-00000023]: channel.c:5540 set_format: Unable to find a codec translation path: (speex) -> (ulaw)
[2016-12-12 17:40:46] WARNING[16075][C-00000023]: channel.c:5540 set_format: Unable to find a codec translation path: (ulaw) -> (speex)
[2016-12-12 17:40:46] WARNING[16075][C-00000023]: dsp.c:1512 ast_dsp_process: Inband DTMF is not supported on codec speex. Use RFC2833
[2016-12-12 17:40:46] WARNING[16075][C-00000023]: channel.c:5540 set_format: Unable to find a codec translation path: (speex) -> (ulaw|alaw|gsm)
[2016-12-12 17:40:46] WARNING[16075][C-00000023]: app_dial.c:1619 wait_for_answer: Unable to write frametype: 2
== Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on 'PJSIP/214-00000038' in macro 'dialout-trunk'
== Spawn extension (from-internal, 36301405, 6) exited non-zero on 'PJSIP/214-00000038'
-- Executing [h@from-internal:1] Macro("PJSIP/214-00000038", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/214-00000038", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/214-00000038", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("PJSIP/214-00000038", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/214-00000038' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/214-00000038'
Any idea how to fix this? I have this working properly in elastix 2.4 don't know why its not working with FreePBX.
@JaredBusch @scottalanmiller