<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: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:"Times New Roman","serif";
        color:windowtext;}
..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><span style='font-family:"Times New Roman","serif"'>I am
having difficulty with a Polycom 501 and Freeswitch. There are 3 lines on the
phone. The first two are registered with a SwitchVox, the last with Freeswitch.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>When I
select the 3rd line and begin to press numbers, pressing the 3rd digit
automatically causes the phone to begin to dial. It does not matter which three
numbers I press, the 3rd one is magic.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>However,
if I do not select a line before dialing and key a 10-digit number into the
phone, then select the 3rd line, it dials out fine.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>You can
see from the debug console output that Processing begins before it hits any
dialplan, so that cannot be the problem. I must have the line defined
incorrectly for Freeswitch.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Thanks
for any suggestions, Lars.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>PolycomSoundPointIP-SPIP_501-UA/2.1.2.0078<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Linux
fs 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:39:21 EDT 2009 i686 i686 i386
GNU/Linux<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.588457 [DEBUG] sofia.c:4549 IP 192.168.10.101 Rejected by acl
&quot;domains&quot;. Falling back to Digest auth.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.706419 [DEBUG] sofia.c:4549 IP 192.168.10.101 Rejected by acl
&quot;domains&quot;. Falling back to Digest auth.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.708461 [NOTICE] switch_channel.c:602 New Channel
sofia/internal/1001@192.168.10.29 [661a46fa-5f63-11de-85d0-1157463d23c2]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] switch_core_state_machine.c:397
(sofia/internal/1001@192.168.10.29) Running State Change CS_NEW<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia.c:3210 Channel sofia/internal/1001@192.168.10.29
entering state [received][100]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia.c:3217 Remote SDP:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>v=0<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>o=-
1245682011 1245682011 IN IP4 192.168.10.101<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>s=Polycom
IP Phone<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>c=IN
IP4 192.168.10.101<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>t=0
0<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>m=audio
2254 RTP/AVP 0 8 18 101<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>a=rtpmap:0
PCMU/8000<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>a=rtpmap:8
PCMA/8000<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>a=rtpmap:18
G729/8000<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>a=rtpmap:101
telephone-event/8000<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] switch_core_state_machine.c:403
(sofia/internal/1001@192.168.10.29) State NEW<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia_glue.c:3068 Audio Codec Compare
[PCMU:0:8000:0]/[G7221:115:32000:20]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia_glue.c:3068 Audio Codec Compare
[PCMU:0:8000:0]/[G7221:107:16000:20]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia_glue.c:3068 Audio Codec Compare
[PCMU:0:8000:0]/[G722:9:8000:20]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia_glue.c:3068 Audio Codec Compare
[PCMU:0:8000:0]/[PCMU:0:8000:20]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia_glue.c:2026 Set Codec
sofia/internal/1001@192.168.10.29 PCMU/8000 20 ms 160 samples<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia_glue.c:3028 Set 2833 dtmf payload to 101<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] sofia.c:3376 (sofia/internal/1001@192.168.10.29) State
Change CS_NEW -&gt; CS_INIT<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.711463 [DEBUG] switch_core_session.c:933 Send signal sofia/internal/1001@192.168.10.29
[BREAK]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] switch_core_state_machine.c:397
(sofia/internal/1001@192.168.10.29) Running State Change CS_INIT<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] switch_core_state_machine.c:480
(sofia/internal/1001@192.168.10.29) State INIT<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] mod_sofia.c:83 sofia/internal/1001@192.168.10.29 SOFIA
INIT<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] mod_sofia.c:111 (sofia/internal/1001@192.168.10.29)
State Change CS_INIT -&gt; CS_ROUTING<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] switch_core_session.c:933 Send signal
sofia/internal/1001@192.168.10.29 [BREAK]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] switch_core_state_machine.c:480
(sofia/internal/1001@192.168.10.29) State INIT going to sleep<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] switch_core_state_machine.c:397
(sofia/internal/1001@192.168.10.29) Running State Change CS_ROUTING<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] switch_core_state_machine.c:483
(sofia/internal/1001@192.168.10.29) State ROUTING<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] mod_sofia.c:130 sofia/internal/1001@192.168.10.29 SOFIA
ROUTING<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [DEBUG] switch_core_state_machine.c:78
sofia/internal/1001@192.168.10.29 Standard ROUTING<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>2009-06-22
12:32:18.721428 [INFO] mod_dialplan_xml.c:252 Processing 1001-&gt;323 in
context default<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Dialplan:
sofia/internal/1001@192.168.10.29 parsing [default-&gt;unloop] continue=false<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Dialplan:
sofia/internal/1001@192.168.10.29 Regex (PASS) [unloop] ${unroll_loops}(true)
=~ /^true$/ break=on-false<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Dialplan:
sofia/internal/1001@192.168.10.29 Regex (FAIL) [unloop] ${sip_looped_call}() =~
/^true$/ break=on-false<o:p></o:p></span></p>

</div>

</body>

</html>