Double ringbacktone on api dial for WEB RTC
In the CCAgent (at least), when we initiate a call through the dial function of the REST API. We hear two ringback tones which is very annoying. This does no append when we directly dial from the CCAgent.
After investigating, I found the origin of the second ringback tone. The "normal" ringback tone is generated by the html markup #webrtc_audio_ringing. The second ringback tons is generated by the html markup #audio_remoteXX. This html markup is the one which will be used to hear the conversation after answering.
I do not understood the difference between the dial function of the REST API and the direct dial. But the console log are slightly different :
With direct dial
- webRtcOutgoingEventHandler{"type":"Establishing"}
- webRtcOutgoingEventHandler{"type":"Ringing","data":{"callee":"xxxxxxxx"},"sipCallId":"xxxx-xxxx-xxxx-xxxxx"}
With dial function of the REST API :
- webRtcIncomingEventHandler{"type":"Setup","data":{"caller":"xxxxxxxx"}}
- webRtcIncomingEventHandler{"data":{"caller":"xxxxxxxx"}}
- webRtcIncomingEventHandler{"type":"Connected","data":{"caller":"xxxxxxxx"},"sipCallId":"xxxx-xxxx-xxxx-xxxxx"}
Regards