Asterisk Play a file while calling for curl -


in dialplan need call php
exten => 6666,n,set(foo=${curl(http://reports.cr.mrgroup.in/ivr/sp.php?tid=${tid})}) gives reponse after 1 min or 2min , want play music file in these times
please give me idea how achieve

what you're going want use startmusiconhold() -- use when i've got other processing need (in 1 case, while there's long tts conversion)

you can find more running asterisk*cli> core show application startmusiconhold

an example looks this:

exten => test,1,answer() same =>       n,startmusiconhold() same =>       n,wait(20)            ; processing here. same =>       n,stopmusiconhold() same =>       n,hangup() 

also music on hold configuration live @ /etc/asterisk/musiconhold.conf -- if install sample configuration, there documentation inline.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -