On 14.09.10 15:23, Антон Загорский wrote:
Hello!
I'm using an example apps/examples/ivr_example/b2bua.py
I have the following scheme:
UAC1 -> AudioCodes Mediant -> OpenSIPS -> SEMS IVR -> UAC2
Script works fine, but when UAC2 is ringing (self.connectCallee executing) a
long time (more than 12 seconds) AudioCodes Mediant killing session with
RTP_BROKEN_CONNECTION.
As I understand this happens because of "self.disconnectMedia()" which
closes RTP session.
Am I right?
Yes and no. The RTP session is not closed explicitly: it just disables
the RTP processing (send/recv) within SEMS.
So, should I manually check when UAC2 sends OK and only at that time call
self.disconnectMedia?
That would probably work. You might also want to generate a ring tone
and send it back to the nodes upstream. However, I do not think this is
possible from within python scripts. In C++, there is an example in the
conference module. It uses the AmRingTone class.
Regards
Raphael.
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems