<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>We’d like to match on either Caller ID or ANI for
outbound faxes and lock them to PCMU. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here’s what we’ve been using:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><extension name="FAX-LCL-7D"><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition field="destination_number"
expression="^9(\d{7})$"><o:p></o:p></p>
<p class=MsoNormal> <action
application="export" data="sip_append_audio_sdp=a=fmtp:18
annexb=no"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="export"
data="nolocal:absolute_codec_string=PCMU"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="set" data="hangup_after_bridge=true"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="bridge" data="<a
href="mailto:sofia/external/$0@X.X.X.X">sofia/external/$0@X.X.X.X</a>"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="set" data="instant_ringback=true"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="set" data="ringback=${us-ring}"/><o:p></o:p></p>
<p class=MsoNormal> </condition><o:p></o:p></p>
<p class=MsoNormal></extension><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></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. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></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. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here’s what it *might* look like with multiple
internal fax lines:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><extension name="FAX-LCL-7D"><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="caller_id_number" expression="^XXXXXXXXXX$"/><o:p></o:p></p>
<p class=MsoNormal> <condition
field="destination_number" expression="^9(\d{7})$"><o:p></o:p></p>
<p class=MsoNormal> <action
application="export" data="sip_append_audio_sdp=a=fmtp:18
annexb=no"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="export"
data="nolocal:absolute_codec_string=PCMU"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="set" data="hangup_after_bridge=true"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="bridge" data="<a
href="mailto:sofia/external/$0@X.X.X.X">sofia/external/$0@X.X.X.X</a>"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="set" data="instant_ringback=true"/><o:p></o:p></p>
<p class=MsoNormal> <action
application="set" data="ringback=${us-ring}"/><o:p></o:p></p>
<p class=MsoNormal> </condition><o:p></o:p></p>
<p class=MsoNormal></extension><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Ken Fulmer<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>