<DIV>Hi,&nbsp;Ram</DIV>  <DIV>&nbsp;</DIV>  <DIV>its Not looking up in aliases table , it look ups only on location table. the&nbsp; each request and responses .</DIV>  <DIV><BR>So, You have to add your domain in the domain table by using :</DIV>  <DIV><BR><SPAN style="FONT-WEIGHT: bold">insert&nbsp; into domain values('urs_domain', ' date) ; in&nbsp;&nbsp; openser&nbsp; databases tables.&nbsp;</SPAN><BR><BR>I do hope it can help you.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks.</DIV>  <DIV><BR>On 8/22/06, ram <TALK2RAM@GMAIL.COM>wrote:<BR>&gt;<BR>&gt; Hi all<BR>&gt;<BR>&gt; iam trying to read the getting started document from onsip<BR>&gt; when iam configuring pstn-gw.cfg<BR>&gt; with the below config<BR>&gt;<BR>&gt; when the X-lite user try to loging , SIP/2.0 403 Forbidden, in the Log of<BR>&gt; X-lite<BR>&gt;<BR>&gt; what is wrong , even i have changed AVP after reading module configs in<BR>&gt; openser.<BR>&gt;<BR>&gt; any one suggest me what is wrong iam doing
 here<BR>&gt;<BR>&gt; Ram<BR>&gt;<BR>&gt; -----------------<BR>&gt; openser.cfg<BR>&gt; #<BR>&gt; # $Id: openser.cfg,v 1.6 2006/02/15 18:23:46 bogdan_iancu Exp $<BR>&gt; #<BR>&gt; # simple quick-start config script<BR>&gt; #<BR>&gt;<BR>&gt; # ----------- global configuration parameters ------------------------<BR>&gt;<BR>&gt; debug=9 # debug level (cmd line: -dddddddddd)<BR>&gt; fork=yes<BR>&gt; log_stderror=no # (cmd line: -E)<BR>&gt;<BR>&gt; /* Uncomment these lines to enter debugging mode<BR>&gt; #fork=no<BR>&gt; #log_stderror=yes<BR>&gt; */<BR>&gt;<BR>&gt; check_via=no # (cmd. line: -v)<BR>&gt; dns=no # (cmd. line: -r)<BR>&gt; rev_dns=no # (cmd. line: -R)<BR>&gt; listen=myip<BR>&gt; port=5060<BR>&gt; children=4<BR>&gt; fifo="/tmp/openser_fifo"<BR>&gt; fifo_db_url="mysql://openser:openserrw@localhost /openser"<BR>&gt;<BR>&gt;<BR>&gt; # ------------------ module loading<BR>&gt; ----------------------------------<BR>&gt;<BR>&gt;<BR>&gt; loadmodule
 "/usr/local/lib/openser/modules/mysql.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/sl.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/tm.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/rr.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/maxfwd.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/usrloc.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/registrar.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/textops.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/auth.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/auth_db.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/uri.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/uri_db.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/domain.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/mediaproxy.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/nathelper.so"<BR>&gt; loadmodule "/usr/local/lib/openser/modules/avpops.so"<BR>&gt; loadmodule
 "/usr/local/lib/openser/modules/permissions.so"<BR>&gt;<BR>&gt; modparam("auth_db|permissions|uri_db|usrloc","db_url",<BR>&gt; "mysql://openser:openserrw@localhost/openser")<BR>&gt; modparam("auth_db", "calculate_ha1", 1)<BR>&gt; modparam("auth_db", "password_column", "password")<BR>&gt;<BR>&gt; modparam("nathelper", "rtpproxy_disable", 1)<BR>&gt; modparam("nathelper", "natping_interval", 0)<BR>&gt;<BR>&gt; modparam("mediaproxy","natping_interval", 30)<BR>&gt; modparam("mediaproxy","mediaproxy_socket",<BR>&gt; "/var/run/mediaproxy.sock")<BR>&gt; modparam("mediaproxy","sip_asymmetrics","/usr/local/etc/ser/sip-clients")<BR>&gt; modparam("mediaproxy","rtp_asymmetrics","/usr/local/etc/ser/rtp-clients")<BR>&gt;<BR>&gt; modparam("usrloc", "db_mode", 2)<BR>&gt; modparam("auth_db", "calculate_ha1", yes)<BR>&gt; modparam("auth_db", "password_column", "password")<BR>&gt;<BR>&gt; modparam("registrar", "nat_flag", 6)<BR>&gt;<BR>&gt; modparam("rr", "enable_full_lr", 1)<BR>&gt;<BR>&gt;
 modparam("tm", "fr_timer_avp", "i:25")<BR>&gt; modparam("tm", "fr_inv_timer_avp", "i:25")<BR>&gt;<BR>&gt; modparam("permissions", "db_mode", 1)<BR>&gt; modparam("permissions", "trusted_table", "trusted")<BR>&gt;<BR>&gt; route {<BR>&gt;<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; # Sanity Check Section<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; if (!mf_process_maxfwd_header("10")) {<BR>&gt; sl_send_reply("483", "Too Many Hops");<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; if (msg:len &gt; max_len) {<BR>&gt; sl_send_reply("513", "Message Overflow");<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; # Record Route Section<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; if (method=="INVITE" &amp;&amp; client_nat_test("3")) {<BR>&gt; # INSERT YOUR IP ADDRESS
 HERE<BR>&gt;<BR>&gt; record_route_preset("myproxyip:5060;nat=yes");<BR>&gt; } else if (method!="REGISTER") {<BR>&gt; record_route();<BR>&gt; };<BR>&gt;<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; # Call Tear Down Section<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; if (method=="BYE" || method=="CANCEL") {<BR>&gt; end_media_session();<BR>&gt; };<BR>&gt;<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; # Loose Route Section<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; if (loose_route()) {<BR>&gt;<BR>&gt; if (has_totag() &amp;&amp; (method=="INVITE" || method=="ACK")) {<BR>&gt;<BR>&gt; if<BR>&gt; (client_nat_test("3")||search("^Route:.*;nat=yes")){<BR>&gt; setflag(6);<BR>&gt; use_media_proxy();<BR>&gt; };<BR>&gt; };<BR>&gt;<BR>&gt; route(1);<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; #<BR>&gt;
 -----------------------------------------------------------------<BR>&gt; # Call Type Processing Section<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; if (!is_uri_host_local()) {<BR>&gt; if (is_from_local() || allow_trusted()) {<BR>&gt; route(4);<BR>&gt; route(1);<BR>&gt; } else {<BR>&gt; sl_send_reply("403", "Forbidden");<BR>&gt; };<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; if (method=="CANCEL") {<BR>&gt; route(1);<BR>&gt; return;<BR>&gt; } else if (method=="INVITE") {<BR>&gt; route(3);<BR>&gt; return;<BR>&gt; } else if (method=="REGISTER") {<BR>&gt; route(2);<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; lookup("aliases");<BR>&gt; if (uri!=myself) {<BR>&gt; route(4);<BR>&gt; route(1);<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; if (!lookup("location")) {<BR>&gt; sl_send_reply("404", "User Not Found");<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; route(1);<BR>&gt; }<BR>&gt;<BR>&gt; route[1] {<BR>&gt;<BR>&gt; #<BR>&gt;
 -----------------------------------------------------------------<BR>&gt; # Default Message Handler<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt;<BR>&gt; t_on_reply("1");<BR>&gt;<BR>&gt; if (!t_relay()) {<BR>&gt;<BR>&gt; if (method=="INVITE" || method=="ACK") {<BR>&gt; end_media_session();<BR>&gt; };<BR>&gt;<BR>&gt; sl_reply_error();<BR>&gt; };<BR>&gt; }<BR>&gt;<BR>&gt; route[2] {<BR>&gt;<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; # REGISTER Message Handler<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt;<BR>&gt; sl_send_reply("100", "Trying");<BR>&gt;<BR>&gt; if (!search("^Contact:[ ]*\*") &amp;&amp; client_nat_test("7")) {<BR>&gt; setflag(6);<BR>&gt; fix_nated_register();<BR>&gt; force_rport();<BR>&gt; };<BR>&gt;<BR>&gt; if (!www_authorize("","subscriber")) {<BR>&gt; www_challenge("","0");<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; if
 (!check_to()) {<BR>&gt; sl_send_reply("401", "Unauthorized");<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; consume_credentials();<BR>&gt;<BR>&gt; if (!save("location")) {<BR>&gt; sl_reply_error();<BR>&gt; };<BR>&gt; }<BR>&gt;<BR>&gt; route[3] {<BR>&gt;<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt; # INVITE Message Handler<BR>&gt; #<BR>&gt; -----------------------------------------------------------------<BR>&gt;<BR>&gt; if (!allow_trusted()) {<BR>&gt;<BR>&gt; if (!proxy_authorize("","subscriber")) {<BR>&gt; proxy_challenge("","0");<BR>&gt; return;<BR>&gt; } else if (!check_from()) {<BR>&gt; sl_send_reply("403", "Use From=ID");<BR>&gt; return;<BR>&gt; };<BR>&gt;<BR>&gt; consume_credentials();<BR>&gt; };<BR>&gt;<BR>&gt; if (client_nat_test("3")) {<BR>&gt; setflag(7);<BR>&gt; force_rport();<BR>&gt; fix_nated_contact();<BR>&gt; };<BR>&gt;<BR>&gt; if (uri=~"^sip:1[0-9]{10}@") {<BR>&gt; strip(1);<BR>&gt; };<BR>&gt;<BR>&gt;
 lookup("aliases");<BR>&gt; if (uri!=myself) {<BR>&gt; route(4);<BR>&gt; route(1);<BR>&gt; return;<BR><BR>=== message truncated ===</DIV><BR><p>&#32;
                <hr size=1>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com"> Great rates starting at 1&cent;/min.