<div>Hello, </div><div><br></div>I'm not quite sure I understood what you're asking, but i think what you want to do is:<div><br></div><div><extension name="FAX-LCL-7D"></div><div> <condition field="caller_id_number" expression="^((XXXXXXXXXX)|(XXXXXXXXXY)|(XXXXXXXXXZ))$"/></div>
<div> <condition field="destination_number" expression="^9(\d{7})$"></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"><<a href="mailto:kenfulmer@icstechnologysolutions.com">kenfulmer@icstechnologysolutions.com</a>></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"><extension name="FAX-LCL-7D"></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition field="destination_number"
expression="^9(\d{7})$"></p>
<p class="MsoNormal"> <action
application="export" data="sip_append_audio_sdp=a=fmtp:18
annexb=no"/></p>
<p class="MsoNormal"> <action
application="export"
data="nolocal:absolute_codec_string=PCMU"/></p>
<p class="MsoNormal"> <action
application="set" data="hangup_after_bridge=true"/></p>
<p class="MsoNormal"> <action
application="bridge" data="<a href="mailto:sofia/external/$0@X.X.X.X" target="_blank">sofia/external/$0@X.X.X.X</a>"/></p>
<p class="MsoNormal"> <action
application="set" data="instant_ringback=true"/></p>
<p class="MsoNormal"> <action
application="set" data="ringback=${us-ring}"/></p>
<p class="MsoNormal"> </condition></p>
<p class="MsoNormal"></extension></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"><extension name="FAX-LCL-7D"></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/></p>
<p class="MsoNormal"> <condition
field="destination_number" expression="^9(\d{7})$"></p>
<p class="MsoNormal"> <action
application="export" data="sip_append_audio_sdp=a=fmtp:18
annexb=no"/></p>
<p class="MsoNormal"> <action
application="export"
data="nolocal:absolute_codec_string=PCMU"/></p>
<p class="MsoNormal"> <action
application="set" data="hangup_after_bridge=true"/></p>
<p class="MsoNormal"> <action
application="bridge" data="<a href="mailto:sofia/external/$0@X.X.X.X" target="_blank">sofia/external/$0@X.X.X.X</a>"/></p>
<p class="MsoNormal"> <action
application="set" data="instant_ringback=true"/></p>
<p class="MsoNormal"> <action
application="set" data="ringback=${us-ring}"/></p>
<p class="MsoNormal"> </condition></p>
<p class="MsoNormal"></extension></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>