[asterisk-users] Unable to open file...

Warren Selby wcselby at selbytech.com
Sat Dec 12 21:38:32 CST 2009


Take the whitespace out of your ()'s. It's:

exten => 80,n,BackGround(es/good)

not

exten => 80,n,BackGround( es/good )



Thanks,
--Warren Selby

On Dec 12, 2009, at 9:16 PM, Landy Landy <landysaccount at yahoo.com>  
wrote:

>
> Same thing:
>
>  == Using SIP RTP CoS mark 5
>    -- Executing [80 at outbound:1] Answer("SIP/102-096a48c8", "") in  
> new stack
>    -- Executing [80 at outbound:2] Verbose("SIP/102-096a48c8", " "In  
> timeofday" ") in new stack
> In timeofday
>    -- Executing [80 at outbound:3] GotoIfTime("SIP/102-096a48c8", "  
> 00:00-12:00,*,*,*?day") in new stack
>    -- Executing [80 at outbound:4] GotoIfTime("SIP/102-096a48c8", "  
> 12:01-17:59,*,*,*?afternoon") in new stack
>    -- Executing [80 at outbound:5] GotoIfTime("SIP/102-096a48c8", "  
> 18:00-11:59,*,*,*?night") in new stack
>    -- Goto (outbound,80,16)
>    -- Executing [80 at outbound:16] Verbose("SIP/102-096a48c8",  
> ""Night.............."") in new stack
> Night..............
>    -- Executing [80 at outbound:17] BackGround("SIP/102-096a48c8", " es/ 
> good ") in new stack
> [Dec 12 23:24:07] WARNING[6343]: file.c:650 ast_openstream_full:  
> File  es/good  does not exist in any format
> [Dec 12 23:24:07] WARNING[6343]: file.c:933 ast_streamfile: Unable  
> to open  es/good  (format 0x8 (alaw)): No such f
> ile or directory
> [Dec 12 23:24:07] WARNING[6343]: pbx.c:8251 pbx_builtin_background:  
> ast_streamfile failed on SIP/102-096a48c8 for
> es/good
>    -- Executing [80 at outbound:18] BackGround("SIP/102-096a48c8", " es/ 
> evening ") in new stack
> [Dec 12 23:24:07] WARNING[6343]: file.c:650 ast_openstream_full:  
> File  es/evening  does not exist in any format
> [Dec 12 23:24:07] WARNING[6343]: file.c:933 ast_streamfile: Unable  
> to open  es/evening  (format 0x8 (alaw)): No suc
> h file or directory
> [Dec 12 23:24:07] WARNING[6343]: pbx.c:8251 pbx_builtin_background:  
> ast_streamfile failed on SIP/102-096a48c8 for
> es/evening
>    -- Executing [80 at outbound:19] Hangup("SIP/102-096a48c8", "") in  
> new stack
>  == Spawn extension (outbound, 80, 19) exited non-zero on 'SIP/ 
> 102-096a48c8'
>
> This is what the context looks like:
>
> [timeofday]
>
> exten => 80,1,Answer()
> exten => 80,n,Verbose( "In timeofday" )
> exten => 80,n,GotoIfTime( 00:00-12:00,*,*,*?day)
> exten => 80,n,GotoIfTime( 12:01-17:59,*,*,*?afternoon)
> exten => 80,n,GotoIfTime( 18:00-11:59,*,*,*?night)
>
> exten => 80,n(day),Verbose("It's Day..............")
> exten => 80,n,BackGround( es/good )
> exten => 80,n,Verbose("Day..............")
> exten => 80,n,BackGround( es/morning )
> exten => 80,n,hangup()
>
> exten => 80,n(afternoon),Verbose("It's Afternoon..............")
> exten => 80,n,BackGround( es/good )
> exten => 80,n,Verbose("afternoon..............")
> exten => 80,n,BackGround( es/afternoon )
> exten => 80,n,hangup()
>
>
> exten => 80,n(night),Verbose("Night..............")
> exten => 80,n,BackGround( es/good )
> exten => 80,n,BackGround( es/evening )
> exten => 80,n,hangup()
>
>
>
>
>
> _______________________________________________
> -- 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



More information about the asterisk-users mailing list