Endpoint dev question
Hello, I have developed an endpoint which I call X1. Its objective is sending audio to / receiving audio from an external system. I originate a call, bridging extension 7550 with X1: bgapi originate {origination_caller_id_number=00000002}sofia/external/7550@192.168.1.200 <mailto:%7borigination_caller_id_number=00000002%7dsofia/external/7550@192.1 68.1.200> &bridge(X1/00000002) Extension 7550 is ringing and I answer it. [...] 91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:643 (X1/83688055) State ROUTING going to sleep 91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:584 (X1/83688055) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 4) 91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:662 (X1/83688055) State CONSUME_MEDIA 91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:662 (X1/83688055) State CONSUME_MEDIA going to sleep 2017-11-27 14:44:43.001033 [DEBUG] switch_rtp.c:7229 Correct audio ip/port confirmed. Here the audio sent to FreeSwitch is perfectly reproduced at the ext. 7550, while one received is more or less broken (there are many missing frames). I try to execute: switch_channel_t *channel = switch_core_session_get_channel(session); switch_channel_answer(channel); ... but it has no effect at all. Exactly after 60s FreeSwitch hangs up. 91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:45:42.000933 [NOTICE] switch_ivr_originate.c:3605 Hangup X1/83688055 [CS_CONSUME_MEDIA] [NO_ANSWER] What do I do wrong? May be I should originate a call to the extension 7550, then originate a call to my endpoint X1 and then bridge both? I'll appreciate very much any hint. Adrian.
participants (1)
-
Adrian Worutowicz