Do you have an enrty like this? Or do you have both a sip.cfg and an ipmid.cfg file?<br><br><span class="q"><alertInfo voIpProt.SIP.alertInfo.2.value="RA"<br>voIpProt.SIP.alertInfo.2.class="4"/></span>
<br><br><div><span class="gmail_quote">On 7/18/06, <b class="gmail_sendername">Dovid Bender</b> <<a href="mailto:asteriskusers@dovid.net">asteriskusers@dovid.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I cant do step 2.<br>I cant find:<br><br>2. Okay, see how the SIPAddHeader includes "Ring Answer"? That word or words<br>will be matched by alertInfo in sip.cfg in order to figure out what to do.<br>You are using the config files from
<a href="http://krisk.org">krisk.org</a> listed above, right? If not,<br>go get them now. I'll wait. So in sip.cfg in the <voIpProt><SIP> section you<br>need a line like:<br><br><alertInfo voIpProt.SIP.alertInfo.2.value=
"Ring Answer"<br>voIpProt.SIP.alertInfo.2.class="4"/><br><br>----- Original Message -----<br>From: "Brian Vincent (C)" <<a href="mailto:VincentB@coppercolorado.com">VincentB@coppercolorado.com
</a>><br>To: "Asterisk Users Mailing List - Non-Commercial Discussion"<br><<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>Sent: Tuesday, July 18, 2006 5:09 PM<br>
Subject: RE: [asterisk-users] Polycom 601 and Paging<br><br><br><br>I have these instructions on the wiki in the comments section. I had a hard<br>time following the directions too, but I finally got it to work:<br><br>We've got 3 things going on with setting up Auto Answer and Ring Answer.
<br>Let's detail this process from beginning to end using Ring Answer as our<br>example. (Auto Answer isn't much different except you want to make sure step<br>#2 below goes to class 3 rather than 4, and that class 3 is set up as
<br>described elsewhere which is the same as the one in the ipmid.cfg file from<br>krisk.org.)<br><br>1. First, use the SIPAddHeader() directive in Asterisk to properly alert the<br>phone. In my situation, I have 10 phones with 2-digit extensions. I want to
<br>call each phone by prefixing the extension with a "1" in order to activate<br>the intercom. For example, if I dial 126 I want it to put extension 26 on<br>speakerphone. So go into extensions.conf and make sure you create a new
<br>section like this:<br><a href='icm-auto-answer'>icm-auto-answer </a href='icm-auto-answer'><br>;intercom<br>exten => _12x,1,SIPAddHeader(Alert-Info: Ring Answer)<br>exten => _12x,2,Dial(sip/${EXTEN:1:3})
<br>exten => _12x,3,Hangup<br>exten => _12x,102,Hangup<br><br>Then make sure in your from-internal section of extensions.conf you have a<br>include => icm-auto-answer<br><br>2. Okay, see how the SIPAddHeader includes "Ring Answer"? That word or words
<br>will be matched by alertInfo in sip.cfg in order to figure out what to do.<br>You are using the config files from <a href="http://krisk.org">krisk.org</a> listed above, right? If not,<br>go get them now. I'll wait. So in
sip.cfg in the <voIpProt><SIP> section you<br>need a line like:<br><br><alertInfo voIpProt.SIP.alertInfo.2.value="Ring Answer"<br>voIpProt.SIP.alertInfo.2.class="4"/><br><br>The value parameter must match whatever you use in the SIPAddHeader string.
<br>In this case they're both "Ring Answer". You could just as easily replace<br>both with the word "Foo" or "RA".<br><br>3. Now, the alertInfo tag will match that value and then go to the "class"
<br>value to figure out what to do. Se we need to make sure class="4" is set up<br>properly. You could probably set up class 4 in sip.cfg, but mine lives in<br>ipmid.cfg. So go into ipmid.cfg and locate the <ringtypes> section. Below
<br>that tag (and before it's corresponding </ringtype> closing tag) you need to<br>make sure class 4 is set up right. You should have this line:<br><RING_ANSWER se.rt.4.name="Ring Answer" se.rt.4.type=
"ring-answer"<br>se.rt.4.timeout="1000" se.rt.4.ringer="2" se.rt.4.callWait="6"<br>se.rt.4.mod="1"/><br><br>The notes above describe that line. The key is that this is class 4 as noted
<br>by the 3rd part of the value names - <a href="http://se.rt.4.name">se.rt.4.name</a>. I'd like to add that the<br>keyword "RING_ANSWER" is meaningless, it's just a human-readable tag.<br><br>Got all that? The SIPAddHeader of "Ring Answer" hits the <alertInfo> tag to
<br>figure out which class to go to. Then the class in ipmid.cfg says, "Oh, I'm<br>a "ring-answer" type and my firmware knows what to do with that type."<br><br>One test you can do is to connect to asterisk ($ asterisk -r), bump your
<br>verbosity up (<tt>set verbose 6</tt>), and try to place a call using that<br>context from step #1. You'll see one phone calling another and within the<br>Asterisk CLI you should see the following message appear:
<br>- Executing SIPAddHeader("SIP/20-86bc", "Alert-Info: Ring Answer") in new<br>stack<br /><br>Extension Changed 20 new state InUse for Notify User 26<br /><br>- Executing Dial("SIP/20-86bc", "sip/26") in new stack<br />
<br>- Called 26<br /><br>- SIP/26-0448 is ringing<br /><br>- SIP/26-0448 answered SIP/20-86bc<br /><br>- Attempting native bridge of SIP/20-86bc and SIP/26-0448<br><br>If you don't see that Alert-Info: Ring Answer being sent, then you know you
<br>haven't gotten the first step right.<br><br>Also, I made the mistake of putting some comments into the .cfg files and<br>the comments seemed to screw up the parser. It ignored seemingly random<br>lines (i.e. non-comment ones). I'm not a complete moron since I've been
<br>writing XML for 6 years (and HTML for 11) but it goes to show how careful<br>you should be. Anyway, I use "xmllint" on config files now before rebooting<br>the phones to make sure I didn't make a dumb typo.<br>
-------------------<br>Brian Vincent<br>Copper Mountain Telecom<br><a href="mailto:vincentb@coppercolorado.com">vincentb@coppercolorado.com</a><br><br>______________________________________________________________________________________________________________
<br><br>Confidentiality Warning: This message and any attachments are intended only<br>for the use of the intended recipient(s),<br>are confidential, and may be privileged. If you are not the intended<br>recipient, you are hereby notified that any review,
<br>retransmission, conversion to hard copy, copying, circulation or other use<br>of this message and any attachments is strictly<br>prohibited. If you are not the intended recipient, please notify the sender<br>immediately by return e-mail, and delete this
<br>message and any attachments from your system. Thank you.<br>______________________________________________________________________________________________________________<br><br><br>_______________________________________________
<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list
<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>
-- <br>Bruce<br>Nortex Networks