Hi Bogdan,<br><br>yeah, something like that.<br><br>In my case it's <br><br>483 Too Many Hops<br><br>any idea why that might happen?<br><br>Also, I'm wondering if you anyone could help me out with these questions:<br>
<br>Does "uri" == "$ru"?<br>
What does the "myself" resolve to?<br>
Does "method" == "$rm"?<br>
Is the "msg:len" variable meant to be "$cl"?<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"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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 "483 Loop detected" ?<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'm landing in an infinite loop which only breaks out once I'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=*"/usr/lib/opensips/modules/"*<br>
||<br>
||loadmodule *"db_mysql.so"*<br>
||loadmodule *"signaling.so"*<br>
||loadmodule *"sl.so"*<br>
||loadmodule *"tm.so"*<br>
||loadmodule *"rr.so"*<br>
||loadmodule *"maxfwd.so"*<br>
||loadmodule *"usrloc.so"*<br>
||loadmodule *"registrar.so"*<br>
||loadmodule *"textops.so"*<br>
||loadmodule *"mi_fifo.so"*<br>
||loadmodule *"uri_db.so"*<br>
||loadmodule *"uri.so"*<br>
||loadmodule *"xlog.so"*<br>
||loadmodule *"acc.so"*<br>
||loadmodule *"auth.so"*<br>
||loadmodule *"auth_db.so"*<br>
||loadmodule *"alias_db.so"*<br>
||loadmodule *"domain.so"*<br>
||loadmodule *"presence.so"*<br>
||loadmodule *"presence_xml.so"*<br>
||<br>
||/####### Module Parameters ########<br>
/|/||||/|modparam(*"db_mysql"*, *"ping_interval"*, 600)<br>
||modparam(*"mi_fifo"*, *"fifo_name"*, *"/tmp/opensips_fifo"*)<br>
||modparam(*"rr"*, *"enable_full_lr"*, 1)<br>
||modparam(*"rr"*, *"append_fromtag"*, 0)<br>
||modparam(*"registrar"*, *"method_filtering"*, 1)<br>
||modparam(*"usrloc"*, *"db_mode"*, 2)<br>
||modparam(*"usrloc"*, *"db_url"*, *"mysql://opensips:opensipsrw@localhost/opensips"*)<br>
||modparam(*"uri_db"*, *"use_uri_table"*, 0)<br>
||modparam(*"uri_db"*, *"db_url"*, *""*)<br>
||modparam(*"acc"*, *"early_media"*, 1)<br>
||modparam(*"acc"*, *"report_ack"*, 1)<br>
||modparam(*"acc"*, *"report_cancels"*, 1)<br>
||modparam(*"acc"*, *"detect_direction"*, 0)<br>
||modparam(*"acc"*, *"failed_transaction_flag"*, 3)<br>
||modparam(*"acc"*, *"log_flag"*, 1)<br>
||modparam(*"acc"*, *"log_missed_flag"*, 2)<br>
||modparam(*"acc"*, *"db_flag"*, 1)<br>
||modparam(*"acc"*, *"db_missed_flag"*, 2)<br>
||modparam(*"auth_db"*, *"calculate_ha1"*, yes)<br>
||modparam(*"auth_db"*, *"password_column"*, *"password"*)<br>
||modparam(*"auth_db"*, *"db_url"*, *"mysql://opensips:opensipsrw@localhost/opensips"*)<br>
||modparam(*"auth_db"*, *"load_credentials"*, *""*)<br>
||modparam(*"alias_db"*, *"db_url"*, *"mysql://opensips:opensipsrw@localhost/opensips"*)<br>
||modparam(*"domain"*, *"db_url"*, *"mysql://opensips:opensipsrw@localhost/opensips"*)<br>
||modparam(*"domain"*, *"db_mode"*, 1) /# Use caching<br>
/|/||||/|modparam(*"presence|presence_xml"*, *"db_url"*, *"mysql://opensips:opensipsrw@localhost/opensips"*)<br>
||modparam(*"presence_xml"*, *"force_active"*, 1)<br></div></div>
||modparam(*"presence"*, *"server_address"*, *"sip:<a href="http://192.168.2.10:5060" target="_blank">192.168.2.10:5060</a> <<a href="http://192.168.2.10:5060" target="_blank">http://192.168.2.10:5060</a>>"*)<div>
<div></div><div class="h5"><br>
||<br>
||/####### Routing Logic ########<br>
/|/||||/|<br>
||/# main request routing logic<br>
/|/||||/|route{<br>
||<br>
|| xlog(*"L_INFO"*, *"->Main Routing Block START"*);<br>
||<br>
|| *if* (!mf_process_maxfwd_header(*"10"*)) {<br>
|| xlog(*"L_INFO"*, *"-->Exceeded Max-forwards"*);<br>
|| sl_send_reply(*"483"*,*"Too Many Hops"*);<br>
|| *exit*;<br>
|| }<br>
|| *if* (msg:len >= 2048) {<br>
|| xlog(*"L_INFO"*, *"-->Exceeded Message Size"*);<br>
|| sl_send_reply(*"513"*, *"Message too big"*);<br>
|| *exit*;<br>
|| }<br>
||<br>
|| *if* (!method==*"REGISTER"*) || record_route();<br>
|| || *if* (loose_route()) {<br>
|| append_hf(*"P-hint: rr-enforced\r\n"*);<br>
|| route(1);<br>
|| }<br>
|| || *if* (!uri==myself) {<br>
|| append_hf(*"P-hint: outbound\r\n"*);<br>
|| route(1);<br>
|| }<br>
||<br>
|| *if* (uri==myself) {<br>
|| *if* (method==*"REGISTER"*) {<br>
|| save(*"location"*);<br>
|| *exit*;<br>
|| }<br>
|| lookup(*"aliases"*);<br>
|| *if* (!uri==myself) {<br>
|| append_hf(*"P-hint: outbound alias\r\n"*);<br>
|| route(1);<br>
|| }<br>
|| *if* (!lookup(*"location"*)) {<br>
|| sl_send_reply(*"404"*, *"Not Found"*);<br>
|| *exit*;<br>
|| }<br>
|| append_hf(*"P-hint: userloc applied\r\n"*);<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'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'm also trying to find out what the "uri" and the "myself" resolve to. Have looked everywhere in the openSIPS cookbooks, but can't find anything. Are these actual variables?<br>
<br>
Does "uri" == "$ru"?<br>
What does the "myself" resolve to?<br>
Does "method" == "$rm"?<br>
Is the "msg:len" variable meant to be "$cl"?<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>