<br><br><div class="gmail_quote">On Thu, Feb 25, 2010 at 5:16 PM, Robert Hadley <span dir="ltr">&lt;<a href="mailto:robert.hadley@teotech.com">robert.hadley@teotech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









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

<div>

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">When running Freeswitch as service called teoswitch as user
teoswitch I cannot make calls through the Sangoma PRI or analog cards using
wanpipe driver.  I have added a file called 30-wanpipe.rules to
/etc/udev/rules.d and rebooted the server.</span></font></p>

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">cat 30-wanpipe.rules</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;"># /etc/udev/rules.d/30-wanpipe.rules</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">SUBSYSTEM==&quot;wptdm&quot;,
OWNER=&quot;teoswitch&quot;, GROUP=&quot;teoswitch&quot;, MODE=&quot;0660&quot;</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">SUBSYSTEM==&quot;wanpipe&quot;,
OWNER=&quot;teoswitch&quot;, GROUP=&quot;teoswitch&quot;, MODE=&quot;0660&quot;</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Freeswitch log:</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">Dialplan: sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>
parsing [default-&gt;SangomaPRI] continue=false</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">Dialplan: sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>
Regex (PASS) [SangomaPRI] destination_number(93491045) =~ /^9(\d+)$/
break=on-false</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">Dialplan: sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>
Action set(effective_caller_id_number=425740${caller_id_number})</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">Dialplan: sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>
Action bridge(openzap/smg_prid/a/3491045@g1)</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:122 (sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>) State
Change CS_ROUTING -&gt; CS_EXECUTE</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG]
switch_core_session.c:1019 Send signal sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>
[BREAK]</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:341 (sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>) State
ROUTING going to sleep</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:314 (sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>)
Running State Change CS_EXECUTE</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG] switch_core_state_machine.c:348
(sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>) State EXECUTE</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG] mod_sofia.c:181
sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a> SOFIA EXECUTE</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:159 sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a> Standard
EXECUTE</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">EXECUTE sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>
set(effective_caller_id_number=4257405410)</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.328635 [DEBUG] mod_dptools.c:811
sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a> SET [effective_caller_id_number]=[4257405410]</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">EXECUTE sofia/internal/<a href="http://5410@192.168.72.45:5060" target="_blank">5410@192.168.72.45:5060</a>
bridge(openzap/smg_prid/a/3491045@g1)</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.339637 [ERR]
switch_core_session.c:357 Could not locate channel type openzap</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.339637 [ERR]
switch_ivr_originate.c:2411 Cannot create outgoing channel of type [openzap]
cause: [CHAN_NOT_IMPLEMENTED]</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.339637 [DEBUG]
switch_ivr_originate.c:3209 Originate Resulted in Error Cause: 66
[CHAN_NOT_IMPLEMENTED]</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="1"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">2010-02-25 16:51:11.339637 [INFO] mod_dptools.c:2346
Originate Failed.  Cause: CHAN_NOT_IMPLEMENTED</span></font></p></div></div></blockquote><div><br>CHAN_NOT_IMPLEMENTED implies that OpenZAP did not load. Capture the output of &quot;load mod_openzap&quot; and look for the reason that it is failing to load.<br>
-MC<br></div></div><br>