John (versimedia)
2007-May-21 11:54 UTC
[asterisk-users] AGI: Festival & Ringing on Screening not working properly
I am running into two problems: 1) The ringing stops during call screening once the extension picks up (but has not yet approved call) When a person calls and choose an extension, the Dial link is called and the person hears the ring -- but as soon as the receiving caller picks up (even though they have to approved the call), the ringing stops... the person calling hears silence. This is obviously undesirable as it will confuse the person calling in... 2) Festival will not work during screening -- I want to use festival to announce a message but it plays nothing and the macro-screen seems to terminate immediately and connect the caller. I have tested that the Festival command does work in a normal situation (I put the line earlier before AGI is called without any problem) Oh this is under Asterisk 1.4.4 Thanks in advance, -John Code: AGI script executes ============= my $res = $AGI->exec("Dial","SIP/$call|20|rM(screen)"); where "$call" is a sip extension.. and the following macro in extensions.conf ============================== [macro-screen] exten => s,1,Wait(1) exten => s,n,Read(ACCEPT|initialGreeting|1) exten => s,n,Set(MACRO_RESULT=CONTINUE) exten => s,n,GotoIf($[${ACCEPT} = 1 ] ?60:50) exten => s,50,NoOp(1 not pressed) exten => s,n,Hangup() exten => s,60,Set(MACRO_RESULT=) exten => s,n,NoOp(Done) Above code works fine other than ringing issue but if I add this line after "Wait" then you hear nothing and it bombs out: =========== exten => s,n,Festival('You have received a business call') -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070521/80365ba7/attachment.htm