<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<br><br>I'm new OpenSIPS, have some questions here hope anyone can help!<br><br>Question 1,<br><br>I'm trying to use some of the functions in usrloc module, but for some reason if I use those from "Available Functions" part, the opensips won't start and give an error:<br><br>Jan 20 14:11:53 [22878] CRITICAL:core:yyerror: parse error in config file, line 405, column 56-57: unknown command &lt;ul_get_ucontact&gt;, missing loadmodule?<br><br>The usrloc module is definitely loaded, and it will start as long as I avoid using those "Available Functions". I tried some other modules it will lead to same error.<br><br>Question 2,<br><br>What is the simplest way to bridge a call based on username and domain?<br><br>I was trying to make a simple experiment I used to do in Freeswitch,<br><br>==========================<br>Have 1000,1001,1002 registered,<br><br>When 1000 calls 9999, the calls will be bridged to 1001 or 1002 based on different time period.<br>==========================<br><br>While in Freeswitch, it would be as simple as "bridge&nbsp;<a href="mailto:xxxx@domain.com">xxxx@domain.com</a>", and then freeswitch will lookup contact information and forward the call.<br><br>But in OpenSIPS, I only succeed in forwarding calls by change the $du to the exact contact uri, which is "<a href="sip:xxxx@ip-of-the-phone:port">sip:xxxx@ip-of-the-phone:port</a>", the call r_relay(). In order to do this, I need call a perl script to lookup the location database to find a match…&nbsp;<br><br>I'm 99% sure I'm doing wrong here… there must be a way way easier than that, but so far I can't find it….<br><br>Please help…<br><br>Thanks,<br>Xi</body></html>