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

Need for an ability to know whether a SipMessage is Retransmitted (SipRequest or SipResponse) and log the sip message #79

Open
mahilion opened this issue Jun 6, 2022 · 2 comments

Comments

@mahilion
Copy link

mahilion commented Jun 6, 2022

Today the JAIN stack does the request retransmissions (incase of SipClientTransactions) and also the response retransmissions (incase of SipServerTransactions).

It would be nice to have whether the request / response is retransmitted in the SipMessage object. and also log the message.

This helps for the application to keep track of retransmissions in log messages.

Thanks
Mahesh N

@mahilion mahilion changed the title Need for an ability to know whether a SipMessage is Retransmitted (SIpRequest or SipResponse) and log the sip message Need for an ability to know whether a SipMessage is Retransmitted (SipRequest or SipResponse) and log the sip message Jun 6, 2022
@vladimirralev
Copy link
Collaborator

Without retransmissions it probably can't be called a transaction anymore, so it would no longer be a transactional FSM. I think the Valve API can work for you. It skips dialog and transaction statefullness and you are responsible for all state and re-transmissions. Check this example:

https://github.com/usnistgov/jsip/blob/master/src/test/unit/gov/nist/javax/sip/stack/SIPMessageValveTest.java

and this is the example handler:

https://github.com/usnistgov/jsip/blob/master/src/test/unit/gov/nist/javax/sip/stack/SIPMessageValveImpl.java

@mahilion
Copy link
Author

mahilion commented Jun 7, 2022

I was talking about the outgoing request and responses from JAIN stack.
For example: when JAIN creates a clientTransaction to send a request to an UAS (User Agent Server). if the UAS is not responding , the JAIN tries to send a retransmission for few times until a TIMEOUT is reached.
So these requests which are sent as part of retransmission timer , can they marked in the ServerLogger ?

Same argument for the responses sent out of JAIN stack when it has created ServerTransaction to an UAC (User Agent Client).

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