[Asterisk-Users] How to execute StopPlayTones when a SIP phone is answered

Chris Coulthurst asterisk at shuksan.com
Thu Sep 1 04:41:34 MST 2005


I'm trying to find a way to generate an 'internal extensions' tonelist but I can't seem to find anything on how to do this.  My idea was to start a Playtones(intercom) tonelist and not indicate ringing to the line (dead air).  But then, somehow StopPlayTones needs to be run once the ringing telephone picks up.

This seems like a dirty way to do this.  I envision an option to the Dial cmd's option 'r', where you could specify a ringtone to play if not the default, i.e.
In indications.conf:

[us]
...
...
ring = 400+450/400,0/200,400+450/400,0/2000
intercom = 400+450/400,0/200,400+450/400,0/2000 ;FRESHLY ADDED AND STOLEN FROM [uk] section.

1001,1,Dial(SIP/1001,20,r{intercom})

For what its worth, I'm trying to use the standard UK ringtones for an internal extension.  This behavior mimics several different PBXs and KSUs on the market.


Does anyone have something like this working?

Chris Coulthurst
chris at shuksan.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050901/7e6c4677/attachment.htm


More information about the asterisk-users mailing list