b2bua icon indicating copy to clipboard operation
b2bua copied to clipboard

b2bua_simple not changing Call_Id

Open bertuola opened this issue 6 years ago • 1 comments

I did some tests with b2bua_simple (without rtp_proxy) and I noticed the Call_Id is the same between ingress and egress legs. In my understanding, a B2BUA should change it.

bertuola avatar Apr 03 '18 15:04 bertuola

The b2bua_simple does not change the Call-ID. The b2bua_radius however does and you can refer to it's code to see how to do it. The idea is to replace the CCEventTry before sending it out:

class CallController:
    def recvEvent(self, event, ua):
        if isinstance(event, CCEventTry):
            cId, cGUID, cli, cld, body, auth, caller_name = event.getData()
            new_call_id = SipCallId()
            event = CCEventTry((new_call_id, cGUID, cli, cld, body, auth, caller_name))
            ...

bambyster avatar Apr 04 '18 07:04 bambyster