mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FS-7602 add some of 3b2d00f3e6 from verto to sip and refactor some code to keep sip working like verto
This commit is contained in:
@@ -2676,9 +2676,15 @@ static switch_status_t cmd_status(char **argv, int argc, switch_stream_handle_t
|
||||
stream->write_function(stream, "Dialplan \t%s\n", switch_str_nil(profile->dialplan));
|
||||
stream->write_function(stream, "Context \t%s\n", switch_str_nil(profile->context));
|
||||
stream->write_function(stream, "Challenge Realm \t%s\n", zstr(profile->challenge_realm) ? "auto_to" : profile->challenge_realm);
|
||||
|
||||
for (x = 0; x < profile->rtpip_index; x++) {
|
||||
stream->write_function(stream, "RTP-IP \t%s\n", switch_str_nil(profile->rtpip[x]));
|
||||
}
|
||||
|
||||
for (x = 0; x < profile->rtpip_index6; x++) {
|
||||
stream->write_function(stream, "RTP-IP \t%s\n", switch_str_nil(profile->rtpip6[x]));
|
||||
}
|
||||
|
||||
if (profile->extrtpip) {
|
||||
stream->write_function(stream, "Ext-RTP-IP \t%s\n", profile->extrtpip);
|
||||
}
|
||||
@@ -2980,6 +2986,9 @@ static switch_status_t cmd_xml_status(char **argv, int argc, switch_stream_handl
|
||||
for (x = 0; x < profile->rtpip_index; x++) {
|
||||
stream->write_function(stream, " <rtp-ip>%s</rtp-ip>\n", switch_str_nil(profile->rtpip[x]));
|
||||
}
|
||||
for (x = 0; x < profile->rtpip_index6; x++) {
|
||||
stream->write_function(stream, " <rtp-ip>%s</rtp-ip>\n", switch_str_nil(profile->rtpip6[x]));
|
||||
}
|
||||
if (profile->extrtpip) {
|
||||
stream->write_function(stream, " <ext-rtp-ip>%s</ext-rtp-ip>\n", profile->extrtpip);
|
||||
}
|
||||
@@ -5467,7 +5476,7 @@ static void general_event_handler(switch_event_t *event)
|
||||
}
|
||||
|
||||
if (!strcmp(profile->rtpip[x], old_ip6)) {
|
||||
profile->rtpip[x] = switch_core_strdup(profile->pool, new_ip6);
|
||||
profile->rtpip6[x] = switch_core_strdup(profile->pool, new_ip6);
|
||||
rb++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user