Hi,<div name="sig_606433cd16" style="margin:0pt"></div><div><br></div><div>I cannot get fetch the data in db_data from the dialplan. The ODBC is running and has been tested. </div><div><br></div><div>I have not found any documentation on what the &#39;hostname&#39; column in the db_data table should be - so I just put what the server has right now (&#39;freeswitch01&#39;) - is that ok?</div>
<div><br></div><div>This is what I am doing in the dialplan:</div><div><br></div><div><div>   &lt;extension name=&quot;incoming_did&quot;&gt;</div><div>      &lt;condition field=&quot;${sip_received_ip}&quot; expression=&quot;^1.2.3.\d+$&quot;/&gt;</div>
<div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d+)$&quot;&gt;</div><div>         &lt;action application=&quot;info&quot;/&gt;</div><div>         &lt;action application=&quot;set&quot; data=&quot;sip_to_user=${db(select/forward/${sip_to_user})}&quot;/&gt;</div>
<div>         &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/main_trunk/9999$1&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>   &lt;/extension&gt;</div></div><div><br></div><div>1.2.3 are the first four digits of the IP address I get the call from - this works, have tested it with a hardcoded forward.</div>
<div><br></div><div>The call sent to FS has the To User set to 2000000. I use this to identify the user sending the call, and then want to look in db_data to find out which number the call should be forwarded to. So 2000000 would be the data_key and the value/data is the number to forward to. </div>
<div>What I want to get out of it, is that a bridge is made to sofia/gateway/main_trunk/9999forward_number, where the forward_number is the value/data retrieved from db_data, and 9999 is the prefix for the termination partner (this works, has been tested).</div>
<div><br></div><div>Input would really be appreciated!</div><div><br></div><div>Thanks,</div><div>A.</div>