diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 18:50:50 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 18:50:50 +0000 |
commit | 4d45fa634261591d9bbf0d080685727b2aae4eb8 (patch) | |
tree | a7ca2c934eb1c0e29838b0f739db47198dd7551b /channels | |
parent | 87baafa18b327efd5fe1647059110e13207d3fd0 (diff) |
Go off hold when we get an empty reinvite telling us to.
(closes issue #14448)
Reported by: frawd
Patches:
hold_invite_nosdp.patch uploaded by frawd (license 610)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@174644 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 655553693..8191eb130 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14521,8 +14521,12 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int /* Some devices signal they want to be put off hold by sending a re-invite *without* an SDP, which is supposed to mean "Go back to your state" and since they put os on remote hold, we go back to off hold */ - if (ast_test_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD)) + if (ast_test_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD)) { + ast_queue_control(p->owner, AST_CONTROL_UNHOLD); + /* Activate a re-invite */ + ast_queue_frame(p->owner, &ast_null_frame); change_hold_state(p, req, FALSE, 0); + } } if (!ast_test_flag(&p->flags[0], SIP_NO_HISTORY)) /* This is a response, note what it was for */ append_history(p, "ReInv", "Re-invite received"); |