Hi,<br><br>I&#39;m setting up multiple OpenSER proxies in different locations to server a SIP domain. The proxies use a shared location database so they always know where to send requests to the client when an incoming call hits either one.<br>
The clients have the outbound proxy set to whichever one is closest to them. The problem is that because the clients are NAT they do not receive the request if the proxy IP that sends it is not the same as the one they have set as the outbound proxy. The NAT will reject the request because it does not arrive from the same IP that the connection was established to.<br>
<br>How can I make OpenSER relay requests to the &quot;home proxy&quot; of the user so that this can then forward it to the client? I have added an &quot;ob_proxy&quot; column to the subscriber table and tried using avp_db_load to get this value for use in a t_relay() but I&#39;m getting errors in OpenSER.<br>
<br>With the following config:<br><br>modparam(&quot;avpops&quot;,&quot;avp_url&quot;,&quot;mysql://user:pass@localhost/openser&quot;)<br>modparam(&quot;avpops&quot;, &quot;avp_table&quot;, &quot;dummy&quot;)<br>modparam(&quot;avpops&quot;,&quot;db_scheme&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;scheme1:username_col=username;value_col=ob_proxy;table=subscriber&quot;)<br><br>avp_db_load(&quot;$to&quot;,&quot;$avp(s:ob_proxy)/subscriber&quot;);<br><br>I&#39;m getting errors in Openser log:<br><br>/usr/local/sbin/openser[15470]: ERROR:mysql:db_mysql_submit_query: driver error: Unknown column &#39;value&#39; in &#39;field list&#39; <br>
/usr/local/sbin/openser[15470]: ERROR:mysql:db_mysql_query: error while submitting query <br>/usr/local/sbin/openser[15470]: ERROR:avpops:ops_dbload_avps: db_load failed <br><br><br>Does anyone know how to fix this or is there a better way of doing it?<br>
<br><br><br>