Hello!
Short overview about my scenario:
- user1 is logged into my server (Asterisk 14.7.6. on CentOS 7.6)
- user2 is called from the server
- both users are put into a MeetMe-conference
- via shell script a .call file is created and moved to the conference folder. This .call file starts an audio playback of a .sln file which is hearable for both users
Problem:
As far as the audio playback is in progress, Asterisk does not notify a hangup of the callee (user2). Before and after finishing the playback the hangup is working. I read that “Playback” gives back the commands to Asterisk not before the playback has ended. That’s why I also tried to replace “Playback” with “BAckground”. But here the same problem.
Has someone an idea where the problem is?
[separator]
exten => s,1,Goto(fun1,s,1)
exten => s,2,Goto(fun2,s,1)
[fun1]
exten => s,1,NoOp(Data 1: CONF=${CONF} INIT_CHANNEL=${INIT_CHANNEL})
exten => s,n,MeetMe(${CONF},Akmqd)
exten => s,n,Hangup
[fun2]
exten => s,1,NoOp(Data 2: CONF=${CONF} INIT_CHANNEL=${INIT_CHANNEL})
exten => s,n,Wait(0.5)
exten => s,n,MeetMe(${CONF},kxqd)
exten => s,n,AGI(kill_channel.sh,${INIT_CHANNEL})
exten => s,n,NoOp("NOT_IN_THE_MEETME")
exten => s,n,Hangup
[inject-sound]
exten => s,1,MeetMe(${CONF},qd)
exten => s,n,NoOp("AFTER MEETME")
exec('echo "Channel: Local/s@inject-sound" > /tempcids/'.$cidf);
exec('echo "Application: Background" >> /tempcids/'.$cidf);
exec('echo "Data: /var/lib/asterisk/sounds/en/'.$ac.'" >> /tempcids/'.$cidf);
exec('echo "Archive: Yes" >> /tempcids/'.$cidf);
exec('echo "Set: CONF='.$cid.'" >> /tempcids/'.$cidf);
exec('mv /tempcids/'.$cidf.' /var/spool/asterisk/outgoing');
Best regards
Marc