[asterisk-users] Alias for country in indications.conf
Richard Mudgett
rmudgett at digium.com
Mon Apr 23 08:17:11 CDT 2018
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 <pwakano at gmail.com> 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/60000
> stutter = 350+440/750,440/750
>
> The CLI shows Asterisk definitely understood the 'alias' parameter:
> CLI> indication show uk
> Country Indication PlayList
> =====================================
> uk <ringcadence> 400,200,400,2000
> *uk alias gb*
> uk dial 350+440
> uk specialdial 350+440/750,440/750
> uk busy 400/375,0/375
> uk congestion 400/400,0/350,400/225,0/525
> uk specialcongesti 400/200,1004/300
> uk unobtainable 400
> uk ring 400+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 info 950/330,0/15,1400/330,0/15,1800/330,0/1000
> uk record 1400/500,0/60000
> uk stutter 350+440/750,440/750
>
> But the dialplan execution causes this:
> ERROR[20778][C-00000006]: 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
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.
> www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180423/0d3878c6/attachment.html>
More information about the asterisk-users
mailing list