mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
handle no channel gracefully.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2706 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9a91102fe0
commit
9efc687d7a
@ -1384,7 +1384,9 @@ static void sip_i_state(int status,
|
||||
return;
|
||||
}
|
||||
}
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "NO CODECS");
|
||||
if (channel) {
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "NO CODECS");
|
||||
}
|
||||
nua_respond(nh, SIP_488_NOT_ACCEPTABLE,
|
||||
//SIPTAG_CONTACT(tech_pvt->contact),
|
||||
TAG_END());
|
||||
@ -1419,7 +1421,9 @@ static void sip_i_state(int status,
|
||||
return;
|
||||
}
|
||||
}
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "NO CODECS");
|
||||
if (channel) {
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "NO CODECS");
|
||||
}
|
||||
nua_respond(nh, SIP_488_NOT_ACCEPTABLE,
|
||||
//SIPTAG_CONTACT(tech_pvt->contact),
|
||||
TAG_END());
|
||||
@ -1460,7 +1464,9 @@ static void sip_i_state(int status,
|
||||
return;
|
||||
}
|
||||
}
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "NO CODECS");
|
||||
if (channel) {
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "NO CODECS");
|
||||
}
|
||||
nua_respond(nh, SIP_488_NOT_ACCEPTABLE,
|
||||
//SIPTAG_CONTACT(tech_pvt->contact),
|
||||
TAG_END());
|
||||
|
Loading…
x
Reference in New Issue
Block a user