Hello

OK,Thanks for your help.

my opensips version is 1.7.0

But, I replace force_rtp_proxy() to rtpproxy_answer().
And add loadmodule "rtpproxy.so"

It's my changed config.

loadmodule "rtpproxy.so"
route[1]
{
# !! Nathelper
if (uri=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)" && !search("^Route:")){
sl_send_reply("479", "We don't forward to private IP addresses");
exit;
};

# if client or server know to be behind a NAT, enable relay
if (isbflagset(6)) {
rtpproxy_answer();
};

# NAT processing of replies; apply to all transactions (for example,
# re-INVITEs from public to private UA are hard to identify as
# NATed at the moment of request processing); look at replies
t_on_reply("1");

# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}

# !! Nathelper
onreply_route[1] {
# NATed transaction ?
if (isbflagset(6) && status =~ "(183)|2[0-9][0-9]") {
fix_nated_contact();
rtpproxy_answer();
# otherwise, is it a transaction behind a NAT and we did not
# know at time of request processing ? (RFC1918 contacts)
} else if (nat_uac_test("1")) {
fix_nated_contact();
};
}


I still can't startup opensips server.
Error is :
Oct 13 16:44:10 [26809] DBG:core:init_mod: register MI for nathelper
Oct 13 16:44:10 [26809] DBG:core:init_mod: initializing module rtpproxy
Oct 13 16:44:10 [26809] ERROR:rtpproxy:mod_init: no rtpproxy set specified
Oct 13 16:44:10 [26809] ERROR:core:init_mod: failed to initialize module rtpproxy
Oct 13 16:44:10 [26809] ERROR:core:main: error while initializing modules
Oct 13 16:44:10 [26809] DBG:tm:tm_shutdown: tm_shutdown : start
Oct 13 16:44:10 [26809] DBG:tm:unlink_timer_lists: emptying DELETE list
Oct 13 16:44:10 [26809] DBG:tm:tm_shutdown: emptying hash table
Oct 13 16:44:10 [26809] DBG:tm:tm_shutdown: releasing timers
Oct 13 16:44:10 [26809] DBG:tm:tm_shutdown: removing semaphores
Oct 13 16:44:10 [26809] DBG:tm:tm_shutdown: destroying callback lists
Oct 13 16:44:10 [26809] DBG:tm:tm_shutdown: tm_shutdown : done
Oct 13 16:44:10 [26809] DBG:core:destroy_tls: entered
Oct 13 16:44:10 [26809] DBG:core:shm_mem_destroy:
Oct 13 16:44:10 [26809] DBG:core:shm_mem_destroy: destroying the shared memory lock Oct 13 16:44:10 [26807] DBG:core:wait_status_code: read code 0 ? rc = 0, errno=Success Oct 13 16:44:10 [26807] INFO:core:daemonize: pre-daemon process exiting with -1

Can you give me any suggest? Thanks



On 2011年10月13日 16:35, Andrew Pogrebennyk wrote:
On 10/13/2011 11:30 AM, Nick wrote:
When I start opensips. It display error.  Can you give me any suggest?
Thanks
Oct 13 16:27:49 [20343] DBG:core:find_cmd_export_t:<force_rtp_proxy>
not found
The force_rtp_proxy() function was removed in 1.6.4 and needs to be
replaced with rtpproxy_offer() / rtpproxy_answer().
http://www.opensips.org/Resources/DocsMigration163to164

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to