Re: [asterisk-users] Alias for country in indications.conf

2018-04-23 Thread Patrick Wakano
That's quite interesting Tzafrir!
I will give it a try!
Thank you very much for the idea!
Cheers,
Patrick Wakano


On 23 April 2018 at 23:42, Tzafrir Cohen  wrote:

> Also,
>
> On Mon, Apr 23, 2018 at 04:08:58PM +1000, Patrick Wakano wrote:
> > Hello list,
> > Hope you all doing fine!
> > I've tried to use the 'alias' directive in the indications.conf file but
> > apparently it doesn't work
> > It looks like maybe this feature was removed, because old sample for the
> > indications.conf file have example using the alias parameter, but newer
> > samples don't have it anymore also I couldn't find any ticket saying
> > this parameter was deprecated Anyway when trying to use it, it
> doesn't
> > work. Anyone aware of some change related to this?
> > I am using Asterisk 13.6.0 and have this in indications.conf:
> > [uk]
> > *alias = gb*
>
> Given that aliases don't work, you can alternatively use:
>
> ;;;
> [uk]
> description=
> ringcadence=
> ...
>
> [gb](uk)
> ;;;
>
> --
>Tzafrir Cohen
> +972-50-7952406   mailto:tzafrir.co...@xorcom.com
> http://www.xorcom.com
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Alias for country in indications.conf

2018-04-23 Thread Patrick Wakano
Hello Richard!
Thanks very much for your answer! It all makes sense.
I will just duplicated the tones config then!
Thanks again!
Cheers!
Patrick Wakano

On 23 April 2018 at 23:17, Richard Mudgett  wrote:

> It looks like any support for "alias" as a tone zone alias feature was
> removed
> back in 2009 (in git commit 4ec301360cdd84be911b06cd0adda2459d66bc6e) as
> part of a code cleanup likely because alias was poorly conceived and didn't
> work.  What you have done by defining "alias" now is to define a tone event
> called alias with a tone cadence of "gb".
>
> Richard
>
> On Mon, Apr 23, 2018 at 1:08 AM, Patrick Wakano  wrote:
>
>> Hello list,
>> Hope you all doing fine!
>> I've tried to use the 'alias' directive in the indications.conf file but
>> apparently it doesn't work
>> It looks like maybe this feature was removed, because old sample for the
>> indications.conf file have example using the alias parameter, but newer
>> samples don't have it anymore also I couldn't find any ticket saying
>> this parameter was deprecated Anyway when trying to use it, it doesn't
>> work. Anyone aware of some change related to this?
>> I am using Asterisk 13.6.0 and have this in indications.conf:
>> [uk]
>> *alias = gb*
>> description = United Kingdom
>> ringcadence = 400,200,400,2000
>> ; These are the official tones taken from BT SIN350. The actual tones
>> ; used by BT include some volume differences so sound slightly different
>> ; from Asterisk-generated ones.
>> dial = 350+440
>> ; Special dial is the intermittent dial tone heard when, for example,
>> ; you have a divert active on the line
>> specialdial = 350+440/750,440/750
>> ; Busy is also called "Engaged"
>> busy = 400/375,0/375
>> ; "Congestion" is the Beep-bip engaged tone
>> congestion = 400/400,0/350,400/225,0/525
>> ; "Special Congestion" is not used by BT very often if at all
>> specialcongestion = 400/200,1004/300
>> unobtainable = 400
>> ring = 400+450/400,0/200,400+450/400,0/2000
>> callwaiting = 400/100,0/4000
>> ; BT seem to use "Special Call Waiting" rather than just "Call Waiting"
>> tones
>> specialcallwaiting = 400/250,0/250,400/250,0/250,400/250,0/5000
>> ; "Pips" used by BT on payphones. (Sounds wrong, but this is what BT
>> claim it
>> ; is and I've not used a payphone for years)
>> creditexpired = 400/125,0/125
>> ; These two are used to confirm/reject service requests on exchanges that
>> ; don't do voice announcements.
>> confirm = 1400
>> switching = 400/200,0/400,400/2000,0/400
>> ; This is the three rising tones Doo-dah-dee "Special Information Tone",
>> ; usually followed by the BT woman saying an appropriate message.
>> info = 950/330,0/15,1400/330,0/15,1800/330,0/1000
>> ; Not listed in SIN350
>> record = 1400/500,0/6
>> stutter = 350+440/750,440/750
>>
>> The CLI shows Asterisk definitely understood the 'alias' parameter:
>> CLI> indication show uk
>> Country Indication  PlayList
>> =
>> uk 400,200,400,2000
>> *uk  alias   gb*
>> uk  dial350+440
>> uk  specialdial 350+440/750,440/750
>> uk  busy400/375,0/375
>> uk  congestion  400/400,0/350,400/225,0/525
>> uk  specialcongesti 400/200,1004/300
>> uk  unobtainable400
>> uk  ring400+450/400,0/200,400+450/400,0/2000
>> uk  callwaiting 400/100,0/4000
>> uk  specialcallwait 400/250,0/250,400/250,0/250,400/250,0/5000
>> uk  creditexpired   400/125,0/125
>> uk  confirm 1400
>> uk  switching   400/200,0/400,400/2000,0/400
>> uk  info950/330,0/15,1400/330,0/15,1800/330,0/1000
>> uk  record  1400/500,0/6
>> uk  stutter 350+440/750,440/750
>>
>> But the dialplan execution causes this:
>> ERROR[20778][C-0006]: func_channel.c:661 func_channel_write_real:
>> Unknown country code '*gb*' for tonezone. Check indications.conf for
>> available country codes.
>>
>> Any info is much appreciated!
>> Cheers,
>> Patrick Wakano
>>
>>
>> 
>>  Virus-free.
>> www.avg.com
>> 
>> <#m_-2185993485021781932_m_4360720622955853513_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> --
>> _
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
> --
> _
> -- Bandwidth and 

Re: [asterisk-users] Alias for country in indications.conf

2018-04-23 Thread Tzafrir Cohen
Also,

On Mon, Apr 23, 2018 at 04:08:58PM +1000, Patrick Wakano wrote:
> Hello list,
> Hope you all doing fine!
> I've tried to use the 'alias' directive in the indications.conf file but
> apparently it doesn't work
> It looks like maybe this feature was removed, because old sample for the
> indications.conf file have example using the alias parameter, but newer
> samples don't have it anymore also I couldn't find any ticket saying
> this parameter was deprecated Anyway when trying to use it, it doesn't
> work. Anyone aware of some change related to this?
> I am using Asterisk 13.6.0 and have this in indications.conf:
> [uk]
> *alias = gb*

Given that aliases don't work, you can alternatively use:

;;;
[uk]
description=
ringcadence=
...

[gb](uk)
;;;

-- 
   Tzafrir Cohen
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Alias for country in indications.conf

2018-04-23 Thread Richard Mudgett
It looks like any support for "alias" as a tone zone alias feature was
removed
back in 2009 (in git commit 4ec301360cdd84be911b06cd0adda2459d66bc6e) as
part of a code cleanup likely because alias was poorly conceived and didn't
work.  What you have done by defining "alias" now is to define a tone event
called alias with a tone cadence of "gb".

Richard

On Mon, Apr 23, 2018 at 1:08 AM, Patrick Wakano  wrote:

> Hello list,
> Hope you all doing fine!
> I've tried to use the 'alias' directive in the indications.conf file but
> apparently it doesn't work
> It looks like maybe this feature was removed, because old sample for the
> indications.conf file have example using the alias parameter, but newer
> samples don't have it anymore also I couldn't find any ticket saying
> this parameter was deprecated Anyway when trying to use it, it doesn't
> work. Anyone aware of some change related to this?
> I am using Asterisk 13.6.0 and have this in indications.conf:
> [uk]
> *alias = gb*
> description = United Kingdom
> ringcadence = 400,200,400,2000
> ; These are the official tones taken from BT SIN350. The actual tones
> ; used by BT include some volume differences so sound slightly different
> ; from Asterisk-generated ones.
> dial = 350+440
> ; Special dial is the intermittent dial tone heard when, for example,
> ; you have a divert active on the line
> specialdial = 350+440/750,440/750
> ; Busy is also called "Engaged"
> busy = 400/375,0/375
> ; "Congestion" is the Beep-bip engaged tone
> congestion = 400/400,0/350,400/225,0/525
> ; "Special Congestion" is not used by BT very often if at all
> specialcongestion = 400/200,1004/300
> unobtainable = 400
> ring = 400+450/400,0/200,400+450/400,0/2000
> callwaiting = 400/100,0/4000
> ; BT seem to use "Special Call Waiting" rather than just "Call Waiting"
> tones
> specialcallwaiting = 400/250,0/250,400/250,0/250,400/250,0/5000
> ; "Pips" used by BT on payphones. (Sounds wrong, but this is what BT claim
> it
> ; is and I've not used a payphone for years)
> creditexpired = 400/125,0/125
> ; These two are used to confirm/reject service requests on exchanges that
> ; don't do voice announcements.
> confirm = 1400
> switching = 400/200,0/400,400/2000,0/400
> ; This is the three rising tones Doo-dah-dee "Special Information Tone",
> ; usually followed by the BT woman saying an appropriate message.
> info = 950/330,0/15,1400/330,0/15,1800/330,0/1000
> ; Not listed in SIN350
> record = 1400/500,0/6
> stutter = 350+440/750,440/750
>
> The CLI shows Asterisk definitely understood the 'alias' parameter:
> CLI> indication show uk
> Country Indication  PlayList
> =
> uk 400,200,400,2000
> *uk  alias   gb*
> uk  dial350+440
> uk  specialdial 350+440/750,440/750
> uk  busy400/375,0/375
> uk  congestion  400/400,0/350,400/225,0/525
> uk  specialcongesti 400/200,1004/300
> uk  unobtainable400
> uk  ring400+450/400,0/200,400+450/400,0/2000
> uk  callwaiting 400/100,0/4000
> uk  specialcallwait 400/250,0/250,400/250,0/250,400/250,0/5000
> uk  creditexpired   400/125,0/125
> uk  confirm 1400
> uk  switching   400/200,0/400,400/2000,0/400
> uk  info950/330,0/15,1400/330,0/15,1800/330,0/1000
> uk  record  1400/500,0/6
> uk  stutter 350+440/750,440/750
>
> But the dialplan execution causes this:
> ERROR[20778][C-0006]: func_channel.c:661 func_channel_write_real:
> Unknown country code '*gb*' for tonezone. Check indications.conf for
> available country codes.
>
> Any info is much appreciated!
> Cheers,
> Patrick Wakano
>
>
> 
>  Virus-free.
> www.avg.com
> 
> <#m_4360720622955853513_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Alias for country in indications.conf

2018-04-23 Thread Patrick Wakano
Hello list,
Hope you all doing fine!
I've tried to use the 'alias' directive in the indications.conf file but
apparently it doesn't work
It looks like maybe this feature was removed, because old sample for the
indications.conf file have example using the alias parameter, but newer
samples don't have it anymore also I couldn't find any ticket saying
this parameter was deprecated Anyway when trying to use it, it doesn't
work. Anyone aware of some change related to this?
I am using Asterisk 13.6.0 and have this in indications.conf:
[uk]
*alias = gb*
description = United Kingdom
ringcadence = 400,200,400,2000
; These are the official tones taken from BT SIN350. The actual tones
; used by BT include some volume differences so sound slightly different
; from Asterisk-generated ones.
dial = 350+440
; Special dial is the intermittent dial tone heard when, for example,
; you have a divert active on the line
specialdial = 350+440/750,440/750
; Busy is also called "Engaged"
busy = 400/375,0/375
; "Congestion" is the Beep-bip engaged tone
congestion = 400/400,0/350,400/225,0/525
; "Special Congestion" is not used by BT very often if at all
specialcongestion = 400/200,1004/300
unobtainable = 400
ring = 400+450/400,0/200,400+450/400,0/2000
callwaiting = 400/100,0/4000
; BT seem to use "Special Call Waiting" rather than just "Call Waiting"
tones
specialcallwaiting = 400/250,0/250,400/250,0/250,400/250,0/5000
; "Pips" used by BT on payphones. (Sounds wrong, but this is what BT claim
it
; is and I've not used a payphone for years)
creditexpired = 400/125,0/125
; These two are used to confirm/reject service requests on exchanges that
; don't do voice announcements.
confirm = 1400
switching = 400/200,0/400,400/2000,0/400
; This is the three rising tones Doo-dah-dee "Special Information Tone",
; usually followed by the BT woman saying an appropriate message.
info = 950/330,0/15,1400/330,0/15,1800/330,0/1000
; Not listed in SIN350
record = 1400/500,0/6
stutter = 350+440/750,440/750

The CLI shows Asterisk definitely understood the 'alias' parameter:
CLI> indication show uk
Country Indication  PlayList
=
uk 400,200,400,2000
*uk  alias   gb*
uk  dial350+440
uk  specialdial 350+440/750,440/750
uk  busy400/375,0/375
uk  congestion  400/400,0/350,400/225,0/525
uk  specialcongesti 400/200,1004/300
uk  unobtainable400
uk  ring400+450/400,0/200,400+450/400,0/2000
uk  callwaiting 400/100,0/4000
uk  specialcallwait 400/250,0/250,400/250,0/250,400/250,0/5000
uk  creditexpired   400/125,0/125
uk  confirm 1400
uk  switching   400/200,0/400,400/2000,0/400
uk  info950/330,0/15,1400/330,0/15,1800/330,0/1000
uk  record  1400/500,0/6
uk  stutter 350+440/750,440/750

But the dialplan execution causes this:
ERROR[20778][C-0006]: func_channel.c:661 func_channel_write_real:
Unknown country code '*gb*' for tonezone. Check indications.conf for
available country codes.

Any info is much appreciated!
Cheers,
Patrick Wakano


Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users