[asterisk-users] Asterisk not working with Festival

Davinder Kumar Meen davinder at impingeonline.com
Thu Aug 12 04:37:23 CDT 2010


I just noticed that if I change the dialplan (connect-to-me) to following
(shifting places of SayDigits and Festival() ):

[connect-to-me]
exten => s,1,Answer
exten => s,n,Festival(hello john)
exten => s,n,SayDigits('1')
exten => s,n,Hangup

I do not hear any voice, not even anyone saying ³one². It appears that
application hangs while processing festival command. Here is asterisk log:


   -- Attempting call on SIP/011xxxxxxxxxxxx at gafachi1a for s at connect-to-me:1
(Retry 1)
[Aug 12 14:48:16] DEBUG[7342]: chan_sip.c:23198 sip_request_call: Asked to
create a SIP channel with formats: 0x40 (slin)
[Aug 12 14:48:16] DEBUG[7342]: chan_sip.c:7336 sip_alloc: Allocating new SIP
dialog for 6743a3cc12499c6d7fb77bcd58ab7a02 at 202.164.37.235 - INVITE (With
RTP)
[Aug 12 14:48:16] DEBUG[7342]: chan_sip.c:5014 do_setnat: Setting NAT on RTP
to Off
[Aug 12 14:48:16] DEBUG[7342]: chan_sip.c:5440 sip_call: Outgoing Call for
011xxxxxxxxxxxx
[Aug 12 14:48:16] DEBUG[7342]: chan_sip.c:10180 add_sdp: ** Our capability:
0x4 (ulaw) Video flag: False Text flag: False
[Aug 12 14:48:16] DEBUG[7342]: chan_sip.c:10181 add_sdp: ** Our prefcodec:
0x40 (slin) 
[Aug 12 14:48:16] DEBUG[7342]: chan_sip.c:3275 initialize_initreq:
Initializing initreq for method INVITE - callid
581443ae14ba9e13288dd66720a6a9f4 at 202.164.37.235
[Aug 12 14:48:17] DEBUG[7342]: chan_sip.c:4061 __sip_ack: Acked pending
invite 102
[Aug 12 14:48:17] DEBUG[7342]: chan_sip.c:4098 __sip_ack: Stopping
retransmission on '581443ae14ba9e13288dd66720a6a9f4 at 202.164.37.235' of
Request 102: Match Found
[Aug 12 14:48:17] DEBUG[7342]: chan_sip.c:10180 add_sdp: ** Our capability:
0x4 (ulaw) Video flag: False Text flag: False
[Aug 12 14:48:17] DEBUG[7342]: chan_sip.c:10181 add_sdp: ** Our prefcodec:
0x40 (slin) 
[Aug 12 14:48:18] DEBUG[7342]: chan_sip.c:4098 __sip_ack: Stopping
retransmission on '581443ae14ba9e13288dd66720a6a9f4 at 202.164.37.235' of
Request 102: Match Not Found
[Aug 12 14:48:18] DEBUG[7342]: chan_sip.c:4139 __sip_semi_ack: (Provisional)
Stopping retransmission (but retaining packet) on
'581443ae14ba9e13288dd66720a6a9f4 at 202.164.37.235' Request 103: Found
[Aug 12 14:48:20] DEBUG[7342]: chan_sip.c:4139 __sip_semi_ack: (Provisional)
Stopping retransmission (but retaining packet) on
'581443ae14ba9e13288dd66720a6a9f4 at 202.164.37.235' Request 103: Found
[Aug 12 14:48:33] DEBUG[7342]: chan_sip.c:4061 __sip_ack: Acked pending
invite 103
[Aug 12 14:48:33] DEBUG[7342]: chan_sip.c:4098 __sip_ack: Stopping
retransmission on '581443ae14ba9e13288dd66720a6a9f4 at 202.164.37.235' of
Request 103: Match Found
       > Channel SIP/gafachi1a-00000000 was answered.
[Aug 12 14:48:33] DEBUG[7342]: pbx.c:3692 pbx_extension_helper: Launching
'Answer'
    -- Executing [s at connect-to-me:1] Answer("SIP/gafachi1a-00000000", "") in
new stack
[Aug 12 14:48:33] DEBUG[7342]: pbx.c:3692 pbx_extension_helper: Launching
'Festival'
    -- Executing [s at connect-to-me:2] Festival("SIP/gafachi1a-00000000",
"hello john") in new stack
  == Parsing '/usr/local/etc/asterisk/festival.conf': [Aug 12 14:48:33]
DEBUG[7342]: config.c:1330 config_text_file_load: Parsing
/usr/local/etc/asterisk/festival.conf
  == Found
