Open shakir-snakescript opened 1 month ago
Hello, from the logs I see that no rtp session was established, it could be because of the sdp session negotiation failure but normally this would have been logged. Can you please confirm if you received the call on the other end for example ringing or a missed call if not, the issue is most likely with the sdp negotiation and we will then go further of logging this and confirming then I will fix any issues and add any appropriate codecs missing. Thank you for your contriburion.
I received no call on the other end. So, let me know how we can go further to diagnose the issue.
However, I would like to mention that my actual use case: When someone calls on my SIP test number, I want them to be transferred to my another number(AI voice agent). There is a library called PyVoIP in which I was successfully able to register the SIP and I dialled my test number from my mobile phone, a callback function actually got triggered but they didn't had call forwarding/transfer option.
So, in your case we want to register the SIP and then when someone makes the call on our number from their respective phones, our program will pick the call and will transfer to a desired phone number.
Hi @moha-abdi
I'm curious about one thing, does your library supports the handling of incoming calls?
I received no call on the other end. So, let me know how we can go further to diagnose the issue.
However, I would like to mention that my actual use case: When someone calls on my SIP test number, I want them to be transferred to my another number(AI voice agent). There is a library called PyVoIP in which I was successfully able to register the SIP and I dialled my test number from my mobile phone, a callback function actually got triggered but they didn't had call forwarding/transfer option.
So, in your case we want to register the SIP and then when someone makes the call on our number from their respective phones, our program will pick the call and will transfer to a desired phone number.
Good then the issue is with the sdp negotiation, it seems like your server is expecting some codecs that are not supported as the library only supports PCMA, PCMU codecs, but most sip servers support those two so we can further explore this. I would like to see the response of the OPTIONS request to the sip server if possible.
Hi @moha-abdi
I'm curious about one thing, does your library supports the handling of incoming calls?
The current release doesn't fully support it. But the new release 1.8.0 supports handling incoming calls and its also integrated in the call handler, but currently I have to add some final touches to it before pushing the new release. Although i am curreny busy with other projects I will try to make time and add this ASAP. Stay tuned for the next few days as it will be released.
Hi @moha-abdi
I am working on a project involving SIP registration and call handling using the PySIP library. The SIP registration appears to be successful; however, when attempting to initiate a call to a test number, nothing happens. No function is triggered, and no call is placed.
Expected Behavior: After successfully registering the SIP account, when I make call to +11234567890. Any function should get triggered, for example: appointment_booking_bot. I would know that my call is now connected and I can do futher operations with it.
Actual Behavior: The SIP registration succeeds, but when attempting to place the call, nothing happens. No functions seem to be triggered after the account.make_call() method is invoked.
Additional Information:
I am using PySIP to manage SIP accounts and handle calls. Logging has been added, and no errors are logged during the call attempt. I’ve patched the SipCore.generate_response method to handle cases where the realm or nonce are None. Please let me know if further details are required. Any guidance on resolving this issue would be greatly appreciated!
Code output for your reference: