<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE>@font-face {
        font-family: Wingdings;
}
@font-face {
        font-family: Wingdings;
}
@font-face {
        font-family: Calibri;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P.MsoListParagraph {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt 36pt; FONT-FAMILY: "Calibri","sans-serif"; mso-style-priority: 34
}
LI.MsoListParagraph {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt 36pt; FONT-FAMILY: "Calibri","sans-serif"; mso-style-priority: 34
}
DIV.MsoListParagraph {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt 36pt; FONT-FAMILY: "Calibri","sans-serif"; mso-style-priority: 34
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
OL {
        MARGIN-BOTTOM: 0cm
}
UL {
        MARGIN-BOTTOM: 0cm
}
</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 vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=619070413-07082008><FONT face=Arial
color=#0000ff size=2>For problem #1 you probably need to use the DTMF detection
application. The symptoms your describing match and your code is missing
this.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=619070413-07082008><FONT face=Arial
color=#0000ff size=2><STRONG></FONT></SPAN> </DIV></STRONG>
<DIV dir=ltr align=left><SPAN class=619070413-07082008><FONT face=Arial
color=#0000ff size=2>Try adding:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=619070413-07082008><FONT face=Arial
color=#0000ff size=2><action application="start_dtmf"
data="true"/></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=619070413-07082008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=619070413-07082008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=619070413-07082008><FONT face=Arial
color=#0000ff size=2>Problem #2, does this occur on an analog
line?</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ilan Perez
[mailto:iperez@diagnosticdev.com] <BR><B>Sent:</B> Wednesday, August 06, 2008
6:30 PM<BR><B>To:</B> freeswitch-users@lists.freeswitch.org<BR><B>Subject:</B>
[Freeswitch-users] DTMF recognition and nbound calls<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal>Dear All,<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>I have setup my inbound extension (in the public.xml) diaplan
to transfer to extension 5000 <SPAN style="FONT-FAMILY: Wingdings">ŕ</SPAN> the
demo IVR<o:p></o:p></P>
<P class=MsoNormal>The recordings come through nicely. From an internal call the
demo fine including DTMF recognition but with inbound calls from external
source…ie pstn line<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Two problems occur.<o:p></o:p></P>
<P class=MsoListParagraph style="TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"><![if !supportLists]><SPAN
style="mso-list: Ignore">1.<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN><![endif]>There is no DTMF recognition<o:p></o:p></P>
<P class=MsoListParagraph style="TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"><![if !supportLists]><SPAN
style="mso-list: Ignore">2.<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN><![endif]>If I hangup during the playback the system still plays
out the whole IVR<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Here is my code for the extension.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Hopefully someone can help me out<o:p></o:p></P>
<P class=MsoNormal><extension name="public_did"><o:p></o:p></P>
<P class=MsoNormal> <condition
field="destination_number" expression="^(0283472006)$"><o:p></o:p></P>
<P
class=MsoNormal>
<action application="set" data="call_timeout=60"/><o:p></o:p></P>
<P
class=MsoNormal>
<action application="set" data="group_confirm_file=C:/Program
Files/FreeSWITCH/sounds/en/us/callie/voicemail/8000/vm-press.wav"/><o:p></o:p></P>
<P
class=MsoNormal>
<action application="set" data="group_confirm_key=4"/><o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal> <action application="set"
data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number}
${strftime(%Y-%m-%d %H:%M)}"/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="RECORD_COPYRIGHT=(c) 2008 Diagnostic Devices, Inc."/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="RECORD_SOFTWARE=FreeSwitch"/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="RECORD_ARTIST=Ian Curtis"/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="RECORD_COMMENT=Love will tear us apart"/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="RECORD_STEREO=false"/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="playback_terminators=#*"/><o:p></o:p></P>
<P class=MsoNormal> <action application="record_session"
data="C:/Program
Files/FreeSWITCH/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/><o:p></o:p></P>
<P class=MsoNormal> <action application="set"
data="ringback=${us-ring}"/><o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal> <action application="transfer" data="5000 XML
default"/> <o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>
<!-- <action application="bridge"
data="user/1207@$${domain}"/> --><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><B><o:p> </o:p></B></P>
<P class=MsoNormal><B>Anyone?<o:p></o:p></B></P>
<P class=MsoNormal><B><o:p> </o:p></B></P>
<P class=MsoNormal><B>Ilan Perez<o:p></o:p></B></P>
<P class=MsoNormal><o:p> </o:p></P></DIV></BODY></HTML>