<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.Numbered, li.Numbered, div.Numbered
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.25in;
        margin-bottom:.0001pt;
        text-indent:-.25in;
        mso-list:l0 level1 lfo2;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:412971070;
        mso-list-type:hybrid;
        mso-list-template-ids:1618259210 -1710466462 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-style-link:Numbered;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.25in;
        mso-level-number-position:left;
        margin-left:.25in;
        text-indent:-.25in;
        font-family:Symbol;
        mso-fareast-font-family:"Times New Roman";
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a server that has Freeswitch (1.0.5.pre9) a Sangoma
A101 (E1/T1) and Analog A200 cards using OpenZap. The cards are
connected. The wanrouter version is 3.5.8.6 as the newer version
didn’t work for us yet. Also trying to test with the FS trunk but
having other wanpipe driver issues.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a question about using the A200 card. The
intent is to hook up FAX machines to the two FXS ports. The desired
behavior is the first call goes to the first FXS port one, and while port one
is busy a second call goes to the second port.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In the Freeswitch dialplan there is a statement to bridge to
FXS port 1 and if that fails then bridge to FXS port 2. However, the
first bridge never fails even when it’s busy. I notice the A200
card supports call waiting. The FS debug messages show that is what is
happening.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Question: How do I disable call waiting on the A200 card
when used with OpenZap?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am not sure about whether the hangup_after_bridge=true and
continue_on_fail=true are necessary or in the correct spots. I’ve
tried calling with these statements present or not and moved after the first
bridge but doesn’t appear to affect the status of the first bridge statement.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Question: Are the hangup_after_bridge=true and
continue_on_fail=true statements necessary and in the right spot?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><u><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Dialplan statements:<o:p></o:p></span></font></u></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'> <extension name="fxsfax"><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'> <!-- This routes
destinations 1010 and 1011 calls to FXS card --><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'> <condition
field="destination_number" expression="^(101[0-1])$"><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>
<action application="answer"/><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>
<action application="set" data="hangup_after_bridge=true"/><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>
<action application="set"
data="continue_on_fail=true"/><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>
<action application="bridge" data="openzap/FXS/1"/><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>
<action application="bridge" data="openzap/FXS/2"/><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><u><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Debug statements for second call to FXS/1 extension:<o:p></o:p></span></font></u></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>(Notice that several of statements mention CALLWAITING.)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.193948 [DEBUG] switch_core_session.c:639
Send signal sofia/internal/1045@192.168.72.141:5060 [BREAK]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.193948 [NOTICE]
mod_dptools.c:658 Channel [sofia/internal/1045@192.168.72.141:5060] has been
answered<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.193948 [DEBUG]
switch_channel.c:182 sofia/internal/1045@192.168.72.141:5060 receive message
[AUDIO_SYNC]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>EXECUTE sofia/internal/1045@192.168.72.141:5060
set(continue_on_fail=true)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.193948 [DEBUG] sofia.c:3787
Channel sofia/internal/1045@192.168.72.141:5060 entering state [completed][200]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.193948 [DEBUG] mod_dptools.c:768
sofia/internal/1045@192.168.72.141:5060 SET [continue_on_fail]=[true]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>EXECUTE sofia/internal/1045@192.168.72.141:5060
bridge(openzap/FXS/1)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG] mod_openzap.c:366
Set codec PCMU 20ms<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
mod_openzap.c:1191 Connect outbound channel OpenZAP/2:1/<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [NOTICE]
switch_channel.c:613 New Channel OpenZAP/2:1/
[bc08ce84-eff2-491c-b601-14b7329c71ea]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
mod_openzap.c:1203 (OpenZAP/2:1/) State Change CS_NEW -> CS_INIT<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_session.c:1018 Send signal OpenZAP/2:1/ [BREAK]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG] ozmod_analog.c:78
Changing state on 2:1 from UP to CALLWAITING<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:314 (OpenZAP/2:1/) Running State Change CS_INIT<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:338 (OpenZAP/2:1/) State INIT<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG] mod_openzap.c:390
(OpenZAP/2:1/) State Change CS_INIT -> CS_ROUTING<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_session.c:1018 Send signal OpenZAP/2:1/ [BREAK]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:338 (OpenZAP/2:1/) State INIT going to sleep<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:314 (OpenZAP/2:1/) Running State Change CS_ROUTING<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:341 (OpenZAP/2:1/) State ROUTING<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG] mod_openzap.c:413
OpenZAP/2:1/ CHANNEL ROUTING<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_ivr_originate.c:66 (OpenZAP/2:1/) State Change CS_ROUTING ->
CS_CONSUME_MEDIA<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_session.c:1018 Send signal OpenZAP/2:1/ [BREAK]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:341 (OpenZAP/2:1/) State ROUTING going to sleep<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:314 (OpenZAP/2:1/) Running State Change
CS_CONSUME_MEDIA<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:360 (OpenZAP/2:1/) State CONSUME_MEDIA<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.194948 [DEBUG]
switch_core_state_machine.c:360 (OpenZAP/2:1/) State CONSUME_MEDIA going to
sleep<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.210047 [DEBUG] sofia.c:3787 Channel
sofia/internal/1045@192.168.72.141:5060 entering state [ready][200]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.213006 [DEBUG]
ozmod_analog.c:450 Executing state handler on 2:1 for CALLWAITING<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:00:55.657988 [DEBUG] switch_rtp.c:2004
Correct ip/port confirmed.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New"'>2010-02-02 14:01:05.723334 [DEBUG]
ozmod_analog.c:422 Changing state on 2:1 from CALLWAITING to UP<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Robert<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>