Hi All - I'm trying to implement the auto-answer config from the wiki, but the result for me is that the phone just rings as normal. I'm running firmware version 1.4.1 on an IP500. I've added the following to my sip.cfg: <alertInfo voIpProt.SIP.alertInfo.2.value="Ring Answer" voIpProt.SIP.alertInfo.2.class="4"/> and this to my ipmid.cfg <RING_ANSWER se.rt.4.name="Ring Answer" se.rt.4.type="ring-answer" se.rt.4.timeout="1000" se.rt.4.ringer="7" se.rt.4.callWait="6" se.rt.4.mod="1"/> I'm trying to invoke this from the dialplan like this: ; Intercom exten => _8XX,1,SetVar(ALERT_INFO=Ring Answer) exten => _8XX,2,Dial(SIP/${EXTEN:1},20) exten => _8XX,3,Hangup I've tried putting the "Ring Answer" in quotes, Dial without the "20", and a bunch of other little nuances. When I dial, the console just says this: -- Executing SetVar("SIP/27-8b27", "ALERT_INFO=Ring Answer") in new stack -- Executing Dial("SIP/27-8b27", "SIP/19|20") in new stack -- Called 19 -- SIP/19-e562 is ringing and the phone just rings. Any ideas? Is it the firmware version? Am I not setting ALERT_INFO correctly? Thanks, Noah
Kevin P. Fleming
2005-Feb-03 14:21 UTC
[Asterisk-Users] Can't get Polycom auto-answer to work
Noah Miller wrote:> -- Executing SetVar("SIP/27-8b27", "ALERT_INFO=Ring Answer") in new > stack > -- Executing Dial("SIP/27-8b27", "SIP/19|20") in new stack > -- Called 19 > -- SIP/19-e562 is ringing > > and the phone just rings. Any ideas? Is it the firmware version? Am I > not setting ALERT_INFO correctly?It's possible, but hard to say since you didn't tell us what version of Asterisk you are using. If you are using CVS HEAD (and not the stable series), you will have to set _ALERT_INFO instead, so it will be carried down into the channel that the Dial app creates.
Noah Miller
2005-Feb-03 16:08 UTC
[Asterisk-Users] Re: Can't get Polycom auto-answer to work
> > -- Executing SetVar("SIP/27-8b27", "ALERT_INFO=Ring Answer") in > new > > stack > > -- Executing Dial("SIP/27-8b27", "SIP/19|20") in new stack > > -- Called 19 > > -- SIP/19-e562 is ringing > > > > and the phone just rings. Any ideas? Is it the firmware version? > Am I > > not setting ALERT_INFO correctly? > > It's possible, but hard to say since you didn't tell us what version of > Asterisk you are using. If you are using CVS HEAD (and not the stable > series), you will have to set _ALERT_INFO instead, so it will be > carried > down into the channel that the Dial app creates.It's an older version of CVS HEAD: CVS-HEAD-11/03/04-14:59:37 I tried with _ALERT_INFO also - the result is the same. Thanks! Noah
Noah Miller
2005-Feb-04 11:05 UTC
[Asterisk-Users] Re: Can't get Polycom auto-answer to work
>>>> -- Executing SetVar("SIP/27-8b27", "ALERT_INFO=Ring Answer") in >>> new >>>> stack >>>> -- Executing Dial("SIP/27-8b27", "SIP/19|20") in new stack >>>> -- Called 19 >>>> -- SIP/19-e562 is ringing >>>> >>>> and the phone just rings. Any ideas? Is it the firmware version? >>> Am I >>>> not setting ALERT_INFO correctly? >>> >>> It's possible, but hard to say since you didn't tell us what version >>> of >>> Asterisk you are using. If you are using CVS HEAD (and not the stable >>> series), you will have to set _ALERT_INFO instead, so it will be >>> carried >>> down into the channel that the Dial app creates. >> >> It's an older version of CVS HEAD: >> CVS-HEAD-11/03/04-14:59:37 >> >> I tried with _ALERT_INFO also - the result is the same. > > Here's what is actually working with a spa3k and CVS-HEAD-01/08/05: > exten => 3020,1,SetVar(_ALERT_INFO=bellcore-r3) ; selects Ringer > exten => 3020,2,Dial(SIP/3020,25,r) > exten => 3020,3,Voicemail(u3020) > exten => 3020,103,Voicemail(b3020) > exten => 3020,104,Hangup > > I don't have a Polycom handy to test with.I did a "sip debug peer 19", and here is part of that debug that shows that asterisk is trying to send the alert-info variable to the phone. Reliably Transmitting: INVITE sip:19@192.168.42.7 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bK304b1809 From: "Noah Miller" <sip:27@192.168.1.130>;tag=as44d2096b To: <sip:19@192.168.42.7> Contact: <sip:27@192.168.1.130> Call-ID: 027aafb568b575df191ea5444acc590d@192.168.1.130 CSeq: 102 INVITE User-Agent: Asterisk PBX Date: Fri, 04 Feb 2005 17:39:53 GMT Alert-info: Ring Answer Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type: application/sdp Content-Length: 160 So I guess the problem is in my config for the phone? Or maybe asterisk has to send "alert-info" more than just once? Does anybody have this auto-answer config working reliably on a Polycom phone? Thanks! Noah