wtf
This commit is contained in:
parent
5fc7746297
commit
2cb45cc1fb
|
@ -1124,8 +1124,6 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
|
||||||
uparams = NULL;
|
uparams = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("WTF b4 [%s]\n", uparams);
|
|
||||||
|
|
||||||
|
|
||||||
if (sip && sip->sip_via && (vproto = sip->sip_via->v_protocol)) {
|
if (sip && sip->sip_via && (vproto = sip->sip_via->v_protocol)) {
|
||||||
if (!strcasecmp(vproto, "sip/2.0/ws")) {
|
if (!strcasecmp(vproto, "sip/2.0/ws")) {
|
||||||
|
@ -1136,14 +1134,10 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
|
||||||
is_nat++;
|
is_nat++;
|
||||||
|
|
||||||
if (uparams && (p = switch_stristr("transport=ws", uparams))) {
|
if (uparams && (p = switch_stristr("transport=ws", uparams))) {
|
||||||
printf("WTF [%s]=[%c]...\n", p, p[12]);
|
|
||||||
|
|
||||||
if (p[12] != 's') {
|
if (p[12] != 's') {
|
||||||
utmp = switch_string_replace(uparams, "transport=ws", "transport=wss");
|
utmp = switch_string_replace(uparams, "transport=ws", "transport=wss");
|
||||||
//uparams = utmp;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("WTF af [%s][%s]\n", uparams, utmp);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue