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

Replace a call in PJSUA2: call::onCallTsxState() not called in state PJSIP_TSX_STATE_PROCEEDING when #4087

Open
wosrediinanatour opened this issue Sep 24, 2024 · 0 comments

Comments

@wosrediinanatour
Copy link
Contributor

Describe the bug

Function call:onCallTsxState() was not called in state PJSIP_TSX_STATE_PROCEEDING and/or PJSIP_TSX_STATE_TRYING. The first call back is in state PJSIP_TSX_STATE_COMPLETED.

Functions call::onCallReplaced() and call::onCallReplaceRequest() were not implemented, but this should not be a reason.

  • As far as I know, there is also no call::onCallTsxState() called for a new incoming INVITE. Would be good to add this information to the documentation of onCallTsxState() in call.hpp.
  • Shouldn't be call::onCallTsxState() at least called in state PJSIP_TSX_STATE_PROCEEDING?

Steps to reproduce

Was not done with a example / test app.

PJSIP version

2.14.1

Context

This happens when Functions call::onCallReplaced() and call::onCallReplaceRequest() are not implemented.
Should be independent on OS and platform.

Log, call stack, etc

Incoming INVITE with Replaces: 35df40da-f9d1-484c-929f-d8c9ff07a385;to-tag=fe982681-43d9-419f-b7d3-e80f53a07d1f;from-tag=971112669-337510680-1727162393208

Incoming Request msg INVITE/cseq=1 (rdata0x631001f40828)
Warning: application has not created new Call instance for call replace request (call ID:140)
Incoming Request msg INVITE/cseq=1 (rdata0x631001f40828) in state Null
State changed from Null to Trying, event=RX_MSG
...
Call 141: media transport initialization complete: Success
Response msg 100/INVITE/cseq=1 (tdta0x6210013561a8) created
Initial answer Response msg 100/INVITE/cseq=1 (tdta0x6210013561a8)
Sending Response msg 100/INVITE/cseq=1 (tdta0x6210013561a8)
Sending Response msg 100/INVITE/cseq=1 (tdta0x6210013561a8)
Sending Response msg 100/INVITE/cseq=1 (tdta0x6210013561a8) in state Trying

SIP/2.0 100 Trying

State changed from Trying to Proceeding, event=TX_MSG
Transaction tsx0x61d0001cb728 state changed to Proceeding
State changed from NULL to INCOMING, event=TSX_STATE
Warning: application has not created new Call instance for call replace (old call ID:140, new call ID:141)"
@wosrediinanatour wosrediinanatour changed the title PJSUA2: call::onCallTsxState() not called in state PJSIP_TSX_STATE_PROCEEDING Replace a call in PJSUA2: call::onCallTsxState() not called in state PJSIP_TSX_STATE_PROCEEDING when Sep 24, 2024
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

1 participant