forked from Mirrors/freeswitch
[mod_sofia] Include isup-oli parameter on outbound invite when we have value in caller profile
This commit is contained in:
parent
885c05f01b
commit
53807da088
|
@ -1202,10 +1202,15 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
|||
if (!zstr(invite_domain)) {
|
||||
sipip = invite_domain;
|
||||
}
|
||||
|
||||
format = strchr(sipip, ':') ? "\"%s\" <sip:%s%s[%s]>" : "\"%s\" <sip:%s%s%s>";
|
||||
|
||||
tech_pvt->from_str = switch_core_session_sprintf(tech_pvt->session, format, cid_name, use_cid_num, !zstr(cid_num) ? "@" : "", sipip);
|
||||
|
||||
if (zstr(tech_pvt->caller_profile->aniii)){
|
||||
format = strchr(sipip, ':') ? "\"%s\" <sip:%s%s[%s]>" : "\"%s\" <sip:%s%s%s>";
|
||||
tech_pvt->from_str = switch_core_session_sprintf(tech_pvt->session, format, cid_name, use_cid_num, !zstr(cid_num) ? "@" : "", sipip);
|
||||
} else {
|
||||
format = strchr(sipip, ':') ? "\"%s\" <sip:%s%s[%s];isup-oli=%s>" : "\"%s\" <sip:%s%s%s;isup-oli=%s>";
|
||||
tech_pvt->from_str = switch_core_session_sprintf(tech_pvt->session, format, cid_name, use_cid_num, !zstr(cid_num) ? "@" : "",
|
||||
sipip, tech_pvt->caller_profile->aniii);
|
||||
}
|
||||
}
|
||||
|
||||
if (from_var) {
|
||||
|
|
Loading…
Reference in New Issue