Hi, I'm running the 1.0 release of Asterisk an it is working nicely with our snom 105 phones. Hold puts the caller on hold, attended / unattended Transfer works directly with the snom buttons ... I have one question though: what does the snom exactly do to tell the * to put the call on hold (can I intercept this somewhere)? I would like to decide using the callerid which music on hold is tobe played: That is: play "free" music to calls from the outside but play copyrighted music if I put an internal call on hold (i.e. a co-worker). Is this possible ? regards, Magnus Jungsbluth
Sven Fischer (support)
2004-Oct-19 00:00 UTC
[Asterisk-Users] Intercept HOLD of Snom phones
Hi, do a SIP trace or PCAP trace of the scenario via the webinterface and you will see exactly, what is going on... Regards, Sven On Thursday 14 October 2004 21:53, Magnus Jungsbluth wrote:> Hi, > > I'm running the 1.0 release of Asterisk an it is working nicely with our > snom 105 phones. Hold puts the caller on hold, attended / unattended > Transfer works directly with the snom buttons ... > I have one question though: what does the snom exactly do to tell the * > to put the call on hold (can I intercept this somewhere)? > > I would like to decide using the callerid which music on hold is tobe > played: That is: play "free" music to calls from the outside but play > copyrighted music if I put an internal call on hold (i.e. a co-worker). > Is this possible ? > > regards, > Magnus Jungsbluth > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Magnus:> I would like to decide using the callerid which music on hold is tobe > played: That is: play "free" music to calls from the outside > but play copyrighted music if I put an internal call on hold > (i.e. a co-worker). > Is this possible ?Yes, and it's easier than intercepting the hold request. Add the following lines to your musiconhold.conf: INTERNAL => mp3:/var/lib/asterisk/mohmp3/internal EXTERNAL => mp3:/var/lib/asterisk/mohmp3/external and put your music into the appropriate directories. In the dial plan, for internal calls insert the line: exten => whatever,whatever,SetMusicOnHold(INTERNAL) and for external calls, insert the line: exten => whatever,whatever,SetMusicOnHold(EXTERNAL) in the appropriate places. Voila. Nick Barnes