[Asterisk-Users] Re: Polycom IP501 with Asterisk - distinctive
Noah Miller
noah at rosecompanies.com
Thu Feb 9 10:10:24 MST 2006
Hi Andrew -
> I have a need to be able to identify incoming calls based on some factor
> (could be time of day, caller ID, dialed number, it doesn't matter.) --
> Assuming Asterisk can differentiate between the calls I want, how do I inform
> the IP501? There are "only" three line appearances -- I can't simply just
> ring a different appearance since there aren't enough of them.
>
> Is there a way to get Asterisk to tell the IP501 to use a different ring, put
> something up on the display, *something* on a dynamic basis? The wiki
> doesn't seem to have a lot of information about this kind of thing.
In your dialplan, you'll need to set the _ALERT_INFO variable to whatever
you'd like your ring to be. Your choices are in sip.cfg in two places:
Right at the beginning, you'll see a line like this:
<alertInfo voIpProt.SIP.alertInfo.1.value=""
voIpProt.SIP.alertInfo.1.class=""/>
And then later on, you'll see some lines that look something like this:
<ringType se.rt.enabled="1" se.rt.modification.enabled="1">
<DEFAULT se.rt.1.name="Default" se.rt.1.type="ring" ... />
<VISUAL_ONLY se.rt.2.name="Visual" se.rt.2.type="visual"/>
<AUTO_ANSWER se.rt.3.name="Auto Answer" se.rt.3.type="answer"/>
<RING_ANSWER se.rt.4.name="Ring Answer" se.rt.4.type="ring-answer"
se.rt.4.timeout="500" se.rt.4.ringer="7" />
<CUSTOM_1 se.rt.8.name="Custom 1" se.rt.8.type="ring"
se.rt.8.ringer="5" se.rt.8.callWait="7" se.rt.8.mod="1"/>
In the alertInfo at the beginning, put in one of the name fields like
"Custom 1", and then for the class enter the corresponding number specified.
For example:
<alertInfo voIpProt.SIP.alertInfo.1.value="Custom 1"
voIpProt.SIP.alertInfo.1.class="8"/>
Then in your dialplan, set _ALERT_INFO to Custom 1:
Set(_ALERT_INFO=Custom 1) ; Notice there are no quotes
You can set multiple distinctive rings by increasing the number on the XML
tag:
<alertInfo voIpProt.SIP.alertInfo.2.value="Custom 2"
voIpProt.SIP.alertInfo.2.class="9"/>
- Noah
More information about the asterisk-users
mailing list