Good morning;<br><br>I&#39;ve been fiddling with dispatcher and I would like to maintain several dispatcher sets that get selected based on the $ru. The $ru would be parsed, a dispatcher set placed in a variable, and then ds_select_domain() would be called upon the variable... except ds_select_domain() doesn&#39;t appear to work with being called using variables... or perhaps I&#39;m doing something wrong.<br>
<br>The $ru would look something like this: &quot;+12125551212@dispatcher1001&quot;, which I&#39;m using the following directives to handle:<br><br>if ($ru =~ &quot;dispatcher&quot;) {<br>    $var(beep) = $(ru{s.substr,27,4});<br>
<br>    xlog(&quot;L_INFO&quot;, &quot;[$Tf] Found dispatcher, set: $var(beep)\n&quot;);<br><br>    if (!ds_select_domain(&quot;$var(beep)&quot;,&quot;4&quot;)) {<br>        t_reply(&quot;503&quot;, &quot;Unable to location dispatcher set requested&quot;);<br>
        return;<br>        }<br><br>    route(1);<br>    return;<br>    }<br><br>The $var(beep) is being parsed out correctly (The xlog() messages show as such), but get the following:<br>ERROR:core:fixup_get_ivalue: no valid PV value found (error in scripts)<br>
ERROR:dispatcher:w_ds_select_domain: no dst set value<br>ERROR:tm:w_t_reply: failed to send a t_reply to a message for which no transaction-state has been established<br><br>I suspect the important one in the list above is the first, where the get_ivalue is failing, but I&#39;m not sure. I suspect if it can tell it&#39;s a variable then I probably am doing something amiss, but I sure would appreciate if some learned soul could tell me what I&#39;m doing wrong.<br>
<br>My thanks;<br><br> - Jock<br>