Hi User,
I just to say Hello ! to all....
I using openser ....When I making the call from one A place to other B
place..
THe place B having the openser server
When making the calls from A to B calls are invited but,,,Not hearing the
voices.
But Local network its working..
I'm used the Nathelper mdules and installed the rtpproxy.
And below my openser file.. plz check it.. solve the issues.
modparam("acc","log_level",1)
modparam("acc","log_flag",1)
modparam("acc","log_missed_flag",2)
modparam("acc", "log_fmt", "cdfimorstup")
#modparam("acc", "failed_transaction_flag",3)
modparam("acc", "report_cancels", 1)
modparam("acc","report_ack",0)
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc","radius_flag",1)
#modparam("acc","radius_level",1)
#modparam("acc","radius_missed_flag",2)
modparam("acc","service_type",15)
#modparam("acc", "detect_direction", 1)
modparam("acc","radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
modparam("auth_radius","radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
##########33
modparam("nathelper","natping_interval",30)
modparam("nathelper","ping_nated_only",1)
modparam("nathelper", "rtpproxy_sock",
"unix:/var/run/rtpproxy.sock")
#################33
modparam("rr", "enable_full_lr", 1)
###############################################
route {
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("13")) {
sl_send_reply("483","Too Many
Hops........................!");
exit;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
exit;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
if(!method== "REGISTER")
{
record_route();
};
# loose-route processing
if (loose_route()) {
# add now 0n 9 setflag(1);
acc_rad_request("200 ok ");
t_relay();
exit;
};
# account completed transactions via syslog
#setflag(1);
# setflag(2);
if(uri==myself)
{
if(method=="REGISTER")
{
if(!radius_www_authorize("192.168.2.55"))
{
www_challenge("192.168.2.55","0");
exit;
};
#consume_credentials();
save("location");
if (m_dump())
{
log("MSILO: offline messages dumped - if they
were\n");
}else{
log("MSILO: no offline messages dumped\n");
};
exit;
};
if(method=="INVITE" && method=="ACK")
{ record_route();
acc_rad_request("200");
force_rtp_proxy();
#setflag(1);
t_on_reply("1");
};
/* if (method=="BYE") {
record_route();
};
*/
if (method=="MESSAGE") {
log(1, "MESSAGE\n");
setflag(1); /* set for accounting (the same value as in
log_flag!) */
};
if (method=="BYE" || method=="CANCEL") {
#log (1, "BYE or CANCEL\n");
#setflag(1);
acc_rad_request("200 ");
#acc_rad_request("Stop");
#unforce_rtp_proxy();
#setflag(1);
};
if(!lookup("location"))
{
sl_send_reply("404","Woo......... NOt found");
};
};
if(!t_relay())
{
sl_reply_error();
};
lookup("aliases");
#setflag(2);
exit;
}
onreply_route[1]
{
if(status=~"[0-9][0-9][0-9]")
{
force_rtp_proxy();
};
}
--
Thanks and Regards with cheers
Sunkara Ravi Prakash (Voip Developer)
Hyperion Technology
www.hyperion-tech.com
<b>