[asterisk-users] Playback uses channel's language, background doesn't

kjcsb kjcsb at yahoo.com
Mon Feb 26 18:20:07 MST 2007


I have the following in the dialplan:
[macro-systemrecording]
exten => s,1,Goto(${ARG1},1)
exten => dorecord,1,Record(/tmp/${CALLERID(number)}-ivrrecording:wav)
exten => dorecord,n,Wait(1)
exten => dorecord,n,Goto(confmenu,1)
exten => docheck,1,Playback(/tmp/${CALLERID(number)}-ivrrecording)
exten => docheck,n,Wait(1)
exten => docheck,n,Goto(confmenu,1)
exten => confmenu,1,Background(to-listen-to-it&press-1&to-rerecord-it&press-star|m||macro-systemrecording)
exten => confmenu,n,Read(RECRESULT||1|||4)
exten => confmenu,n,GotoIf($["x${RECRESULT}"="x*"]?dorecord,1)
exten => confmenu,n,GotoIf($["x${RECRESULT}"="x1"]?docheck,1)
exten => confmenu,n,Goto(1)
exten => 1,1,Goto(docheck,1)
exten => *,1,Goto(dorecord,1)
exten => t,1,Playback(goodbye)
exten => t,n,Hangup
exten => i,1,Playback(pm-invalid-option)
exten => i,n,Goto(confmenu,1)
exten => h,1,Hangup

When this is called the following is shown in the CLI
    -- Goto (macro-systemrecording,docheck,1)
    -- Executing Playback("SIP/223344-0928bbb8", "/tmp/2595-ivrrecording") in new stack
    -- Playing '/tmp/2595-ivrrecording' (language 'nz')
    -- Executing Wait("SIP/223344-0928bbb8", "1") in new stack
    -- Executing Goto("SIP/223344-0928bbb8", "confmenu|1") in new stack
    -- Goto (macro-systemrecording,confmenu,1)
    -- Executing BackGround("SIP/223344-0928bbb8", "to-listen-to-it&press-1&to-rerecord-it&press-star|m||macro-systemrecording") in new stack
    -- Playing 'to-listen-to-it' (language '')

As can be seen, Playback uses the channel's language 'nz' but BackGround does not. Could anyone advise what I'm doing wrong?

Thanks

Cameron


	
	
		
___________________________________________________________ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070226/47866227/attachment.htm


More information about the asterisk-users mailing list