[Aug 12 14:48:33] DEBUG[7342]: app_festival.c:376 festival_exec: Text passed
to festival server : hello john
[Aug 12 14:48:33] DEBUG[7342]: app_festival.c:446 festival_exec: Cache file
exists, strln=10, strlen=10
[Aug 12 14:48:33] DEBUG[7342]: app_festival.c:448 festival_exec: Size OK
[Aug 12 14:48:33] DEBUG[7342]: app_festival.c:467 festival_exec: Reading
from cache...
[Aug 12 14:48:33] DEBUG[7342]: app_festival.c:491 festival_exec: Passing
data to channel...
[Aug 12 14:48:33] DEBUG[7342]: app_festival.c:513 festival_exec: Festival WV
command
[Aug 12 14:48:33] DEBUG[7342]: channel.c:3881 set_format: Set channel
SIP/gafachi1a-00000000 to write format slin
==========================>[DAVINDER] - there is difference of 2 minutes in
the log line above and below. I have to end the call as well after waiting
so long. 
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:7336 sip_alloc: Allocating new SIP
dialog for 407cd1eb69781303206dd7d43ca348bc at 202.164.37.235 - REGISTER (No
RTP)
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:11744 transmit_register: Scheduled
a registration timeout for 67.216.45.45 id  #19
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:3275 initialize_initreq:
Initializing initreq for method REGISTER - callid
407cd1eb69781303206dd7d43ca348bc at 202.164.37.235
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:7336 sip_alloc: Allocating new SIP
dialog for 35cba4547c9dca423fd4c804010856cc at 202.164.37.235 - REGISTER (No
RTP)
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:11744 transmit_register: Scheduled
a registration timeout for 67.216.35.162 id  #21
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:3275 initialize_initreq:
Initializing initreq for method REGISTER - callid
35cba4547c9dca423fd4c804010856cc at 202.164.37.235
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:4139 __sip_semi_ack: (Provisional)
Stopping retransmission (but retaining packet) on
'407cd1eb69781303206dd7d43ca348bc at 202.164.37.235' Request 104: Found
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:4098 __sip_ack: Stopping
retransmission on '407cd1eb69781303206dd7d43ca348bc at 202.164.37.235' of
Request 104: Match Found
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:3273 initialize_initreq:
Initializing already initialized SIP dialog
407cd1eb69781303206dd7d43ca348bc at 202.164.37.235 (presumably reinvite)
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:4139 __sip_semi_ack: (Provisional)
Stopping retransmission (but retaining packet) on
'35cba4547c9dca423fd4c804010856cc at 202.164.37.235' Request 104: Found
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:4098 __sip_ack: Stopping
retransmission on '35cba4547c9dca423fd4c804010856cc at 202.164.37.235' of
Request 104: Match Found
[Aug 12 14:50:01] DEBUG[7342]: chan_sip.c:3273 initialize_initreq:
Initializing already initialized SIP dialog
35cba4547c9dca423fd4c804010856cc at 202.164.37.235 (presumably reinvite)
[Aug 12 14:50:02] DEBUG[7342]: chan_sip.c:4139 __sip_semi_ack: (Provisional)
Stopping retransmission (but retaining packet) on
'407cd1eb69781303206dd7d43ca348bc at 202.164.37.235' Request 105: Found
[Aug 12 14:50:02] DEBUG[7342]: chan_sip.c:4098 __sip_ack: Stopping
retransmission on '407cd1eb69781303206dd7d43ca348bc at 202.164.37.235' of
Request 105: Match Found
[Aug 12 14:50:02] DEBUG[7342]: chan_sip.c:18218 handle_response_register:
Registration successful
[Aug 12 14:50:02] DEBUG[7342]: chan_sip.c:18220 handle_response_register:
Cancelling timeout 19
[Aug 12 14:50:02] DEBUG[7342]: chan_sip.c:4139 __sip_semi_ack: (Provisional)
Stopping retransmission (but retaining packet) on
'35cba4547c9dca423fd4c804010856cc at 202.164.37.235' Request 105: Found
[Aug 12 14:50:02] DEBUG[7342]: chan_sip.c:4098 __sip_ack: Stopping
retransmission on '35cba4547c9dca423fd4c804010856cc at 202.164.37.235' of
Request 105: Match Found
[Aug 12 14:50:02] DEBUG[7342]: chan_sip.c:18218 handle_response_register:
Registration successful


And there is no log entry related to call terminated by remote.



On 11/08/10 11:22 PM, "Danny Nicholas" <danny at debsinc.com> wrote:

>  
> 
> 
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Davinder Kumar
> Meen
> Subject: Re: [asterisk-users] Asterisk not working with Festival
>  
> Can anyone help please on this?
> 
> <snip>
>> >[connect-to-me]
>> >exten => s,1,Answer
>> >Exten => s,n,SayDigits(Œ1¹)
>> >exten => s,n,Festival(hello john)
>> >exten => s,n,Hangup
> <snip>
> When you call in from your mobile, you are using a DAHDI channel which
> introduces a 3-7 second delay into the process, unless you have one of the
> ³blessed² phone companies that offers call supervision.  If you put a wait(7)
> in front of SayDigits, you should hear the call ³normally².
> This is what I would suggest
> [connect-to-me]
> exten => s,1,Answer
> Exten => s,n,Gotoif($[³${EXTEN}:0:3)² = ³SIP²]?4:3
> Exten => s,n,wait(7)
> Exten => s,n,SayDigits(Œ1¹)
> exten => s,n,Festival(hello john)
> exten => s,n,Hangup
> 
> 
>  
> 
> 
> 
> 
> 
> Thanks,
> Davinder Kumar Meen
> Partner & Project Manager
> Impinge Solutions, F-250, Phase 8B, Mohali (India)
> www.impingesolutions.com
> 
> We also provide server hosting services. Please checkout our website
> www.goforspace.com

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


More information about the asterisk-users mailing list