[asterisk-users] i have a error in ivr

Danny Nicholas danny at debsinc.com
Fri Aug 14 12:14:15 CDT 2009


No. don’t erase them.  You need to move procall3.wav to
/var/lib/asterisk/sounds/custom/procall3.wav.  The nickel tour of procall

 

[procall]
exten => s,1,Set(TIMEOUT(digit)=7) ;

Set timeout for digits in background (4)
exten => s,2,Set(TIMEOUT(response)=10)

Set timeout for response in bg (4)
exten => s,3,Set(CHANNEL(language)=en) ; define como idioma predefinido el
ingles y usas las voces en este idioma

Select English for bg(4)
exten => s,4,BackGround(custom/procall3) ; presenta en menu en ingles

Play /var/lib/asterisk/sounds/custom/procall (will try gsm, then wav, etc.)
exten => s,5,WaitExten() ; Espera que el llamante presione una tecla

Wait for user to enter DTMF
exten => 100,1,Dial(SIP/100,45,r)

Dial 100 for 45 seconds if user dialed 100

exten => 100,2,Dial(SIP/101,45,r)

Dial 100 for 45 seconds if user dialed 100 and 100 did not answer

exten => 100,3,Dial(SIP/103,45,r)

Dial 100 for 45 seconds if user dialed 100 and 101 did not answer

exten => i,1,Playback(invalid)

play /var/lib/asterisk/sounds/invalid because user did not press valid DTMF
exten => i,2,Playback(goodbye)
play /var/lib/asterisk/sounds/goodbye because user did not press valid DTMF
exten => i,3,hangup
hangup because user did not press valid DTMF
exten => t,1,goto(procall,s,1)
start procall over because we timed out on DTMF accept

exten => h,1,Hangup

stop the call, user hung up

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bayardo
Sanchez
Sent: Friday, August 14, 2009 11:13 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] i have a error in ivr

 

yes procall3 is in /var/lib/asterisk/sounds/procall3/wav

erase these:

exten => i,1,Playback(invalid)
exten => i,2,Playback(goodbye)
exten => i,3,hangup
exten => t,1,goto(procall,s,1)
exten => h,1,Hangup

?

On Fri, Aug 14, 2009 at 9:56 AM, Danny Nicholas <danny at debsinc.com> wrote:

Procall3 is /var/lib/asterisk/sounds/procall3.wav?

 

IMO, procall should look like this:

[procall]
exten => s,1,Set(TIMEOUT(digit)=7) ;
exten => s,2,Set(TIMEOUT(response)=10)
exten => s,3,Set(CHANNEL(language)=en) ; define como idioma predefinido el
ingles y usas las voces en este idioma
exten => s,4,BackGround(custom/procall3) ; presenta en menu en ingles
exten => s,5,WaitExten() ; Espera que el llamante presione una tecla
exten => 100,1,Dial(SIP/100,45,r)

exten => 100,2,Dial(SIP/101,45,r)
exten => 100,3,Dial(SIP/103,45,r)


exten => i,1,Playback(invalid)
exten => i,2,Playback(goodbye)
exten => i,3,hangup
exten => t,1,goto(procall,s,1)
exten => h,1,Hangup

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bayardo
Sanchez
Sent: Friday, August 14, 2009 10:20 AM


To: Asterisk Users Mailing List - Non-Commercial Discussion

Subject: Re: [asterisk-users] i have a error in ivr

 

the audio is in format wav i save in Format PCM attributte 8,000 KHz; 8bit;
Mono 7kb/s

my extension.conf is the next:

exten => 8888651085,1,Playback(procall3)
exten => 8888651085,n,Playback(procall3)
exten => 8888651085,n,Queue(procall|n|||)
exten => 8888651085,n,Playback(voicemail-invitation)
exten => 8888651085,n,VoiceMail,111
exten => 8888651085,n,Hangup

[procall]
exten => s,1,Set(TIMEOUT(digit)=7) ;
exten => s,2,Set(TIMEOUT(response)=10)
exten => s,3,Set(CHANNEL(language)=en) ; define como idioma predefinido el
ingles y usas las voces en este idioma
exten => s,4,BackGround(custom/procall3) ; presenta en menu en ingles
exten => s,5,WaitExten() ; Espera que el llamante presione una tecla
exten => 100,1,Dial(SIP/100,45,r)
exten => 101,2,Dial(SIP/101,45,r)
exten => 101,3,Dial(SIP/103,45,r)
exten => i,1,Playback(invalid)
exten => i,2,Playback(goodbye)
exten => i,3,hangup
exten => t,1,goto(procall,s,1)
exten => h,1,Hangup


and my queues.conf is:

[procall]
music=default
strategy=ringall
timeout=15
retry = 5
monitor-format = wav
monitor-join = yes
joinempty = yes
member => SIP/100
member => SIP/101
member => SIP/103


