Re: input processing issues, solved

David Sugar <[email protected]>
Newsgroups gmane.comp.gnu.bayonne.devel
Organization GNU Telephony
Message-ID <[email protected]>
Ah...collect used to be with var= in bayonne "1".  There are probably a 
few commands that did not get revised properly in the current 
docs...Hmm...I will take a look at read (stateRead in engine/states.cpp) 
later and see what might be happening with that one...

Alexandre BOULANGER wrote:
> Ok I found an answer with no more blank time:
> 	collect %myvar count=8
> 
> I was abused by the "Scripting Bayonne" PDF where the syntax was:
> 	collect [var=&sym] [count=digits]
> 
> so I have always tested things like:
> 	collect var=%myvar count=8
> 
> 
> I've also tried without success the following piece of code, %myvar
> keeps a NULL value
> 	collect count=8
> 	read %myvar count=8
> 
> 
> Thanks for the advice
> 
> 
> 
>>I think "collect" is what you would normally use for this case.  Read 
>>generally deals with parsing dtmf digits that have already been 
>>buffered.  You could either use collect in front of read, as in:
>>
>>	collect count=8
>>	read %myvar count=8 format="????????"
>>
>>Or possibly do it in collect itself:
>>
>>	collect %myvar count=8 format="????????"
>>
> 
>

_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
dyfet.vcf (text/x-vcard, 187 B)
begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
adr:;;;;;;USA
email;internet:[email protected]
x-mozilla-html:FALSE
url:http://www.gnutelephony.org
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.