Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Oct 21, 2017 12:05 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: background music in callback
PostPosted: Tue Oct 02, 2012 1:37 pm 
Offline

Joined: Sun Nov 07, 2010 10:48 am
Posts: 27
Hello

Callback is working fine, wondering what is the proper way to add background music to the conversation?

So both parties are talking and at the same time some music is on the background as well.


Thanks for hints ;)

N


Top
 Profile  
 
 Post subject: Re: background music in callback
PostPosted: Wed Oct 10, 2012 8:17 pm 
Offline

Joined: Sun Nov 07, 2010 10:48 am
Posts: 27
it was a bit tricky, but here's the idea --
modify a2billing.php to put callee and called parties to different contexts and then

[a2billing-conference-room-callee]
exten => _X!,1,Answer()
exten => _X!,n,Set(CHANNEL(language)=ru)
exten => _X!,n,Playback(prepaid-callback_intro)
exten => _X!,n,Set(__ROOM=${EXTEN})
exten => _X!,n,MeetMe(${ROOM},dAx1q)
exten => _X!,n,Playback(prepaid-isbusy)
exten => h,1,MeetMeAdmin(${ROOM},K)

[a2billing-conference-room-called]
exten => _X!,1,Set(__ROOM=${EXTEN})
exten => _X!,n,Dial(Local/[email protected],,G(a2billing-conference-room-called,chat,1))
exten => fake,1,Answer()
exten => fake,n,ExecIf($[${LEN(${MOH})}!=0]?MusicOnHold(${MOH}))
exten => chat,1,Goto(100)
exten => chat,2,MeetMe(${ROOM},rdx1q)
exten => chat,100,MeetMe(${ROOM},daAx1q)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group