HI,<br><br>thanks for your reply. Here is my ser.cfg and other config files please guide me.<br><br>ser.cfg<br>------------------<br>debug=5<br>fork=no<br>log_stderror=yes<br><br>listen=2xx.xxx.xxx.xxx # INSERT YOUR IP ADDRESS HERE
<br>port=5060<br>children=4<br><br>dns=no<br>rev_dns=no<br>fifo="/tmp/ser_fifo"<br>fifo_db_url="mysql://ser:mypass@localhost/ser"<br><br>loadmodule "/usr/lib/ser/modules/mysql.so"<br>loadmodule "/usr/lib/ser/modules/sl.so"
<br>loadmodule "/usr/lib/ser/modules/tm.so"<br>loadmodule "/usr/lib/ser/modules/rr.so"<br>loadmodule "/usr/lib/ser/modules/maxfwd<div id="mb_11">.so"<br>loadmodule "/usr/lib/ser/modules/usrloc.so"
<br>
loadmodule "/usr/lib/ser/modules/registrar.so"<br>loadmodule "/usr/lib/ser/modules/auth.so"<br>loadmodule "/usr/lib/ser/modules/auth_db.so"<br>loadmodule "/usr/lib/ser/modules/uri.so"
<br>loadmodule "/usr/lib/ser/modules/uri_db.so"<br>loadmodule "/usr/lib/ser/modules/domain.so"<br>loadmodule "/usr/lib/ser/modules/mediaproxy.so"<br>loadmodule "/usr/lib/ser/modules/nathelper.so"
<br>loadmodule "/usr/lib/ser/modules/textops.so"<br>loadmodule "/usr/lib/ser/modules/avpops.so"<br>loadmodule "/usr/lib/ser/modules/permissions.so"<br><br>modparam("auth_db|permissions|uri_db|usrloc|domain", "db_url", "
mysql://ser:mypass@localhost/ser")<br>modparam("auth_db", "calculate_ha1", 1)<br>modparam("auth_db", "password_column", "password")<br><br>modparam("nathelper", "rtpproxy_disable", 1)
<br>modparam("nathelper", "natping_interval", 0)<br><br>modparam("mediaproxy","natping_interval", 30)<br>modparam("mediaproxy","mediaproxy_socket", "/var/run/mediaproxy.sock")
<br>modparam("mediaproxy","sip_asymmetrics","/etc/ser/sip-clients")<br>modparam("mediaproxy","rtp_asymmetrics","/etc/ser/rtp-clients")<br><br>modparam("usrloc", "db_mode", 2)
<br><br>modparam("registrar", "nat_flag", 6)<br><br>modparam("rr", "enable_full_lr", 1)<br><br>modparam("tm", "fr_inv_timer", 27)<br>modparam("tm", "fr_inv_timer_avp", "inv_timeout")
<br><br>modparam("permissions", "db_mode", 1)<br>modparam("permissions", "trusted_table", "trusted")<br><br># ------------------------- request routing logic -------------------
<br><br># main routing logic<br><br>route {<br><br> # -----------------------------------------------------------------<br> # Sanity Check Section<br> # -----------------------------------------------------------------
<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483", "Too Many Hops");<br> break;<br> };<br><br> if (msg:len > max_len) {
<br> sl_send_reply("513", "Message Overflow");<br> break;<br> };<br><br> # -----------------------------------------------------------------<br> # Record Route Section
<br> # -----------------------------------------------------------------<br> if (method=="INVITE" && client_nat_test("3")) {<br> # INSERT PROXY IP ADDRESS HERE<br>
record_route_preset("
2xx.xxx.xxx.xxx:5060;nat=yes");<br> } else if (method!="REGISTER") {<br> record_route();<br> };<br><br> # -----------------------------------------------------------------
<br> # Call Tear Down Section<br> # -----------------------------------------------------------------<br> if (method=="BYE" || method=="CANCEL") {<br> end_media_session();
<br> };<br><br> # -----------------------------------------------------------------<br> # Loose Route Section<br> # -----------------------------------------------------------------<br> if (loose_route()) {
<br><br> if ((method=="INVITE" || method=="REFER") && !has_totag())<br> {<br> sl_send_reply("403", "Use From=ID");<br> break;
<br> };<br><br> if (method=="INVITE")<br> {<br> if (!allow_trusted())<br> {<br> if (!proxy_authorize("","subscriber"))
<br> {<br> proxy_challenge("","0");<br> break;<br> } else if (!check_from()) {
<br> sl_send_reply("403", "user From=ID");<br> break;<br> };
<br><br> consume_credentials();<br> };<br><br> if (client_nat_test("3") || search("^Route:.*;nat=yes")){<br> setflag(6);
<br> use_media_proxy();<br> };<br> <br> };<br><br> route(1);<br> break;
<br> };<br><br> # -----------------------------------------------------------------<br> # Call Type Processing Section<br> # -----------------------------------------------------------------<br>
if (!is_uri_host_local()) {<br> if (is_from_local() || allow_trusted()) {<br> route(4);<br> route(1);<br> } else { sl_send_reply("403", "Forbidden-two");
<br> };<br> break;<br> };<br><br> if (method=="ACK") {<br> route(1);<br> break;<br> } if (method=="CANCEL") {<br> route(1);
<br> break;<br> } else if (method=="INVITE") {<br> route(3);<br> break;<br> } else if (method=="REGISTER") {<br> route(2);<br>
break;<br> };<br><br> lookup("aliases");<br><br> if (!is_uri_host_local()) {<br> route(4);<br> route(1);<br> break;<br> };
<br><br> if (!lookup("location")) {<br> sl_send_reply("404", "User Not Found");<br> break;<br> };<br><br> route(1);<br>}<br><br>route[1] {<br>
<br> # -----------------------------------------------------------------<br> # Default Message Handler<br> # -----------------------------------------------------------------<br><br> t_on_reply("1");
<br><br> if (!t_relay()) {<br><br> if (method=="INVITE" || method=="ACK") {<br> end_media_session();<br> };<br><br> sl_reply_error();
<br> };<br>}<br><br>route[2] {<br><br> # -----------------------------------------------------------------<br> # REGISTER Message Handler<br> # -----------------------------------------------------------------
<br><br> sl_send_reply("100", "Trying");<br><br> if (!search("^Contact:[ ]*\*") && client_nat_test("7")) {<br> setflag(6);<br> fix_nated_register();
<br> force_rport();<br> };<br><br> if (!www_authorize("","subscriber")) {<br> www_challenge("","0");<br> break;<br> };
<br><br> if (!check_to()) {<br> sl_send_reply("401", "Unauthorized");<br> break;<br> };<br><br> consume_credentials();<br><br> if (!save("location")) {
<br> sl_reply_error();<br> };<br>}<br><br>route[3] {<br><br> # -----------------------------------------------------------------<br> # INVITE Message Handler<br> # -----------------------------------------------------------------
<br><br> if (client_nat_test("3")) {<br> setflag(7);<br> force_rport();<br> fix_nated_contact();<br> };<br><br> if (!allow_trusted())<br> {
<br> if (!proxy_authorize("","subscriber")) {<br> proxy_challenge("","0");<br> break;<br> } else if (!check_from()) {<br> sl_send_reply("403", "Use From=ID");
<br> break;<br> };<br><br> consume_credentials();<br><br> };<br> lookup("aliases");<br><br> if (!is_uri_host_local()) {<br> route(4);<br> route(1);
<br> break;<br> };<br><br> if (uri=~"^sip:011[0-9]*@")<br> {<br> route(4);<br> route(5);<br> break;<br> };<br><br> if (!lookup("location")) {
<br> if (uri=~"^sip:[0-9]{10}@") {<br> route(4);<br> route(5);<br> break;<br> };<br><br> sl_send_reply("404", "User Not Found");
<br> break;<br> };<br><br> route(4);<br> route(1);<br>}<br><br>route[4] {<br><br> # -----------------------------------------------------------------<br> # NAT Traversal Section
<br> # -----------------------------------------------------------------<br><br> if (isflagset(6) || isflagset(7)) {<br> if (!isflagset(8)) {<br> setflag(8);<br> use_media_proxy();
<br> };<br> };<br>}<br><br>route[5]{<br> rewritehost("Asterisk Server IP");<br> avp_write("i:45", "inv_timeout");<br> route(1);
<br>}<br><br>onreply_route[1] {<br><br> if ((isflagset(6) || isflagset(7)) &&<br> (status=~"(180)|(183)|2[0-9][0-9]")) {<br><br> if (!search("^Content-Length:[ ]*0")) {
<br> use_media_proxy();<br> };<br> };<br><br> if (client_nat_test("1")) {<br> fix_nated_contact();<br> };<br>}<br>----------------------------------
<br>sip.conf<br>----------------<br>[general]<br><br>port = 5060 ; Port to bind to (SIP is 5060)<br>bindaddr = <a href="http://0.0.0.0/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0
</a> ; Address to bind to (all addresses on machine)<br>context = default
<br><br>maxexpirey=180<br>defaultexpirey=160<br>autocreatepeer=yes<br>register => 1000:test@2xx.xxx.xxx.xxx/5678<br><br>[ser]<br>type=friend<br>username=1000<br>secret=test<br>fromdomain=2xx.xxx.xxx.xxx<br>host=2xx.xxx.xxx.xxx
<br><br>[5678]<br>type=friend<br>username=5678<br>host=dynamic<br>canreinvite=no<br>---------------------------<br>exte.conf<br>exten => 5678,1,Dial(SIP/5678,20)<br>exten => 5678,2,Voicemail2(u5678)<br>exten => 5678,3,MusicOnHold()
<br>exten => 5678,102,Voicemail2(b5678)<br>exten => 5678,103,Hangup<br><br><br>Nothing is happeing in my case that is I dont see any packet coming from ser to asterisk for asterisk to ser. please guide me.<br><br>thanks for your reply.
<br>arun<br></div><br><br><div><span class="gmail_quote">On 11/25/06, <b class="gmail_sendername">M. Emran</b> <<a href="mailto:monemran@gmail.com">monemran@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can u show SER & asterisk configuration or logs?<br><br>--<br>Regards<br>----------<br>M Emran<br>Managing Director<br>InSpiration Software Ltd.<br><br>E-mail: <a href="mailto:mohammademran@hotmail.com">mohammademran@hotmail.com
</a><br> <a href="mailto:monemran@gmail.com">monemran@gmail.com</a><br>Web: <a href="http://www.inspiresoftbd.com">www.inspiresoftbd.com</a><br>_______________________________________________<br>--Bandwidth and Colocation provided by
<a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>