I have fresh installed opensips and lets say it is running on 192.168.10.50,
what i want is to receive a call from a sip client from an IP 1.1.1.1 and send it to a sip server10.10.10.50
i am receiving a call on opensip, and send a call to the server using simply t_relay, but the opensip is sending the same IP of itself in the request URI host
For example it should send the call to a sip server as [email protected]
but it is sending a call to the server as [email protected]
the IP “192.168.10.50” belongs to itself, it should not do that but it is doing that.
below is an excerpt from routing cf.
socket=udp:192.168.10.50:5060
Route for handling incoming calls
route {
if (is_method("INVITE")) {
# Modify the request URI if necessary
# Log the modified request URI for debugging
xlog("Modified Request URI: $run");
# Relay the call to the destination SIP server
if (!send("10.10.10.50:5060")) {
xlog("Failed to send call to destination servern");
exit;
}
}
}
i was expecting that the opensips will send the call to the sip server with the modified because i am telling him to send(“10.10.10.50:5060”)
but it does not change
Masood Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.