Hi all,

How can we use mode_distributor in originate command.

originate {ignore_early_media=true}sofia/gateway/${distributor(test)}/9822312312 myExtension xml ext

Its giving following error on CLI:

[ERR] mod_sofia.c:4408 Invalid Gateway '%{distributor(test)}'


Distributor config:
<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>

Thanks
Vishal.