Skip to content
Snippets Groups Projects
Commit 95ee1d06 authored by Mark Petersen's avatar Mark Petersen Committed by Joshua Colp
Browse files

chan_sip.c Fix pickup on channel that are in AST_STATE_DOWN

resolve issue with pickup on device that uses "183" and not "180"

ASTERISK-29832

Change-Id: I4c7d223870f8ce9a7354e0f73d4e4cb2e8b58841
parent 2a34bb1e
No related branches found
No related tags found
1 merge request!48asterisk uplift to 18.11.2
......@@ -26605,7 +26605,14 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, str
if (!error && ast_strlen_zero(pickup.exten) &&
ast_channel_state(replaces_chan) != AST_STATE_RINGING &&
ast_channel_state(replaces_chan) != AST_STATE_RING &&
ast_channel_state(replaces_chan) != AST_STATE_UP) {
ast_channel_state(replaces_chan) != AST_STATE_UP &&
/*
* Check the down state as well because some SIP devices do not
* give 180 ringing when they can just give 183 session progress
* instead. same fix the one in ast_can_pickup
* git show 0a8f9d2cf08
*/
ast_channel_state(replaces_chan) != AST_STATE_DOWN) {
ast_log(LOG_NOTICE, "Supervised transfer attempted to replace non-ringing or active call id (%s)!\n", replace_id);
transmit_response_reliable(p, "603 Declined (Replaces)", req);
error = 1;
Subject: chan_sip.c
resolve issue with pickup on device that uses "183" and not "180"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment