Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b2bua_simple not changing Call_Id #28

Open
bertuola opened this issue Apr 3, 2018 · 1 comment
Open

b2bua_simple not changing Call_Id #28

bertuola opened this issue Apr 3, 2018 · 1 comment

Comments

@bertuola
Copy link

bertuola commented Apr 3, 2018

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.

@bambyster
Copy link

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))
            ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants