Hi guys,
I am trying to route all calls from openser to our commercial SIP Proxy server. I modify PSTN.cfg file from examples folder and i tried to call from one sip dialer but there is no any request from openser to my SIP Proxy server. and the dialer is registered and trying to call without any error. I was try to look openser logs but there is not error or warrning logs.
Same time i did capture from Ethereal and found "Time Out" from openser to sip dialer.
Here is my pstn.cfg configuration::
loadmodule "/usr/local/lib/openser/modules/sl.so" loadmodule "/usr/local/lib/openser/modules/tm.so" loadmodule "/usr/local/lib/openser/modules/acc.so" loadmodule "/usr/local/lib/openser/modules/rr.so" loadmodule "/usr/local/lib/openser/modules/maxfwd.so" loadmodule "/usr/local/lib/openser/modules/registrar.so" loadmodule "/usr/local/lib/openser/modules/usrloc.so"
# -- acc params -- modparam("acc", "log_level", 1) # that is the flag for which we will account -- don't forget to # set the same one :-) modparam("acc", "log_flag", 1 )
# ------------------------- request routing logic -------------------
# main routing logic
route{ if (method=="REGISTER") { save("location"); return; }; if (loose_route()) { t_relay(); return; }; if (method=="INVITE") { record_route(); };
if (!uri=~"sip:+?[0-9]+@.*") { if (method=="INVITE") { sl_send_reply("403", "Call cannot be served here"); } else { # forward(uri:host, uri:port); }; return; }; #end of (!uri=~"sip:+?[0-9]+@.*")
setflag(1);
if (method=="INVITE") { if (!uri=~"sip:00[1-9][0-9]+@.*") { sl_send_reply("403", "Forbidden"); return; }; #End if (uri=~"sip:00[1-9][0-9]+@.*")
}; #End of (method=="INVITE")
rewritehostport("192.168.0.10:5060");
# forward the request now if (!t_relay()) { sl_reply_error(); return; };
} #end of route
-------- Yours, Abdul Lateef Computer Programmer HATIF COM Mob: +974 - 5405022 ICQ: 276994704 MSN: abdulzu@hotmail.com GoogleTalk: lateef.np@gmail.com YM!: abdul_zu Doha Qatar http://www.hatif.com
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com