<div>Me parece también que los: </div>
<div><br>if (uri =~ .^sip:1[0-9]{10}@.*.) { </div>
<div>(Línea 321)</div>
<div>&nbsp;</div>
<div>debería ser:<br></div>
<div>if (uri =~ &quot;.^sip:1[0-9]{10}@.*.&quot;) {<br></div>
<div>&nbsp;</div>
<div>lo dicho en el mail anterior... sip wise</div>
<div class="gmail_quote">On Jan 17, 2008 12:41 PM, David Villasmil &lt;<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>O mejor aún:</div>
<div>&nbsp;</div>
<div>metete en: <a href="http://sipwise.com/" target="_blank">http://sipwise.com/</a></div>
<div>y crea uno con el wizard... Aunque es casi imposible de comprender para quienes estamos empezando. Asegurate de leer los comentarios del principio del config.</div>
<div>&nbsp;</div>
<div>:)<br></div>
<div>&nbsp;</div>
<div>Saludos<br></div>
<div>
<div></div>
<div class="Wj3C7c">
<div class="gmail_quote">On Jan 17, 2008 12:42 AM, Gustavo &lt;<a href="mailto:ggb@tid.es" target="_blank">ggb@tid.es</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hola,<br><br>Estás usando un fichero con configuración que no soporta tu versión de openser. &nbsp;Por ejemplo el parametro nat_flag del modulo registrar ya no existe. 
<br><br>¿Porqué no empiezas con un fichero de configuración más sencillo?<br><font color="#888888"><br>G:<br></font>
<div>
<div></div>
<div><br>On Wed, 2008-01-16 at 17:27 -0600, Ronmel Jiron wrote:<br>&gt; gracias por responder...al hacer<br>&gt; # pidof openser &nbsp; &nbsp; &nbsp;ó<br>&gt; # nmap -sU <a href="http://127.0.0.1/" target="_blank">127.0.0.1 </a>-p 5060
<br>&gt; &nbsp;no sale nada, o sea que no esta funcionando. Pero ahora he modificado<br>&gt; mi openser.cfg y manda 23 errores..( no soy muy bueno en esto).<br>&gt; Mi archivo openser.cfg es el siguiente:<br>&gt;<br>&gt; #<br>
&gt; # $Id: openser.cfg 1676 2007-02-21 13:16:34Z bogdan_iancu $<br>&gt; #<br>&gt; # simple quick-start config script<br>&gt; # Please refer to the Core CookBook at <a href="http://www.openser.org/dokuwiki/doku.php" target="_blank">
http://www.openser.org/dokuwiki/doku.php</a><br>&gt; # for a explanation of possible statements, functions and parameters.<br>&gt; #<br>&gt;<br>&gt; # ----------- global configuration parameters ------------------------<br>
&gt;<br>&gt; debug=3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# debug level (cmd line: -dddddddddd)<br>&gt; fork=yes<br>&gt; log_stderror=yes &nbsp; &nbsp;# (cmd line: -E)<br>&gt; children=4<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; port=5060<br>&gt; alias=<a href="http://200.30.177.115/" target="_blank">200.30.177.115</a><br>&gt;<br>&gt; dns=no<br>&gt; rev_dns=no<br>&gt;<br>&gt; # uncomment the following lines for TLS support 
<br>&gt; #disable_tls = 0<br>&gt; #listen = tls:your_IP:5061<br>&gt; listen = <a href="http://200.30.177.115/" target="_blank">200.30.177.115</a><br>&gt; #tls_verify_server = 1<br>&gt; #tls_verify_client = 1<br>&gt; #tls_require_client_certificate = 0 
<br>&gt; #tls_method = TLSv1<br>&gt; #tls_certificate = &quot;/usr/local/etc/openser/tls/user/user-cert.pem&quot;<br>&gt; #tls_private_key = &quot;/usr/local/etc/openser/tls/user/user-privkey.pem&quot;<br>&gt; #tls_ca_list = &quot;/usr/local/etc/openser/tls/user/user- 
calist.pem&quot;<br>&gt;<br>&gt; # ------------------ module loading ----------------------------------<br>&gt;<br>&gt; #set module path<br>&gt; mpath=&quot;/usr/local/lib/openser/modules/&quot;<br>&gt;<br>&gt; # Uncomment this if you want to use SQL database 
<br>&gt; #loadmodule &quot;mysql.so&quot;<br>&gt;<br>&gt; #loadmodule &quot;sl.so&quot;<br>&gt; #loadmodule &quot;tm.so&quot;<br>&gt; #loadmodule &quot;rr.so&quot;<br>&gt; #loadmodule &quot;maxfwd.so&quot;<br>&gt; #loadmodule &quot; 
usrloc.so&quot;<br>&gt; #loadmodule &quot;registrar.so&quot;<br>&gt; #loadmodule &quot;textops.so&quot;<br>&gt;<br>&gt; loadmodule &quot;mi_fifo.so&quot;<br>&gt;<br>&gt; modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/openser_fifo&quot;) 
<br>&gt; modparam(&quot;mi_fifo&quot;, &quot;fifo_mode&quot;, 0660)<br>&gt; modparam(&quot;mi_fifo&quot;, &quot;fifo_group&quot;, &quot;openser&quot;)<br>&gt; modparam(&quot;mi_fifo&quot;, &quot;fifo_user&quot;, &quot;openser&quot;) 
<br>&gt; modparam(&quot;mi_fifo&quot;, &quot;reply_dir&quot;, &quot;/tmp/&quot;)<br>&gt; modparam(&quot;mi_fifo&quot;, &quot;reply_indent&quot;, &quot;\t&quot;)<br>&gt;<br>&gt;<br>&gt; #fifo=&quot;/tmp/openser_fifo&quot;<br>
&gt; #fifo_db_url=&quot;mysql://openser:openserrw@localhost/openser&quot;<br>&gt;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/mysql.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/sl.so&quot;<br>
&gt; loadmodule &quot;/usr/local/lib/openser/modules/tm.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/rr.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/maxfwd.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/usrloc.so&quot; 
<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/registrar.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/auth.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/auth_db.so&quot;<br>
&gt; loadmodule &quot;/usr/local/lib/openser/modules/uri.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/uri_db.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/mediaproxy.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/nathelper.so&quot; 
<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/textops.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/domain.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/xlog.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/uac.so&quot; 
<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/speeddial.so&quot;<br>&gt; loadmodule &quot;/usr/local/lib/openser/modules/avpops.so&quot;<br>&gt;<br>&gt; # Uncomment this if you want digest authentication<br>&gt; # 
mysql.so must be loaded !<br>&gt; #loadmodule &quot;auth.so&quot;<br>&gt; #loadmodule &quot;auth_db.so&quot;<br>&gt;<br>&gt; # ----------------- setting module-specific parameters ---------------<br>&gt;<br>&gt; modparam(&quot;usrloc|auth_db|domain|speeddial|acc&quot;, &quot;db_url&quot;, 
<br>&gt; &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>&gt; modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, 1)<br>&gt; modparam(&quot;auth_db&quot;, &quot;use_domain&quot;, 0)<br>&gt; modparam(&quot;domain&quot;, &quot;db_mode&quot;, 1) 
<br>&gt; modparam(&quot;nathelper&quot;, &quot;rtpproxy_disable&quot;, 1)<br>&gt; modparam(&quot;nathelper&quot;, &quot;natping_interval&quot;, 60)<br>&gt; modparam(&quot;mediaproxy&quot;,&quot;natping_interval&quot;, 30) 
<br>&gt; modparam(&quot;mediaproxy&quot;,&quot;mediaproxy_socket&quot;, &quot;/var/run/mediaproxy.sock&quot;)<br>&gt; modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br>&gt; modparam(&quot;usrloc&quot;, &quot;use_domain&quot;, 0) 
<br>&gt; modparam(&quot;registrar&quot;, &quot;default_expires&quot;, 60)<br>&gt; modparam(&quot;registrar&quot;, &quot;min_expires&quot;, 30)<br>&gt; modparam(&quot;registrar&quot;, &quot;nat_flag&quot;, 6)<br>&gt; modparam(&quot;registrar&quot;, &quot;use_domain&quot;, 0) 
<br>&gt; modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br>&gt; modparam(&quot;auth&quot;, &quot;rpid_suffix&quot;, &quot;;party=calling;id-type=subscriber;screen=yes&quot;)<br>&gt; modparam(&quot;auth&quot;, &quot;rpid_avp&quot;, &quot;s:rpid&quot;) 
<br>&gt;<br>&gt; # -- mi_fifo params --<br>&gt;<br>&gt; modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/openser_fifo&quot;)<br>&gt;<br>&gt; # -- usrloc params --<br>&gt;<br>&gt; #modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, &nbsp; 0) 
<br>&gt;<br>&gt; # Uncomment this if you want to use SQL database<br>&gt; # for persistent storage and comment the previous line<br>&gt; #modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br>&gt;<br>&gt; # -- auth params -- 
<br>&gt; # Uncomment if you are using auth module<br>&gt; #<br>&gt; #modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>&gt; #<br>&gt; # If you set &quot;calculate_ha1&quot; parameter to yes (which true in this config), 
<br>&gt; # uncomment also the following parameter)<br>&gt; #<br>&gt; #modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>&gt;<br>&gt; # -- rr params --<br>&gt; # add value to ;lr param to make some broken UAs happy 
<br>&gt; #modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br>&gt;<br>&gt; # ------------------------- &nbsp;request routing logic -------------------<br>&gt;<br>&gt; # main routing logic<br>&gt;<br>&gt; route{<br>&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; # initial sanity checks -- messages with<br>&gt; &nbsp; &nbsp; &nbsp; # max_forwards==0, or excessively long requests<br>&gt; &nbsp; &nbsp; &nbsp; if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<br>&gt; &nbsp; &nbsp; &nbsp; };<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; if (msg:len &gt;= &nbsp;2048 ) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<br>&gt; &nbsp; &nbsp; &nbsp; }; 
<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; # we record-route all messages -- to make sure that<br>&gt; &nbsp; &nbsp; &nbsp; # subsequent messages will go through our proxy; that&#39;s<br>&gt; &nbsp; &nbsp; &nbsp; # particularly good if upstream and downstream entities<br>
&gt; &nbsp; &nbsp; &nbsp; # use different transport protocol<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; if (method == &quot;INVITE&quot; &amp;&amp; client_nat_test(&quot;3&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Must add valid IP address below<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;record_route_preset(&quot; 
<a href="http://200.30.177.115:5060/" target="_blank">200.30.177.115:5060</a>;nat=yes&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; } else if (method != &quot;REGISTER&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; record_route();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; 
<br>&gt; &nbsp; &nbsp; &nbsp; # subsequent messages withing a dialog should take the<br>&gt; &nbsp; &nbsp; &nbsp; # path determined by record-routing<br>&gt; &nbsp; &nbsp; &nbsp; if (loose_route()) {<br>&gt; if (loose_route()) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (has_totag() &amp;&amp; (method == &quot;INVITE&quot; || method == &quot;ACK&quot;)) { 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (client_nat_test(&quot;3&quot;) ||<br>&gt; search(&quot;^Route:.*;nat=yes&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(6);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; use_media_proxy(); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # mark routing logic in request<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##append_hf(&quot;P-hint: rr-enforced\r\n&quot;); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##route(1);<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; if (!uri==myself) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # mark routing logic in request<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##append_hf(&quot;P-hint: outbound\r\n&quot;); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # if you have some interdomain connections via TLS<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #if(uri=~&quot;@tls_domain1.net&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; t_relay(&quot;tls:<a href="http://domain1.net/" target="_blank">
 domain1.net</a>&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; exit;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #} else if(uri=~&quot;@tls_domain2.net&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; t_relay(&quot;tls:<a href="http://domain2.net/" target="_blank">
 domain2.net</a>&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; exit;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #}<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##route(1);<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; # if the request is for other domain use UsrLoc<br>&gt; &nbsp; &nbsp; &nbsp; # (in case, it does not work, use the following command 
<br>&gt; &nbsp; &nbsp; &nbsp; # with proper names and addresses in it)<br>&gt; &nbsp; &nbsp; &nbsp; if (uri==myself) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (method == &quot;BYE&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(4);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return; 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (method == &quot;CANCEL&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(4);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (method == &quot;INVITE&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(3); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else &nbsp;if (method == &quot;REGISTER&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(2);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (method == &quot;NOTIFY&quot;) { 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;200&quot;, &quot;Understood&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (method == &quot;OPTIONS&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;200&quot;, &quot;Got it&quot;); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>&gt; }<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##if (method==&quot;REGISTER&quot;) {<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Uncomment this if you want to use digest authentication 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #if (!www_authorize(&quot;<a href="http://openser.org/" target="_blank">openser.org</a>&quot;, &quot;subscriber&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; www_challenge(&quot;<a href="http://openser.org/" target="_blank">
 openser.org</a>&quot;, &quot;0&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; exit;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #};<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;save(&quot;location&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;exit;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##};<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##lookup(&quot;aliases&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##if (!uri==myself) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;append_hf(&quot;P-hint: outbound alias\r\n&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##};<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # native SIP destinations are handled using our USRLOC DB<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##if (!lookup(&quot;location&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;exit;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##};<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##append_hf(&quot;P-hint: usrloc applied\r\n&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; ##};<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; ##route(1);<br>&gt; ##}<br>&gt;<br>&gt;<br>
&gt; route[1] {<br>&gt; &nbsp; &nbsp; &nbsp; t_on_reply(&quot;1&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (!t_relay()) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (method==&quot;INVITE&quot; || method==&quot;ACK&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end_media_session(); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_reply_error();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; }<br>&gt; &nbsp; &nbsp; &nbsp; # send it out now; use stateful forwarding as it works reliably<br>&gt; &nbsp; &nbsp; &nbsp; # even for UDP2TCP<br>&gt; &nbsp; &nbsp; &nbsp; ##if (!t_relay()) { 
<br>&gt; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;sl_reply_error();<br>&gt; &nbsp; &nbsp; &nbsp; ##};<br>&gt; &nbsp; &nbsp; &nbsp; ##exit;<br>&gt; ##}<br>&gt;<br>&gt; # REGISTER Message Handling<br>&gt; # -------------------------<br>&gt; route[2] {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (!search(&quot;^Contact:\ +\*&quot;) &amp;&amp; client_nat_test(&quot;7&quot;)) { 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(6);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fix_nated_register();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; force_rport();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;100&quot;, &quot;Trying&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (!www_authorize(&quot;&quot;,&quot;subscriber&quot;)) { 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; www_challenge(&quot;&quot;,&quot;0&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (!check_to()) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;401&quot;, &quot;Unauthorized&quot;); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; consume_credentials();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (!save(&quot;location&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_reply_error();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; }<br>&gt;<br>
&gt; # INVITE Message Handling<br>&gt; # ----------------------------------<br>&gt; route[3] {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Test for nat, perhaps fix headers<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (client_nat_test(&quot;3&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(7); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; force_rport();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fix_nated_contact();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; # 3 and 4 digits URIs are sent to our Asterisk PBX<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if ((uri =~ &quot;^sip:[0-9]{3}@.*&quot;) || (uri =~ &quot;^sip:[0-9]{4}@.*&quot;)) { 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewritehost(&quot;<a href="http://pbx.valid.host.com:5060/" target="_blank">pbx.valid.host.com:5060</a>&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; use_media_proxy();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return; 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Any URI that begins with 1 plus 10 digits authenticate and pass on<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; # to our SIP Provider<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (uri =~ .^sip:1[0-9]{10}@.*.) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Authenticate these calls 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!proxy_authorize(.&quot;,.subscriber.)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_challenge(.&quot;,.0.);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (!check_from()) { 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(.403., .Use From ID.);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; consume_credentials();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewritehostport(.proxy- 
<a href="http://1.nufone.net:5060/" target="_blank">1.nufone.net:5060</a>.);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (!lookup(.location.)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(.404., .User Not Found, Sorry.); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; # If NAT is previously detected, proxy<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (isflagset(6) || isflagset(7)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; use_media_proxy();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; }; 
<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>&gt; }<br>&gt;<br>&gt; # CANCEL and BYE Message Handling<br>&gt; # ----------------------------------<br>&gt; route[4] {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (client_nat_test(&quot;3&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(7); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; force_rport();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fix_nated_contact();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; end_media_session();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>&gt;<br>&gt; }<br>&gt;<br>&gt;<br>&gt; onreply_route[1] { 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if ((isflagset(6) || isflagset(7)) &amp;&amp;<br>&gt; (status=~&quot;(180)|(183)|2[0-9][0-9]&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!search(&quot;^Content-Length:\ +0&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; use_media_proxy(); 
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; if (client_nat_test(&quot;1&quot;)) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fix_nated_contact();<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt; }<br>&gt;<br>&gt;<br>&gt; y los mensajes de error son: 
<br>&gt;<br>&gt; &nbsp;0(16987) set_mod_param_regex: parameter &lt;nat_flag&gt; not found in<br>&gt; module &lt;registrar&gt;<br>&gt; &nbsp;0(16987) parse error (107,19-20): Can&#39;t set module parameter<br>&gt; &nbsp;0(16987) set_mod_param_regex: parameter &lt;use_domain&gt; not found in 
<br>&gt; module &lt;registrar&gt;<br>&gt; &nbsp;0(16987) parse error (108,19-20): Can&#39;t set module parameter<br>&gt; &nbsp;0(16987) parse error (259,6-7): syntax error<br>&gt; &nbsp;0(16987) parse error (259,6-7): missing &#39;(&#39; or &#39;)&#39; ? 
<br>&gt; &nbsp;0(16987) parse error (259,6-7): bad command: missing &#39;;&#39;?<br>&gt; &nbsp;0(16987) parse error (259,7-8): bad command!)<br>&gt; &nbsp;0(16987) parse error (259,8-9): bad command!)<br>&gt; &nbsp;0(16987) parse error (259,10-11): bad command!) 
<br>&gt; &nbsp;0(16987) parse error (319,20-21): syntax error<br>&gt; &nbsp;0(16987) parse error (319,20-21): string or MYSELF expected<br>&gt; &nbsp;0(16987) parse error (319,20-21): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,21-22): bad command!) 
<br>&gt; &nbsp;0(16987) parse error (319,25-26): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,25-26): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,26-27): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,27-28): bad command!) 
<br>&gt; &nbsp;0(16987) parse error (319,28-29): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,29-30): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,30-31): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,31-32): bad command!) 
<br>&gt; &nbsp;0(16987) parse error (319,32-33): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,33-35): bad command!)<br>&gt; &nbsp;0(16987) parse error (319,36-37):<br>&gt; ERROR: bad config file (23 errors)<br>&gt; &nbsp;0(16987) INFO:mi_fifo:mi_destroy:memory for the child&#39;s mi_fifo_pid 
<br>&gt; was not allocated -&gt; nothing to destroy<br>&gt;<br>&gt; ayuda por favor<br>&gt;<br>&gt; 2008/1/16, Iñaki Baz Castillo &lt;<a href="mailto:ibc@aliax.net" target="_blank">ibc@aliax.net</a>&gt;:<br>&gt; &gt; El Miércoles, 16 de Enero de 2008, Ronmel Jiron escribió: 
<br>&gt; &gt; &gt; Hola, soy nuenvo en Openser. he instalado OpenSER siguiendo los pasos<br>&gt; &gt; &gt; encontrados en la web. He modificado el archivo openser.cfg de<br>&gt; &gt; &gt; diferentes maneras, lo hice con el generador de sipwise. De ninguna 
<br>&gt; &gt; &gt; manera me ha funcionado, o sea que cuando hago:<br>&gt; &gt; &gt; # openser start<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; El resultado es:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; INFO:mi_fifo:mi_destroy:memory for the child&#39;s mi_fifo_pid was not 
<br>&gt; &gt; &gt; allocated -&gt; nothing to destroy.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; No se que esta pasando, ayuda por favor<br>&gt; &gt;<br>&gt; &gt; Es un &quot;INFO&quot;, ni siquiera un &quot;WARGING&quot; y mucho menos un &quot;ERROR&quot;. Ignóralo. 
<br>&gt; &gt; ¿Está funcionando OpenSer?<br>&gt; &gt;<br>&gt; &gt; ~# pidof openser<br>&gt; &gt;<br>&gt; &gt; ~# nmap -sU <a href="http://127.0.0.1/" target="_blank">127.0.0.1</a> -p 5060<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Iñaki Baz Castillo 
<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users-es mailing list<br>&gt; &gt; <a href="mailto:Users-es@lists.openser.org" target="_blank">Users-es@lists.openser.org</a><br>&gt; &gt; 
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users-es" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users-es</a><br>&gt; &gt;<br>&gt;<br>&gt;<br><br><br><br>_______________________________________________
<br>Users-es mailing list<br><a href="mailto:Users-es@lists.openser.org" target="_blank">Users-es@lists.openser.org</a><br><a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users-es" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users-es
</a><br></div></div></blockquote></div><br></div></div></blockquote></div><br>