treate no method as INVITE
This commit is contained in:
parent
4f7122c866
commit
f50d14a7d1
|
@ -1204,7 +1204,11 @@ static void our_sofia_event_callback(nua_event_t event,
|
|||
refer_to = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_refer_to);
|
||||
if ((params = strchr(refer_to, ';'))) {
|
||||
*params++ = '\0';
|
||||
if ((method = switch_find_parameter(params, "method", NULL))) {
|
||||
|
||||
if (!(method = switch_find_parameter(params, "method", NULL))) {
|
||||
method = strdup("INVITE");
|
||||
}
|
||||
|
||||
if (!strcasecmp(method, "INVITE")) {
|
||||
action = "call";
|
||||
} else if (!strcasecmp(method, "BYE")) {
|
||||
|
@ -1213,7 +1217,6 @@ static void our_sofia_event_callback(nua_event_t event,
|
|||
action = method;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
refer_to = sofia_glue_get_url_from_contact(refer_to, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue