mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-23 11:36:09 +00:00
FS-3139
This commit is contained in:
parent
24bd230274
commit
687140b588
@ -384,9 +384,12 @@ static ldl_status parse_session_code(ldl_handle_t *handle, char *id, char *from,
|
|||||||
}
|
}
|
||||||
|
|
||||||
while(xml) {
|
while(xml) {
|
||||||
char *type = xtype ? xtype : iks_find_attrib(xml, "type");
|
char *type = NULL;
|
||||||
iks *tag;
|
iks *tag;
|
||||||
|
|
||||||
|
if (iks_type(xml)!=IKS_CDATA)
|
||||||
|
type = xtype ? xtype : iks_find_attrib(xml, "type");
|
||||||
|
|
||||||
if (type) {
|
if (type) {
|
||||||
|
|
||||||
if (!strcasecmp(type, "redirect")) {
|
if (!strcasecmp(type, "redirect")) {
|
||||||
@ -994,9 +997,9 @@ static int on_commands(void *user_data, ikspak *pak)
|
|||||||
uint8_t is_result = strcasecmp(type, "result") ? 0 : 1;
|
uint8_t is_result = strcasecmp(type, "result") ? 0 : 1;
|
||||||
uint8_t is_error = strcasecmp(type, "error") ? 0 : 1;
|
uint8_t is_error = strcasecmp(type, "error") ? 0 : 1;
|
||||||
iks *xml, *xsession, *xerror = NULL, *xredir = NULL;
|
iks *xml, *xsession, *xerror = NULL, *xredir = NULL;
|
||||||
|
struct iks_tag* tmp;
|
||||||
xml = iks_child (pak->x);
|
xml = iks_child (pak->x);
|
||||||
|
tmp = (struct iks_tag*) xml;
|
||||||
if (is_error) {
|
if (is_error) {
|
||||||
if ((xerror = working_find(xml, "error"))) {
|
if ((xerror = working_find(xml, "error"))) {
|
||||||
char *code = iks_find_attrib(xerror, "code");
|
char *code = iks_find_attrib(xerror, "code");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user