<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@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>I am new to Freewitch and VOIP in general so I apologize for
the dumb questions in advance. Which of course makes it alright!<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I successfully downloaded and installed CentOS and compiled
and installed Freeswitch.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have 3 polycom 501 phones connected and working. They can
dial most of the features from the default dialplan, like conferencing, MOH,
etc.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>When I dial 1 immediately goes to busy signal and has this
output on the CLI.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>2008-04-19 05:24:38 [NOTICE] switch_channel.c:531
switch_channel_set_name() New Channel sofia/default/1002@10.0.2.117
[45bf1fa0-66cc-4f1f-9e8d-6d45bd8ef391]<o:p></o:p></p>
<p class=MsoNormal>2008-04-19 05:24:38 [INFO] mod_dialplan_xml.c:223
dialplan_hunt() Processing 1002->1@default<o:p></o:p></p>
<p class=MsoNormal>2008-04-19 05:24:38 [NOTICE] switch_ivr.c:1032
switch_ivr_session_transfer() Transfer sofia/default/1002@10.0.2.117 to
enum[1@default]<o:p></o:p></p>
<p class=MsoNormal>2008-04-19 05:24:38 [INFO] switch_core_state_machine.c:113
switch_core_standard_on_ring() No Route, Aborting<o:p></o:p></p>
<p class=MsoNormal>2008-04-19 05:24:38 [NOTICE] switch_core_state_machine.c:114
switch_core_standard_on_ring() Hangup sofia/default/1002@10.0.2.117 [CS_RING]
[NO_ROUTE_DESTINATION]<o:p></o:p></p>
<p class=MsoNormal>2008-04-19 05:24:38 [NOTICE] switch_core_session.c:748
switch_core_session_thread() Session 61 (sofia/default/1002@10.0.2.117) Ended<o:p></o:p></p>
<p class=MsoNormal>2008-04-19 05:24:38 [NOTICE] switch_core_session.c:750
switch_core_session_thread() Close Channel sofia/default/1002@10.0.2.117
[CS_HANGUP]<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This should not be the case because the regular expression
below in the default plan should pick this up. I change the expression to "^9(10[01][0-9])$"
and then I dialed 9 and the extension and it worked!<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Does anyone have an idea why that is happening? Is there
some setting on the phone that makes it recognize 1 as something else?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here is the dialplan for local extensions.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='text-autospace:none'> <extension
name="Local_Extension"><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <condition
field="destination_number" expression="^(10[01][0-9])$"><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <action
application="set" data="dialed_ext=$1"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <action
application="export" data="dialed_ext=$1"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> </condition><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <condition
field="destination_number"
expression="^${caller_id_number}$"><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <action
application="set"
data="voicemail_authorized=${sip_authorized}"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <action
application="answer"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <action
application="sleep" data="1000"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <action
application="voicemail" data="check default $${domain}
${dialed_ext}"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="bind_meta_app" data="1 a a execute_extension::dx
XML features"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="bind_meta_app" data="2 a a
record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="bind_meta_app" data="3 a a execute_extension::cf
XML features"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="set" data="transfer_ringback=${us-ring}"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="set" data="call_timeout=30"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <!--
<anti-action application="set"
data="sip_exclude_contact=${network_addr}"/> --><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="set" data="hangup_after_bridge=true"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <!--<anti-action
application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,BUSY,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
--><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="set" data="continue_on_fail=true"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="db"
data="insert/call_return/${dialed_ext}/${caller_id_number}"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="db"
data="insert/last_dial_ext/${dialed_ext}/${uuid}"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="bridge"
data="user/${dialed_ext}@$${domain}"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="answer"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <!--<anti-action
application="send_display" data="Voicemail for
${dialed_ext}"/>--><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="sleep" data="1000"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> <anti-action
application="voicemail" data="default $${domain}
${dialed_ext}"/><o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'> </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>Bryan Reynolds<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>