Hi guys,<div><br></div><div>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.</div>
<div><br></div><div>Here the config:</div><div>---------------</div><div><br></div><div><span class="Apple-style-span" style="font-family: verdana; font-size: 16px; "><pre style="font-size: 10pt; "><code style="font-size: 10pt; white-space: pre-wrap; ">log_stderror=<b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">no</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">log_facility=LOG_LOCAL0
</code><code style="font-size: 10pt; white-space: pre-wrap; "><b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">fork</font></b>=yes
</code><code style="font-size: 10pt; white-space: pre-wrap; ">children=4
</code><code style="font-size: 10pt; white-space: pre-wrap; ">debug=6
</code><code style="font-size: 10pt; white-space: pre-wrap; ">port=5060
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; ">####### Module Loading ########
</font></i></code><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; "><code style="font-size: 10pt; white-space: pre-wrap; "></code></font><code style="font-size: 10pt; white-space: pre-wrap; "></code></i><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; ">mpath=<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"/usr/lib/opensips/modules/"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_mysql.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"signaling.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"sl.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"tm.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"rr.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"maxfwd.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"usrloc.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"registrar.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"textops.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"mi_fifo.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"uri_db.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"uri.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"xlog.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"auth.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"auth_db.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"alias_db.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"domain.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"presence.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">loadmodule <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"presence_xml.so"</font></b>
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; ">####### Module Parameters ########
</font></i></code><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; "><code style="font-size: 10pt; white-space: pre-wrap; "></code></font><code style="font-size: 10pt; white-space: pre-wrap; "></code></i><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_mysql"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"ping_interval"</font></b>, 600)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"mi_fifo"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"fifo_name"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"/tmp/opensips_fifo"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"rr"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"enable_full_lr"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"rr"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"append_fromtag"</font></b>, 0)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"registrar"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"method_filtering"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"usrloc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_mode"</font></b>, 2)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"usrloc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_url"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"mysql://opensips:opensipsrw@localhost/opensips"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"uri_db"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"use_uri_table"</font></b>, 0)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"uri_db"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_url"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">""</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"early_media"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"report_ack"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"report_cancels"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"detect_direction"</font></b>, 0)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"failed_transaction_flag"</font></b>, 3)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"log_flag"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"log_missed_flag"</font></b>, 2)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_flag"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"acc"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_missed_flag"</font></b>, 2)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"auth_db"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"calculate_ha1"</font></b>, yes)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"auth_db"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"password_column"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"password"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"auth_db"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_url"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"mysql://opensips:opensipsrw@localhost/opensips"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"auth_db"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"load_credentials"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">""</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"alias_db"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_url"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"mysql://opensips:opensipsrw@localhost/opensips"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"domain"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_url"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"mysql://opensips:opensipsrw@localhost/opensips"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"domain"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_mode"</font></b>, 1) <i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; "># Use caching
</font></i></code><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; "><code style="font-size: 10pt; white-space: pre-wrap; "></code></font><code style="font-size: 10pt; white-space: pre-wrap; "></code></i><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"presence|presence_xml"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"db_url"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"mysql://opensips:opensipsrw@localhost/opensips"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"presence_xml"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"force_active"</font></b>, 1)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">modparam(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"presence"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"server_address"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"sip:<a href="http://192.168.2.10:5060">192.168.2.10:5060</a>"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; ">####### Routing Logic ########
</font></i></code><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; "><code style="font-size: 10pt; white-space: pre-wrap; "></code></font><code style="font-size: 10pt; white-space: pre-wrap; "></code></i><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; "># main request routing logic
</font></i></code><i style="font-size: 10pt; "><font color="#B22222" style="font-size: 10pt; "><code style="font-size: 10pt; white-space: pre-wrap; "></code></font><code style="font-size: 10pt; white-space: pre-wrap; "></code></i><code style="font-size: 10pt; white-space: pre-wrap; ">route{
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "> xlog(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"L_INFO"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"->Main Routing Block START"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (!mf_process_maxfwd_header(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"10"</font></b>)) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> xlog(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"L_INFO"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"-->Exceeded Max-forwards"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> sl_send_reply(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"483"</font></b>,<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"Too Many Hops"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">exit</font></b>;
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (msg:len >= 2048) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> xlog(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"L_INFO"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"-->Exceeded Message Size"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> sl_send_reply(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"513"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"Message too big"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">exit</font></b>;
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (!method==<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"REGISTER"</font></b>)
</code><code style="font-size: 10pt; white-space: pre-wrap; "> record_route();
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (loose_route()) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> append_hf(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"P-hint: rr-enforced\r\n"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> route(1);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (!uri==myself) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> append_hf(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"P-hint: outbound\r\n"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> route(1);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (uri==myself) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (method==<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"REGISTER"</font></b>) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> save(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"location"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">exit</font></b>;
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; "> lookup(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"aliases"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (!uri==myself) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> append_hf(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"P-hint: outbound alias\r\n"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> route(1);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (!lookup(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"location"</font></b>)) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> sl_send_reply(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"404"</font></b>, <b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"Not Found"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">exit</font></b>;
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; "> append_hf(<b style="font-size: 10pt; "><font color="#BC8F8F" style="font-size: 10pt; ">"P-hint: userloc applied\r\n"</font></b>);
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; "> route(1);
</code><code style="font-size: 10pt; white-space: pre-wrap; ">}
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; ">
</code><code style="font-size: 10pt; white-space: pre-wrap; ">route[1] {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">if</font></b> (!t_relay()) {
</code><code style="font-size: 10pt; white-space: pre-wrap; "> sl_reply_error();
</code><code style="font-size: 10pt; white-space: pre-wrap; "> }
</code><code style="font-size: 10pt; white-space: pre-wrap; "> <b style="font-size: 10pt; "><font color="#A020F0" style="font-size: 10pt; ">exit</font></b>;
</code><code style="font-size: 10pt; white-space: pre-wrap; ">}</code></pre><pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;">------------</span></pre><pre style="font-size: 10pt; ">
<span class="Apple-style-span" style="white-space: pre-wrap;">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.</span></pre><pre style="font-size: 10pt; ">
<span class="Apple-style-span" style="white-space: pre-wrap;">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?</span></pre>
<pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></pre><pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;">Does "uri" == "$ru"?</span></pre>
<pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;">What does the "myself" resolve to?</span></pre><pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;">Does "method" == "$rm"?</span></pre>
<pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;">Is the "msg:len" variable meant to be "$cl"?</span></pre><pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;">Any info is much appreciated.</span></pre>
<pre style="font-size: 10pt; "><span class="Apple-style-span" style="white-space: pre-wrap;">Cheers, Sebastian.</span></pre></span></div>