Hi Bogdan,<br><br>yeah, something like that.<br><br>In my case it&#39;s <br><br>483 Too Many Hops<br><br>any idea why that might happen?<br><br>Also, I&#39;m wondering if you anyone could help me out with these questions:<br>

<br>Does &quot;uri&quot; == &quot;$ru&quot;?<br>
What does the &quot;myself&quot; resolve to?<br>
Does &quot;method&quot; == &quot;$rm&quot;?<br>
Is the &quot;msg:len&quot; variable meant to be &quot;$cl&quot;?<br><br>
Any info is much appreciated.<br><br>
Cheers, Sebastian.<br><br><br><br><br><br><div class="gmail_quote">On Wed, Apr 15, 2009 at 11:31 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Sebastian,<br>
<br>
You mean you get the &quot;483 Loop detected&quot; ?<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Sebastian Krueger wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi guys,<br>
<br>
am new to openSIPS, and have hacked together this configuration file. It looks like I&#39;m landing in an infinite loop which only breaks out once I&#39;ve read the maximum number of forwards. I got it from the openSER book and am trying to rewrite it to openSIPS.<br>


<br>
Here the config:<br>
---------------<br>
<br>
|log_stderror=*no*<br>
||log_facility=LOG_LOCAL0<br>
||*fork*=yes<br>
||children=4<br>
||debug=6<br>
||port=5060<br>
||<br>
||/####### Module Loading ########<br>
/|/||||/|<br>
||mpath=*&quot;/usr/lib/opensips/modules/&quot;*<br>
||<br>
||loadmodule *&quot;db_mysql.so&quot;*<br>
||loadmodule *&quot;signaling.so&quot;*<br>
||loadmodule *&quot;sl.so&quot;*<br>
||loadmodule *&quot;tm.so&quot;*<br>
||loadmodule *&quot;rr.so&quot;*<br>
||loadmodule *&quot;maxfwd.so&quot;*<br>
||loadmodule *&quot;usrloc.so&quot;*<br>
||loadmodule *&quot;registrar.so&quot;*<br>
||loadmodule *&quot;textops.so&quot;*<br>
||loadmodule *&quot;mi_fifo.so&quot;*<br>
||loadmodule *&quot;uri_db.so&quot;*<br>
||loadmodule *&quot;uri.so&quot;*<br>
||loadmodule *&quot;xlog.so&quot;*<br>
||loadmodule *&quot;acc.so&quot;*<br>
||loadmodule *&quot;auth.so&quot;*<br>
||loadmodule *&quot;auth_db.so&quot;*<br>
||loadmodule *&quot;alias_db.so&quot;*<br>
||loadmodule *&quot;domain.so&quot;*<br>
||loadmodule *&quot;presence.so&quot;*<br>
||loadmodule *&quot;presence_xml.so&quot;*<br>
||<br>
||/####### Module Parameters ########<br>
/|/||||/|modparam(*&quot;db_mysql&quot;*, *&quot;ping_interval&quot;*, 600)<br>
||modparam(*&quot;mi_fifo&quot;*, *&quot;fifo_name&quot;*, *&quot;/tmp/opensips_fifo&quot;*)<br>
||modparam(*&quot;rr&quot;*, *&quot;enable_full_lr&quot;*, 1)<br>
||modparam(*&quot;rr&quot;*, *&quot;append_fromtag&quot;*, 0)<br>
||modparam(*&quot;registrar&quot;*, *&quot;method_filtering&quot;*, 1)<br>
||modparam(*&quot;usrloc&quot;*, *&quot;db_mode&quot;*,   2)<br>
||modparam(*&quot;usrloc&quot;*, *&quot;db_url&quot;*, *&quot;mysql://opensips:opensipsrw@localhost/opensips&quot;*)<br>
||modparam(*&quot;uri_db&quot;*, *&quot;use_uri_table&quot;*, 0)<br>
||modparam(*&quot;uri_db&quot;*, *&quot;db_url&quot;*, *&quot;&quot;*)<br>
||modparam(*&quot;acc&quot;*, *&quot;early_media&quot;*, 1)<br>
||modparam(*&quot;acc&quot;*, *&quot;report_ack&quot;*, 1)<br>
||modparam(*&quot;acc&quot;*, *&quot;report_cancels&quot;*, 1)<br>
||modparam(*&quot;acc&quot;*, *&quot;detect_direction&quot;*, 0)<br>
||modparam(*&quot;acc&quot;*, *&quot;failed_transaction_flag&quot;*, 3)<br>
||modparam(*&quot;acc&quot;*, *&quot;log_flag&quot;*, 1)<br>
||modparam(*&quot;acc&quot;*, *&quot;log_missed_flag&quot;*, 2)<br>
||modparam(*&quot;acc&quot;*, *&quot;db_flag&quot;*, 1)<br>
||modparam(*&quot;acc&quot;*, *&quot;db_missed_flag&quot;*, 2)<br>
||modparam(*&quot;auth_db&quot;*, *&quot;calculate_ha1&quot;*, yes)<br>
||modparam(*&quot;auth_db&quot;*, *&quot;password_column&quot;*, *&quot;password&quot;*)<br>
||modparam(*&quot;auth_db&quot;*, *&quot;db_url&quot;*, *&quot;mysql://opensips:opensipsrw@localhost/opensips&quot;*)<br>
||modparam(*&quot;auth_db&quot;*, *&quot;load_credentials&quot;*, *&quot;&quot;*)<br>
||modparam(*&quot;alias_db&quot;*, *&quot;db_url&quot;*, *&quot;mysql://opensips:opensipsrw@localhost/opensips&quot;*)<br>
||modparam(*&quot;domain&quot;*, *&quot;db_url&quot;*, *&quot;mysql://opensips:opensipsrw@localhost/opensips&quot;*)<br>
||modparam(*&quot;domain&quot;*, *&quot;db_mode&quot;*, 1)   /# Use caching<br>
/|/||||/|modparam(*&quot;presence|presence_xml&quot;*, *&quot;db_url&quot;*, *&quot;mysql://opensips:opensipsrw@localhost/opensips&quot;*)<br>
||modparam(*&quot;presence_xml&quot;*, *&quot;force_active&quot;*, 1)<br></div></div>
||modparam(*&quot;presence&quot;*, *&quot;server_address&quot;*, *&quot;sip:<a href="http://192.168.2.10:5060" target="_blank">192.168.2.10:5060</a> &lt;<a href="http://192.168.2.10:5060" target="_blank">http://192.168.2.10:5060</a>&gt;&quot;*)<div>

<div></div><div class="h5"><br>
||<br>
||/####### Routing Logic ########<br>
/|/||||/|<br>
||/# main request routing logic<br>
/|/||||/|route{<br>
||<br>
||        xlog(*&quot;L_INFO&quot;*, *&quot;-&gt;Main Routing Block START&quot;*);<br>
||<br>
||        *if* (!mf_process_maxfwd_header(*&quot;10&quot;*)) {<br>
||                xlog(*&quot;L_INFO&quot;*, *&quot;--&gt;Exceeded Max-forwards&quot;*);<br>
||                sl_send_reply(*&quot;483&quot;*,*&quot;Too Many Hops&quot;*);<br>
||                *exit*;<br>
||        }<br>
||        *if* (msg:len &gt;= 2048) {<br>
||                xlog(*&quot;L_INFO&quot;*, *&quot;--&gt;Exceeded Message Size&quot;*);<br>
||                sl_send_reply(*&quot;513&quot;*, *&quot;Message too big&quot;*);<br>
||                *exit*;<br>
||        }<br>
||<br>
||        *if* (!method==*&quot;REGISTER&quot;*) ||                record_route();<br>
||        ||        *if* (loose_route()) {<br>
||                append_hf(*&quot;P-hint: rr-enforced\r\n&quot;*);<br>
||                route(1);<br>
||        }<br>
||        ||        *if* (!uri==myself) {<br>
||                append_hf(*&quot;P-hint: outbound\r\n&quot;*);<br>
||                route(1);<br>
||        }<br>
||<br>
||        *if* (uri==myself) {<br>
||                *if* (method==*&quot;REGISTER&quot;*) {<br>
||                        save(*&quot;location&quot;*);<br>
||                        *exit*;<br>
||                }<br>
||                lookup(*&quot;aliases&quot;*);<br>
||                *if* (!uri==myself) {<br>
||                        append_hf(*&quot;P-hint: outbound alias\r\n&quot;*);<br>
||                        route(1);<br>
||                }<br>
||                *if* (!lookup(*&quot;location&quot;*)) {<br>
||                        sl_send_reply(*&quot;404&quot;*, *&quot;Not Found&quot;*);<br>
||                        *exit*;<br>
||                }<br>
||                append_hf(*&quot;P-hint: userloc applied\r\n&quot;*);<br>
||        }<br>
||        route(1);<br>
||}<br>
||<br>
||<br>
||route[1] {<br>
||        *if* (!t_relay()) {<br>
||                sl_reply_error();<br>
||        }<br>
||        *exit*;<br>
||}|<br>
------------<br>
I&#39;m trying to create the most simple possible configuration file. No features, except for being able to make calls and use a mysql backend.<br>
I&#39;m also trying to find out what the &quot;uri&quot; and the &quot;myself&quot; resolve to. Have looked everywhere in the openSIPS cookbooks, but can&#39;t find anything. Are these actual variables?<br>
<br>
Does &quot;uri&quot; == &quot;$ru&quot;?<br>
What does the &quot;myself&quot; resolve to?<br>
Does &quot;method&quot; == &quot;$rm&quot;?<br>
Is the &quot;msg:len&quot; variable meant to be &quot;$cl&quot;?<br>
Any info is much appreciated.<br>
Cheers, Sebastian.<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
  <br>
</blockquote>
<br>
</blockquote></div><br>