search for: nbr2call

Displaying 2 results from an estimated 2 matches for "nbr2call".

2011 Mar 08
5
[1.4] Reading phone number the French way?
Hello, I need to write a script which prompts the callee to type a number, and then read it back to them as confirmation: ======= extensions.conf [robocall] ;Expect 10-digit number excluding final #, 2 tries, 20s time-out exten => s,n(nbr2call),Read(NBR2CALL,please-type-number,10,,2,20) exten => s,n,GotoIf($[${LEN(${NBR2CALL})} != 10]?end) ;exten => s,n,SayDigits(${NBR2CALL}) exten => s,n,SayNumber(${NBR2CALL}) exten => s,n(end),Hangup() ======= Besides the fact that my Asterisk setup only has US sound files in /var/lib/a...
2011 Mar 10
2
[1.4.21.2] Read() disconnects half-way through?
...sing the Read() function to play a message prompting for the user to type a number followed by the # key to validate, with a 30s time-out and 2 tries: ============== [test] exten => s,1,Wait(2) exten => s,n,Answer ;typed DTMF: prompt for number to dial: 2 tries, 30s time-tout exten => s,n(nbr2call),Read(NBR2CALL,please-type-number,,,2,30) exten => s,n,GotoIf($[${LEN(${NBR2CALL})} != 10]?nbr2call) exten => s,n,Playback(phone:${NBR2CALL},say) exten => s,n(end),Wait(2) exten => s,n,Hangup() ============== I notice that it sometimes works fine, but sometimes, Asterisk hangs up whi...