提交 9efc687d authored 作者: Michael Jerris's avatar Michael Jerris

handle no channel gracefully.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2706 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9a91102f
......@@ -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());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论