Skip to content
Snippets Groups Projects
Commit ba81ee6d authored by Mark Michelson's avatar Mark Michelson
Browse files

Make sure to fail a monitor if we receive a negative response for a CC SUBSCRIBE.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@257646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent afedb856
No related branches found
No related tags found
No related merge requests found
......@@ -18981,6 +18981,16 @@ static void handle_response(struct sip_pvt *p, int resp, const char *rest, struc
ast_string_field_set(p, theirtag, tag);
}
 
if (sipmethod == SIP_SUBSCRIBE && resp >= 400) {
struct sip_monitor_instance *monitor_instance = ao2_callback(sip_monitor_instances,
0, find_sip_monitor_instance_by_subscription_pvt, p);
if (monitor_instance) {
ast_cc_monitor_failed(monitor_instance->core_id, monitor_instance->device_name,
"Received error response to our SUBSCRIBE");
return;
}
}
switch(resp) {
case 200:
if (sipmethod == SIP_INVITE) {
......
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