Dear all, interesting behaivior of the Read function. I have SIP phone(XLITE) attached to my Asterisk. SIP.conf [7007] type=friend qualify=900 host=192.168.85.27 dtmfmode=rfc2833 disallow=all allow=gsm allow=alaw allow=ulaw extensions.conf 1,1,Answer; 1,2,Read(CNT,,2) 1,3,SayNaumber(${CNT}) Function read do not write anything to CNT or write "". in SayNumber it is always equel to ""; even if I previously defins CNT = 123; And read function not exit if I pres #.(I think it is exit only on timeout) Strange can anybody point on mistake?
Daniel Suleyman wrote:> extensions.conf > > 1,1,Answer; > 1,2,Read(CNT,,2) > 1,3,SayNaumber(${CNT}) > > >Try: 1,1,Answer() 1,n,Read(CNT,,,2) 1,n,NoOP(${CNT}) 1,n,SayDigits(${CNT}) Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
On Mar 9, 2008, at 1:34 AM, Daniel Suleyman wrote:> Dear all, interesting behaivior of the Read function. > > I have SIP phone(XLITE) attached to my Asterisk. > > SIP.conf > [7007] > type=friend > qualify=900 > host=192.168.85.27 > dtmfmode=rfc2833 > disallow=all > allow=gsm > allow=alaw > allow=ulaw > > extensions.conf > > 1,1,Answer; > 1,2,Read(CNT,,2) > 1,3,SayNaumber(${CNT}) > > Function read do not write anything to CNT or write "". > > in SayNumber it is always equel to ""; even if I previously defins > CNT = 123; > > And read function not exit if I pres #.(I think it is exit only on > timeout) > > Strange can anybody point on mistake? >You have a spelling error at extension 1, priority 3. SayNaumber, as opposed to SayNumber
no nothing changes :( pic in atachment 2008/3/9, Doug Lytle <support at drdos.info>:> Daniel Suleyman wrote: > > extensions.conf > > > > 1,1,Answer; > > 1,2,Read(CNT,,2) > > 1,3,SayNaumber(${CNT}) > > > > > > > > Try: > > 1,1,Answer() > 1,n,Read(CNT,,,2) > 1,n,NoOP(${CNT}) > 1,n,SayDigits(${CNT}) > > Doug > > -- > Ben Franklin quote: > > "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- A non-text attachment was scrubbed... Name: a.bmp Type: image/bmp Size: 13346 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080309/715d6ada/attachment.bin
thank you but it is only in e-mail not in system. :( in pic attached in previous mail you can see. :( maybe read functiondo not recongnize tones, wich tones I must use then...verry strange ^(((( 2008/3/9, Niles Ingalls <niles at atheos.net>:> > On Mar 9, 2008, at 1:34 AM, Daniel Suleyman wrote: > > > Dear all, interesting behaivior of the Read function. > > > > I have SIP phone(XLITE) attached to my Asterisk. > > > > SIP.conf > > [7007] > > type=friend > > qualify=900 > > host=192.168.85.27 > > dtmfmode=rfc2833 > > disallow=all > > allow=gsm > > allow=alaw > > allow=ulaw > > > > extensions.conf > > > > 1,1,Answer; > > 1,2,Read(CNT,,2) > > 1,3,SayNaumber(${CNT}) > > > > Function read do not write anything to CNT or write "". > > > > in SayNumber it is always equel to ""; even if I previously defins > > CNT = 123; > > > > And read function not exit if I pres #.(I think it is exit only on > > timeout) > > > > Strange can anybody point on mistake? > > > > You have a spelling error at extension 1, priority 3. > SayNaumber, as opposed to SayNumber > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Daniel Suleyman wrote:> no nothing changes :( pic in atachment > >As the screen capture stated, User entered nothing. Here is a sample where I use it: exten => _71NXXNXXXXXX,1,Read(ZAPLINE|conf-getchannel) exten => _71NXXNXXXXXX,n,Dial(ZAP/${ZAPLINE}/${EXTEN:1}) exten => _71NXXNXXXXXX,n,NoOP(${DIALSTATUS}) exten => _71NXXNXXXXXX,n,NoOP(Hangup Cause: ${HANGUPCAUSE}) exten => _71NXXNXXXXXX,n,Hangup() Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Daniel Suleyman wrote:> Dear all, interesting behaivior of the Read function. > > I have SIP phone(XLITE) attached to my Asterisk. > > SIP.conf > [7007] > type=friend > qualify=900 > host=192.168.85.27 > dtmfmode=rfc2833 > disallow=all > allow=gsm > allow=alaw > allow=ulaw > >Change this to: [7007] type = friend host = dynamic qualify=900 reinvite=no canreinvite=no nat=no dtmfmode = rfc2833 disallow=all allow=ulaw allow=alaw Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
same story ^( no DTMF input 2008/3/9, Doug Lytle <support at drdos.info>:> Daniel Suleyman wrote: > > Dear all, interesting behaivior of the Read function. > > > > I have SIP phone(XLITE) attached to my Asterisk. > > > > SIP.conf > > [7007] > > type=friend > > qualify=900 > > host=192.168.85.27 > > dtmfmode=rfc2833 > > disallow=all > > allow=gsm > > allow=alaw > > allow=ulaw > > > > > Change this to: > > [7007] > > type = friend > host = dynamic > qualify=900 > reinvite=no > canreinvite=no > nat=no > dtmfmode = rfc2833 > disallow=all > allow=ulaw > allow=alaw > > Doug > > -- > Ben Franklin quote: > > "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Daniel Suleyman wrote:> same story ^( no DTMF input > >Just on a hunch, are you pressing the dial button after entering the digits on XTEN, correct? Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
I am input 7004 then pressing yes. XLITe syas connected and on debug screen I see that read ( or waitexten ) running. then I am input some digits but nothing hapens function exits after timeout saying nothing was input.(even if I press yes after inputing digits) 2008/3/9, Doug Lytle <support at drdos.info>:> Daniel Suleyman wrote: > > same story ^( no DTMF input > > > > > > Just on a hunch, are you pressing the dial button after entering the > digits on XTEN, correct? > > Doug > > > -- > Ben Franklin quote: > > "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Daniel Suleyman wrote:> 2008/3/9, Doug Lytle <support at drdos.info>: > >> Daniel Suleyman wrote: >> >>> same story ^( no DTMF input >>> >>>What version of Asterisk? Can you try a different client, maybe even a SIP hard phone? Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."