Incoming INVITE failure before call creation does not emit ANY REJECT EVENT #3727
Replies: 4 comments 2 replies
-
|
Could be useful, but I haven't noticed that "Baresip fails while accepting/creating the call". What kind of situation can make such a failure? |
Beta Was this translation helpful? Give feedback.
-
|
My first thought about incoming calls was that a CALL_CLOSED should not be sent without a prior CALL_INCOMING. But if we look in function And if we like to keep this behavior there is indeed an inconsistency with cases where the control flow reaches: Line 837 in a9b3749 |
Beta Was this translation helpful? Give feedback.
-
|
If this approach makes sense to you, I can try to prepare a small PR for it. My idea would be:
I can work on an initial implementation and share it for review. |
Beta Was this translation helpful? Give feedback.
-
|
Makes sense to me. The new event would be similar to BEVENT_SIPSESS_CONN. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am wrapping Baresip inside a mobile SDK and I need to expose call failure information to the upper application layer in a consistent way.
For outgoing calls, this works correctly, in fact, when the remote side replies with a SIP error response, the call already exists and I receive
BEVENT_CALL_CLOSED. From there I can read the status code usingcall_scode(call)or, when available,msg->scode.The case I am looking at is different: an incoming INVITE where Baresip fails while accepting/creating the call.
Today, in this scenario, no
BEVENT_CALL_CLOSEDis emitted, which is understandable because the failure can happen before thestruct callis fully available and before the normal call lifecycle starts.From the SIP point, the failure exists and is correctly handled, but from the wrapper/application point of view there is no bevent that allows us to notify the SDK user that the incoming call failed with
500 Call Error.For SDK integrations, it would be useful to expose this kind of failure as a dedicated event, like this:
BEVENT_INCOMING_CALL_FAILEDcarrying at least:
Could this be useful for you too @juha-h ?
Beta Was this translation helpful? Give feedback.
All reactions