[asterisk-users] Generating a different countries ringtone on a per call basis

Gareth Blades mailinglist+asterisk at dns99.co.uk
Thu Sep 26 10:08:35 CDT 2013


On 26/09/13 14:59, Rusty Newton wrote:
> On Wed, Sep 25, 2013 at 6:45 AM, Gareth Blades
> <mailinglist+asterisk at dns99.co.uk>  wrote:
>> We can use the Dial() command with the 'r' option in order to generate the
>> UK ringtone (as we are UK based the default is UK).
>> How do we generate a USA ringtone for example?
>>
>> I have tried setting the CHANNEL(language) and CHANNEL(tonezone) to 'us'
>> (and calling Progress() beforehand) and although this works for Playtones()
>> the Dial command still continues to play the UK ringtone.
>>
>> Any ideas?
> Try the following:
>
> extension =>  6001,1,Set(CHANNEL(tonezone)=us)
> same =>  n,Dial(SIP/6001,,r(ring))
>
> The argument passed to the r option should be the specific tone in the
> category of the tonezone you are setting.
>
Thanks. I did try that as pretty much the first thing I tried but it 
continued to play the UK ring tone.
Its not a big issue as we can work around it by playing music on hold 
instead which is a recording of the required ring tone. Having asterisk 
generate it just seemed the neater option.




More information about the asterisk-users mailing list