tnx for u help

On Fri, Aug 14, 2009 at 9:06 AM, Danny Nicholas <danny at debsinc.com> wrote:

Playback is expecting a frequency of 8000.  use sox to correct.  As for
101/103, that is how the dialplan is written, not an error per se.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bayardo
Sanchez
Sent: Friday, August 14, 2009 9:59 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] i have a error in ivr

 

i call to my tollfree number buy my CLI send the next error: 

Aug 14 08:15:22 WARNING[25931]: format_wav.c:169 check_header: Unexpected
freqency 22050
Aug 14 08:15:22 WARNING[25931]: file.c:441 ast_filehelper: Unable to open
file on /var/lib/asterisk/sounds/procall3.wav
Aug 14 08:15:22 WARNING[25931]: file.c:828 ast_streamfile: Unable to open
procall3 (format ulaw): No such file or directory
Aug 14 08:15:22 WARNING[25931]: app_playback.c:133 playback_exec:
ast_streamfile failed on SIP/74.63.41.218-b6036ae0 for procall3
    -- Executing Playback("SIP/74.63.41.218-b6036ae0", "procall3") in new
stack
Aug 14 08:15:22 WARNING[25931]: format_wav.c:169 check_header: Unexpected
freqency 22050
Aug 14 08:15:22 WARNING[25931]: file.c:441 ast_filehelper: Unable to open
file on /var/lib/asterisk/sounds/procall3.wav
Aug 14 08:15:22 WARNING[25931]: file.c:828 ast_streamfile: Unable to open
procall3 (format ulaw): No such file or directory
Aug 14 08:15:22 WARNING[25931]: app_playback.c:133 playback_exec:
ast_streamfile failed on SIP/74.63.41.218-b6036ae0 for procall3
    -- Executing Queue("SIP/74.63.41.218-b6036ae0", "procall|n|||") in new
stack
    -- Started music on hold, class 'default', on SIP/74.63.41.218-b6036ae0
    -- Called SIP/101
    -- Called SIP/103
    -- SIP/103-09142868 is ringing
    -- SIP/101-090fb6a0 is ringing
    -- Stopped music on hold on SIP/74.63.41.218-b6036ae0
  == Spawn extension (trunkinbound, 8888651085, 3) exited non-zero on
'SIP/74.63.41.218-b6036ae0'

other erro is when i call to my tollfree number is rining 2 extencion the
101 and 103

-- 
Bayardo Sánchez García
Web Developer - Internet Portals - Asterisk Support - Windows Server Support
- Proxy Support - Linux Server
E-mail: bayardo.sanchez at gmail.com
Linux User: #418392
America Central - Managua, NI (505) 2249-2853 -  84886876  
IM msn messenger: bjsanchezg at hotmail.com
Skype: bayardo.sanchez
This email is intended solely for the person or organization to which it is
addressed. It may contain privileged and confidential information. If you
are not the intended recipient, you are prohibited from copying, disclosing
or distributing this email or its contents (as it may be unlawful for you to
do so) or taking any action in reliance on it. If you have received this
email by mistake, please delete it. All e-mail sent to this address will be
received by B.S. Solution e-mail system and is subject to archiving and
review by someone other than the recipient.


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
Bayardo Sánchez García
Web Developer - Internet Portals - Asterisk Support - Windows Server Support
- Proxy Support - Linux Server
E-mail: bayardo.sanchez at gmail.com
Linux User: #418392
America Central - Managua, NI (505) 2249-2853 -  84886876  
IM msn messenger: bjsanchezg at hotmail.com
Skype: bayardo.sanchez
This email is intended solely for the person or organization to which it is
addressed. It may contain privileged and confidential information. If you
are not the intended recipient, you are prohibited from copying, disclosing
or distributing this email or its contents (as it may be unlawful for you to
do so) or taking any action in reliance on it. If you have received this
email by mistake, please delete it. All e-mail sent to this address will be
received by B.S. Solution e-mail system and is subject to archiving and
review by someone other than the recipient.


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
Bayardo Sánchez García
Web Developer - Internet Portals - Asterisk Support - Windows Server Support
- Proxy Support - Linux Server
E-mail: bayardo.sanchez at gmail.com
Linux User: #418392
America Central - Managua, NI (505) 2249-2853 -  84886876  
IM msn messenger: bjsanchezg at hotmail.com
Skype: bayardo.sanchez
This email is intended solely for the person or organization to which it is
addressed. It may contain privileged and confidential information. If you
are not the intended recipient, you are prohibited from copying, disclosing
or distributing this email or its contents (as it may be unlawful for you to
do so) or taking any action in reliance on it. If you have received this
email by mistake, please delete it. All e-mail sent to this address will be
received by B.S. Solution e-mail system and is subject to archiving and
review by someone other than the recipient.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090814/a233fdec/attachment.htm 


More information about the asterisk-users mailing list