Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Read function


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
danikpro at gmail.com
Guest





PostPosted: Sun Mar 09, 2008 1:34 am    Post subject: [asterisk-users] Read function Reply with quote

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?
Back to top
support at drdos.info
Guest





PostPosted: Sun Mar 09, 2008 8:28 am    Post subject: [asterisk-users] Read function Reply with quote

Daniel Suleyman wrote:
Quote:
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."
Back to top
niles at atheos.net
Guest





PostPosted: Sun Mar 09, 2008 8:43 am    Post subject: [asterisk-users] Read function Reply with quote

On Mar 9, 2008, at 1:34 AM, Daniel Suleyman wrote:

Quote:
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
Back to top
danikpro at gmail.com
Guest





PostPosted: Sun Mar 09, 2008 9:02 am    Post subject: [asterisk-users] Read function Reply with quote

thank you but it is only in e-mail not in system. Sad
in pic attached in previous mail you can see.

Sad maybe read functiondo not recongnize tones, wich tones I must use
then...verry strange ^((((

2008/3/9, Niles Ingalls <niles at atheos.net>:
Quote:

On Mar 9, 2008, at 1:34 AM, Daniel Suleyman wrote:

Quote:
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
Back to top
support at drdos.info
Guest





PostPosted: Sun Mar 09, 2008 9:39 am    Post subject: [asterisk-users] Read function Reply with quote

Daniel Suleyman wrote:
Quote:
no nothing changes Sad 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."
Back to top
danikpro at gmail.com
Guest





PostPosted: Sun Mar 09, 2008 9:42 am    Post subject: [asterisk-users] Read function Reply with quote

it seem that waitexten can't detect dtmf input too...

2008/3/9, Daniel Suleyman <danikpro at gmail.com>:
Quote:
thank you but it is only in e-mail not in system. Sad
in pic attached in previous mail you can see.

Sad maybe read functiondo not recongnize tones, wich tones I must use
then...verry strange ^((((

2008/3/9, Niles Ingalls <niles at atheos.net>:
Quote:

On Mar 9, 2008, at 1:34 AM, Daniel Suleyman wrote:

Quote:
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

Back to top
support at drdos.info
Guest





PostPosted: Sun Mar 09, 2008 10:12 am    Post subject: [asterisk-users] Read function Reply with quote

Daniel Suleyman wrote:
Quote:
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."
Back to top
danikpro at gmail.com
Guest





PostPosted: Sun Mar 09, 2008 10:33 am    Post subject: [asterisk-users] Read function Reply with quote

same story ^( no DTMF input

2008/3/9, Doug Lytle <support at drdos.info>:
Quote:
Daniel Suleyman wrote:
Quote:
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
Back to top
support at drdos.info
Guest





PostPosted: Sun Mar 09, 2008 1:41 pm    Post subject: [asterisk-users] Read function Reply with quote

Daniel Suleyman wrote:
Quote:
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."
Back to top
danikpro at gmail.com
Guest





PostPosted: Sun Mar 09, 2008 2:30 pm    Post subject: [asterisk-users] Read function Reply with quote

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>:
Quote:
Daniel Suleyman wrote:
Quote:
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
Back to top
support at drdos.info
Guest





PostPosted: Sun Mar 09, 2008 4:16 pm    Post subject: [asterisk-users] Read function Reply with quote

Daniel Suleyman wrote:
Quote:
2008/3/9, Doug Lytle <support at drdos.info>:

Quote:
Daniel Suleyman wrote:

Quote:
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."
Back to top
danikpro at gmail.com
Guest





PostPosted: Mon Mar 10, 2008 3:38 am    Post subject: [asterisk-users] Read function Reply with quote

asterisk version 1.4.18
No I cant try hardfone but I can use other sip client, i'll chek it now

2008/3/10, Doug Lytle <support at drdos.info>:
Quote:
Daniel Suleyman wrote:
Quote:
2008/3/9, Doug Lytle <support at drdos.info>:

Quote:
Daniel Suleyman wrote:

Quote:
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."


_______________________________________________
-- 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
Back to top
danikpro at gmail.com
Guest





PostPosted: Mon Mar 10, 2008 11:18 am    Post subject: [asterisk-users] Read function Reply with quote

No other Soft phone doesn't helped, I tryed several codecs - same story Sad.
Where can be the problem....?

2008/3/10, Daniel Suleyman <danikpro at gmail.com>:
Quote:
asterisk version 1.4.18
No I cant try hardfone but I can use other sip client, i'll chek it now

2008/3/10, Doug Lytle <support at drdos.info>:
Quote:
Daniel Suleyman wrote:
Quote:
2008/3/9, Doug Lytle <support at drdos.info>:

Quote:
Daniel Suleyman wrote:

Quote:
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."


_______________________________________________
-- 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

Back to top
danikpro at gmail.com
Guest





PostPosted: Mon Mar 10, 2008 2:31 pm    Post subject: [asterisk-users] Read function Reply with quote

Stupidity this is working

1,1,Answer()
1,n,Background(tt-weasels);
1,n,Read(CNT,,,2)
1,n,NoOP(${CNT})

if I wait when Background is timedout and then input digitst read
function receive inputed digits.

I think asterisk playing with me, AI rules Smile)))))))))

a little more and I will be in crazy house ^(
2008/3/10, Daniel Suleyman <danikpro at gmail.com>:
Quote:
No other Soft phone doesn't helped, I tryed several codecs - same story Sad.


Where can be the problem....?

2008/3/10, Daniel Suleyman <danikpro at gmail.com>:
Quote:
asterisk version 1.4.18
No I cant try hardfone but I can use other sip client, i'll chek it now

2008/3/10, Doug Lytle <support at drdos.info>:
Quote:
Daniel Suleyman wrote:
Quote:
2008/3/9, Doug Lytle <support at drdos.info>:

Quote:
Daniel Suleyman wrote:

Quote:
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."


_______________________________________________
-- 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


Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services