summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-06-07 20:19:05 +0000
committerJoshua Colp <jcolp@digium.com>2017-06-07 15:23:14 -0500
commit5b80496b42b0bef60a12a4c8fb3632beeba69cec (patch)
treef4b834baafdf6cf5ca24e8bfe3871099bfed62eb
parent9f054955f2f7830d4a7d20326d9fea7dff277456 (diff)
chan_pjsip: Update device state when in early media.
The chan_pjsip module uses a calculation approach for determining device state. This means that in situations where we would expect device state to change we need to tell the core to query. A scenario that was missed is when early media was signaled. This change adds the notification for the core to query device state when we are told that early media is being provided. ASTERISK-27039 Change-Id: Iafebfd152894966344ff2e950a3cee9f59a3eb6f
-rw-r--r--channels/chan_pjsip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 5bf339ee9..3f65a13de 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1387,6 +1387,7 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi
} else {
res = -1;
}
+ ast_devstate_changed(AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, "PJSIP/%s", ast_sorcery_object_get_id(channel->session->endpoint));
break;
case AST_CONTROL_VIDUPDATE:
media = pvt->media[SIP_MEDIA_VIDEO];