<div>Hello, </div><div><br></div>I&#39;m not quite sure I understood what you&#39;re asking, but i think what you want to do is:<div><br></div><div>&lt;extension name=&quot;FAX-LCL-7D&quot;&gt;</div><div>   &lt;condition field=&quot;caller_id_number&quot; expression=&quot;^((XXXXXXXXXX)|(XXXXXXXXXY)|(XXXXXXXXXZ))$&quot;/&gt;</div>
<div>   &lt;condition field=&quot;destination_number&quot; expression=&quot;^9(\d{7})$&quot;&gt;</div><div>     ( ... )</div><div><br></div><div>Is that it?</div><div><br></div><div>-Milena</div><div><br><div class="gmail_quote">
2010/5/5 Ken Fulmer <span dir="ltr">&lt;<a href="mailto:kenfulmer@icstechnologysolutions.com">kenfulmer@icstechnologysolutions.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal">We’d like to match on either Caller ID or ANI for
outbound faxes and lock them to PCMU. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Here’s what we’ve been using:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;extension name=&quot;FAX-LCL-7D&quot;&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition field=&quot;destination_number&quot;
expression=&quot;^9(\d{7})$&quot;&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;export&quot; data=&quot;sip_append_audio_sdp=a=fmtp:18
annexb=no&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;export&quot;
data=&quot;nolocal:absolute_codec_string=PCMU&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;bridge&quot; data=&quot;<a href="mailto:sofia/external/$0@X.X.X.X" target="_blank">sofia/external/$0@X.X.X.X</a>&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;set&quot; data=&quot;instant_ringback=true&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;</p>

<p class="MsoNormal">   &lt;/condition&gt;</p>

<p class="MsoNormal">&lt;/extension&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">If we use a list and break=on-false, searching stops after
the first non-match. If we use break=on-true, it stops after the first match,
and we get no digits to send upstream. If we use break=never, it applies the
digit match to all numbers, regardless of Caller ID. I realize this is all
normal behavior. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Is there a way to sort through a list of Caller ID’s,
match one, and then match the outbound digits? We’re trying to avoid
having to create a dial-plan entry for every Caller ID. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Here’s what it *might* look like with multiple
internal fax lines:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;extension name=&quot;FAX-LCL-7D&quot;&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;caller_id_number&quot; expression=&quot;^XXXXXXXXXX$&quot;/&gt;</p>

<p class="MsoNormal">   &lt;condition
field=&quot;destination_number&quot; expression=&quot;^9(\d{7})$&quot;&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;export&quot; data=&quot;sip_append_audio_sdp=a=fmtp:18
annexb=no&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;export&quot;
data=&quot;nolocal:absolute_codec_string=PCMU&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;bridge&quot; data=&quot;<a href="mailto:sofia/external/$0@X.X.X.X" target="_blank">sofia/external/$0@X.X.X.X</a>&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;set&quot; data=&quot;instant_ringback=true&quot;/&gt;</p>

<p class="MsoNormal">       &lt;action
application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;</p>

<p class="MsoNormal">   &lt;/condition&gt;</p>

<p class="MsoNormal">&lt;/extension&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Ken Fulmer</p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>