mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
produce sip_full_via var
This commit is contained in:
parent
eb93c17df2
commit
23dcdbd8d1
@ -239,7 +239,6 @@ static void extract_header_vars(sofia_profile_t *profile, sip_t const *sip,
|
|||||||
switch_stream_handle_t stream = { 0 };
|
switch_stream_handle_t stream = { 0 };
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
|
||||||
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
|
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
|
|
||||||
for(vp = sip->sip_via; vp; vp = vp->v_next) {
|
for(vp = sip->sip_via; vp; vp = vp->v_next) {
|
||||||
@ -251,9 +250,14 @@ static void extract_header_vars(sofia_profile_t *profile, sip_t const *sip,
|
|||||||
x++;
|
x++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_channel_set_variable(channel, "sip_full_via", (char *)stream.data);
|
||||||
|
|
||||||
|
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
|
||||||
switch_channel_set_variable(channel, "sip_recover_via", (char *)stream.data);
|
switch_channel_set_variable(channel, "sip_recover_via", (char *)stream.data);
|
||||||
free(stream.data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(stream.data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sip->sip_from) {
|
if (sip->sip_from) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user