Skip to content
Snippets Groups Projects
Commit 9abdf5f8 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#2174] Fix incoming IP call contact address

parent 180a1a69
Branches
Tags
No related merge requests found
...@@ -2974,10 +2974,15 @@ mod_on_rx_request (pjsip_rx_data *rdata) ...@@ -2974,10 +2974,15 @@ mod_on_rx_request (pjsip_rx_data *rdata)
account = dynamic_cast<SIPAccount *> (Manager::instance().getAccount (account_id)); account = dynamic_cast<SIPAccount *> (Manager::instance().getAccount (account_id));
if (account != NULL) { if (account != NULL) {
if (account_id == AccountNULL)
addrToUse = link->getLocalIPAddress();
else
addrToUse = account->getSessionAddress (); addrToUse = account->getSessionAddress ();
} }
else else {
addrToUse = link->getLocalIPAddress(); addrToUse = link->getLocalIPAddress();
}
// Have to do some stuff with the SDP // Have to do some stuff with the SDP
// Set the codec map, IP, peer number and so on... for the SIPCall object // Set the codec map, IP, peer number and so on... for the SIPCall object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment