<div dir="ltr">hi you need to use expand.<div><br></div><div>expand originate {ignore_early_media=true}sofia/gateway/${distributor(test)}/9822312312 myExtension xml ext</div><div><br></div><div>will do.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 July 2018 at 16:39, Vishal Kakkar <span dir="ltr"><<a href="mailto:vishal.kakkar@gmail.com" target="_blank">vishal.kakkar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr"><span style="font-size:12.8px">Hi all,</span><br></div><div dir="ltr"><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">How can we use mode_distributor in originate command.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">originate {ignore_early_media=true}<wbr>sofia/gateway/${distributor(<span style="color:rgb(51,51,51);font-size:14px">te<wbr>st</span>)}/9822312312 myExtension xml ext</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Its giving following error on CLI:</div><div style="font-size:12.800000190734863px"><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(195,55,32)"><span style="font-variant-ligatures:no-common-ligatures">[ERR] mod_sofia.c:4408 Invalid Gateway '%{distributor(test)}'</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(195,55,32)"><br></p></div><div style="font-size:12.800000190734863px"><pre style="white-space:pre-wrap;margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px">Distributor config:</pre><pre style="white-space:pre-wrap;margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><configuration name="distributor.conf" description="Distributor Configuration">
  <lists>
    <list name="test" total-weight="10">
      <node name="foo1" weight="1"/>
      <node name="foo2" weight="9"/>
    </list>
  </lists>
</configuration></pre><pre style="white-space:pre-wrap;margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><br></pre><pre style="white-space:pre-wrap;margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px">Thanks</pre><span class="HOEnZb"><font color="#888888"><pre style="white-space:pre-wrap;margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px">Vishal.</pre></font></span></div></div>
</div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br></blockquote></div><br></div>