Fabrice Tereszkiewicz
2003-Jul-01 03:58 UTC
[Asterisk-Users] Unable to get SetMusicOnHold working...
Hello, I'm trying to do something really easy : transfer a PSTN call to a H323 client. This works great. Now I'm trying to use the SetMusicOnHold function. I din't find any doc about it, I've just seen some mails in the list archive, but it still doesn't work. That's my extension.conf : [incoming] exten => s,1,SetMusicOnHold,default exten => s,2,Dial(OH323/192.168.1.215) really short... my musiconhold.conf : [classes] default => mp3:/var/lib/asterisk/mohmp3/ and there are mp3's in my /var/lib/asterisk/mohmp3/ directory. I can hear music when I use : exten => s,4,MP3Player(/var/lib/asterisk/mohmp3/rem.mp3) So I don't know what to try, thanks for your help -- Fabrice Tereszkiewicz <fabrice.tz@eikonex.net>
Martin Pycko
2003-Jul-01 07:35 UTC
[Asterisk-Users] Unable to get SetMusicOnHold working...
You have to call Dial with ||m option to have music-on-hold while transfering Read the "show application dial" Martin On 1 Jul 2003, Fabrice Tereszkiewicz wrote:> Hello, > > I'm trying to do something really easy : transfer a PSTN call to a H323 > client. This works great. Now I'm trying to use the SetMusicOnHold > function. I din't find any doc about it, I've just seen some mails in > the list archive, but it still doesn't work. > > That's my extension.conf : > > [incoming] > exten => s,1,SetMusicOnHold,default > exten => s,2,Dial(OH323/192.168.1.215) > > really short... > my musiconhold.conf : > > [classes] > default => mp3:/var/lib/asterisk/mohmp3/ > > and there are mp3's in my /var/lib/asterisk/mohmp3/ directory. I can > hear music when I use : > > exten => s,4,MP3Player(/var/lib/asterisk/mohmp3/rem.mp3) > > So I don't know what to try, thanks for your help > -- > Fabrice Tereszkiewicz <fabrice.tz@eikonex.net> > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Fabrice Tereszkiewicz
2003-Jul-01 07:37 UTC
[Asterisk-Users] Unable to get SetMusicOnHold working...
There are my logs : Asterisk Ready. *CLI> -- Starting simple switch on 'Zap/1-1' -- Executing SetMusicOnHold("Zap/1-1", "default") in new stack -- Executing ResponseTimeout("Zap/1-1", "20") in new stack -- Set Response Timeout to 20 -- Executing Dial("Zap/1-1", "OH323/192.168.1.215") in new stack -- Called 192.168.1.215 Everything seems to be ok... On Tue, 2003-07-01 at 12:58, Fabrice Tereszkiewicz wrote:> Hello, > > I'm trying to do something really easy : transfer a PSTN call to a H323 > client. This works great. Now I'm trying to use the SetMusicOnHold > function. I din't find any doc about it, I've just seen some mails in > the list archive, but it still doesn't work. > > That's my extension.conf : > > [incoming] > exten => s,1,SetMusicOnHold,default > exten => s,2,Dial(OH323/192.168.1.215) > > really short... > my musiconhold.conf : > > [classes] > default => mp3:/var/lib/asterisk/mohmp3/ > > and there are mp3's in my /var/lib/asterisk/mohmp3/ directory. I can > hear music when I use : > > exten => s,4,MP3Player(/var/lib/asterisk/mohmp3/rem.mp3) > > So I don't know what to try, thanks for your help