Review Board 1.7.16


PJSIP: Create transactions for out-of-dialog responses

Review Request #4532 - Created March 26, 2015 and submitted

Mark Michelson
/branches/13
ASTERISK-24920
Reviewers
asterisk-dev
Asterisk
A problem was found where a device was sending a MESSAGE request to a heavily loaded Asterisk system. Since Asterisk wasn't able to respond to the message within 500 ms, the device retransmitted the MESSAGE. Asterisk got around to handling the first MESSAGE, sent a 202 response and then sent the incoming MESSAGE into the dialplan to be handled. Asterisk then took the retransmission, sent a 202 response to it, and sent it into the dialplan to be handled as well.

This patch aims to fix the problem where retransmissions are being treated as new requests. This adds an API call to respond to an out of dialog request by creating a transaction and sending the response on that transaction. This way, when a retransmission arrives, the PJSIP transaction layer matches it to the transaction we created, re-sends the response, and Asterisk does not ever see the retransmission.
The test scenario where Asterisk was mishandling the retransmitted MESSAGE request has been confirmed to work correctly now. I also have started Asterisk and ensured that Asterisk has no errors responding to incoming REGISTER or OPTIONS requests, which are altered by this patch.

There is a testsuite review up at https://gerrit.asterisk.org/#/c/14/
Total:
3
Open:
0
Resolved:
3
Dropped:
0
Status:
From:
Description From Last Updated Status
Review request changed
Updated (March 27, 2015, 4:24 p.m.)
  • changed from pending to submitted
Committed in revision 433644

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.