<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.6169" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Brian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is Sharad, coligue of Piyush...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope you are recovering fast at Hospital. I wish
you get well soon. praying for your Good Health.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now l</FONT><FONT face=Arial size=2>et me just
explain the case from begining. - </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> a) We have written a very very basic
Javascript to handle an incoming call. </FONT></DIV>
<DIV><FONT face=Arial size=2>b) When call comes, XML dialplan invokes the
Javascript.</FONT></DIV>
<DIV><FONT face=Arial size=2>c) Javascript plays first prompt &
expects some input from the caller. </FONT></DIV>
<DIV><FONT face=Arial size=2>d) Caller can dial either in DTMF / Sip Info
/ RFC 2833.</FONT></DIV>
<DIV><FONT face=Arial size=2>e) When caller punches some digit, Javascript just
detects the input & a debug is printed 'You Entered = 12".</FONT></DIV>
<DIV><FONT face=Arial size=2>f) Now Javascript moves to next etep & plays
second prompt. </FONT></DIV>
<DIV><FONT face=Arial size=2>g) While JS plays the second prompt, no input (if
caller enters either in DTMF / Sip Info / RFC2833) should be detected. Means
before playing second prompt, JS should disable the input
detection.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is what we want. Hope it is
clear.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But the issue is - It works fine when caller dials
in DTMF. But when caller dials the digit either in Sip_Info / Rfc2833,
freeswitch is detecting the digit during second prompt also. We want to know
where we are wrong. How can we disable the SIP_Info / RFC2833 detection during
second prompt.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now let me show what we have defined -</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>====================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2>Our XML dialplan is like this -</FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN><extension name="Digit detection
"></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN><condition
field="destination_number" expression="^(3333)$"></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN> <!--<action
application="set" data="bypass_media=true"/>--></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN>
<</SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN>action
application="stop_dtmf"/></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN> <action
application="start_dtmf"/></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN> <action
application="set" data="continue_on_fail=true"/></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN> <action
application="answer"/></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN> <action
application="sleep" data="100"/></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN lang=EN> <action
application="javascript" data="sip_test.js 00 3333"/></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
lang=EN></condition></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
lang=EN></extension></DIV></SPAN></FONT>
<DIV><FONT face=Arial
size=2>=======================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial
size=2>=======================================================================</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>Javascript is -</FONT></DIV>
<DIV><SPAN lang=EN>
<P><FONT face=Arial size=2>//var saved_digts="";<BR>var dtmf="";<BR>var
stop_dtmf=false;<BR>var dtmf_digits="";</FONT></P>
<P><FONT face=Arial size=2>function
on_dtmf(session,type,digits,arg)<BR>{<BR>
if(saved_digits =
session.getVariable("digits"))<BR>
session.setVariable("digits",saved_digits +
digits.digit);<BR>
else<BR>
{<BR>
session.setVariable("digits",digits.digit);<BR>
dtmf =
session.getDigits(10,"#",inter_digit_timeout);<BR>
session.setVariable("digits",session.getVariable("digits") +
dtmf);<BR>
}<BR> stop_dtmf =
true;<BR> return
false;<BR>}</FONT></P>
<P><FONT face=Arial size=2>function
main()<BR>{<BR> session.streamFile("ivr/coral_welcom_deepawali.wav",on_dtmf);<BR>
while(dtmf_digits=="")<BR> {<BR> if(!stop_dtmf)<BR> session.collectInput(on_dtmf,dtmf,"5"
);<BR> if(stop_dtmf)<BR> dtmf_digits=session.getVariable("digits");<BR> }<BR> console_log("INFO","You
Entered =
"+dtmf_digits+"\n");<BR> session.execute("stop_dtmf");<BR> session.streamFile("ivr/coral_welcom_deepawali.wav");<BR> session.hangup();<BR>}</FONT></P>
<P><FONT face=Arial
size=2>main();<BR>==========================================================================</FONT></P>
<P><FONT face=Arial size=2>If you need any other information related to this,
plz do let me know.</FONT></P></SPAN></DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Sharad</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=brian@freeswitch.org href="mailto:brian@freeswitch.org">Brian
West</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, February 16, 2012 7:18
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] stop
sip_info</DIV>
<DIV><BR></DIV>This is your phones fault. Notice in the SDP it doesn't
negotiate telephoney-event so we have nothing to clue us in on that it does
2833 or info. So in reality you should go beat the creator of this phone
to death for not doing something about this. (btw info draft expired and
IS NOT a standard).
<DIV><BR></DIV>
<DIV>BUT you can relax now.. set the sofia profile option 'liberal-dtmf'
to true.... NEXT!!!</DIV>
<DIV><BR></DIV>
<DIV>/b</DIV>
<DIV>PS: BKW-1 updated with latest info.</DIV>
<DIV><BR>
<DIV>
<DIV>On Feb 16, 2012, at 6:11 AM, Piyush Sharma wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite"><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Helvetica; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><BR>Thanks
for Response Michael,<BR>This is the capture of wireshark<BR><BR>INVITE<SPAN
class=Apple-converted-space> </SPAN><A
href="sip:3333@192.168.4.18:5060">sip:3333@192.168.4.18:5060</A><SPAN
class=Apple-converted-space> </SPAN>SIP/2.0<BR>Via: SIP/2.0/UDP
192.168.4.244:5065;branch=z9hG4bK9268238112493813801;rport<BR>From: 30000
<<A
href="sip:30000@192.168.4.18:5060">sip:30000@192.168.4.18:5060</A>>;tag=1653316119<BR>To:
"3333" <<A
href="sip:3333@192.168.4.18:5060">sip:3333@192.168.4.18:5060</A>><BR>Call-ID:<SPAN
class=Apple-converted-space> </SPAN><A
href="mailto:188371401128256-63249236018@192.168.4.244">188371401128256-63249236018@192.168.4.244</A><BR>CSeq:
1 INVITE<BR>Contact: <<A
href="sip:30000@192.168.4.244:5065">sip:30000@192.168.4.244:5065</A>><BR>Max-Forwards:
70<BR>Supported: replaces, join, path<BR>User-Agent: Voip Phone
1.0<BR>Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER, NOTIFY, INFO, PRACK,
UPDATE, MESSAGE<BR>Content-Type: application/sdp<BR>Content-Length:
185<BR><BR>v=0<BR>o=30000 24630637 15149730 IN IP4 192.168.4.244<BR>s=A
conversation<BR>c=IN IP4 192.168.4.244<BR>t=0 0<BR>m=audio 10006 RTP/AVP 8
0<BR>a=rtpmap:8 PCMA/8000<BR>a=rtpmap:0
PCMU/8000<BR>a=sendrecv</SPAN></BLOCKQUOTE></DIV><BR>
<DIV apple-content-edited="true"><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">-- <BR>Brian
West <BR>FreeSWITCH Solutions, LLC<BR>Phone: +1 (918)
420-9266 <BR>Fax: +1 (918) 420-9267<BR><A
href="mailto:brian@freeswitch.org">brian@freeswitch.org</A><BR>http://www.freeswitch.org</SPAN>
</DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>