Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers)
-
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.
-
Why is Speex appearing in your voice path? Set all devices to g711 u-Law.
-
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
Why is Speex appearing in your voice path? Set all devices to g711 u-Law.
I just copied the trunk config from my Elastix VM, it was working there so I thought i would work in FreePBX distro.
-
@Romo said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
Why is Speex appearing in your voice path? Set all devices to g711 u-Law.
I just copied the trunk config from my Elastix VM, it was working there so I thought i would work in FreePBX distro.
I think that you have some Speex somewhere else. Maybe there is a default that allows it, but I've not seen that.
-
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
Why is Speex appearing in your voice path? Set all devices to g711 u-Law.
So that did it, just removed speex from the allowed codecs and calls are terminating properly.
-
@Romo said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
Why is Speex appearing in your voice path? Set all devices to g711 u-Law.
So that did it, just removed speex from the allowed codecs and calls are terminating properly.
That's what I figured. Somehow it was getting priority on one of the legs and that was causing it to need to transcode, which should work in theory, but you don't want in reality.
-
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
@Romo said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
Why is Speex appearing in your voice path? Set all devices to g711 u-Law.
So that did it, just removed speex from the allowed codecs and calls are terminating properly.
That's what I figured. Somehow it was getting priority on one of the legs and that was causing it to need to transcode, which should work in theory, but you don't want in reality.
Why would it take priority if it was the last codec setup. I had it like this
allow=ulaw,alaw,gsm,speex
-
@Romo said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
@Romo said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
@scottalanmiller said in Freepbx- Troubleshooting outgoing calls (Call hangups when other side answers):
Why is Speex appearing in your voice path? Set all devices to g711 u-Law.
So that did it, just removed speex from the allowed codecs and calls are terminating properly.
That's what I figured. Somehow it was getting priority on one of the legs and that was causing it to need to transcode, which should work in theory, but you don't want in reality.
Why would it take priority if it was the last codec setup. I had it like this
allow=ulaw,alaw,gsm,speex
THe phone might be set to take it first, if allowed.