On 23/10/2014 4:57 PM, Larry Moore wrote:
On 23/10/2014 5:43 AM, Leandro Dardini wrote:
Hello,
I am struggling to have a SPA504G to auto answer (for intercom/paging).
I have tried the following SIP headers (not all together), but without
luck:
SIPAddHeader(Call-Info:\;answer-after=0);
SIPAddHeader(Call-Info: answer-after=0);
SIPAddHeader(Alert-Info: info=intercom);
SIPAddHeader(Alert-Info: Ring Answer);
SIPAddHeader(P-Auto-Answer: normal);
What does your dialplan look like that makes the paging call?
Listing from my Asterisk:
'8000' => 1. Set(SIP_CODEC=alaw)
2. Dial(MulticastRTP/linksys/224.168.168.168:45678/224.168.168.168:6061)
3. Hangup()
Using the Web Interface on you SPA501, log in as admin and select the
advanced view. Select the SIP tab, down the bottom of the page there is
a section headed 'Linksys Key System Parameters'.
You will want settings much like
Linksys Key System: yes
Multicast Address: 224.168.168.168:6061
Key System Auto Discovery: no
Key System IP Address: <leave blank>
Force LAN Codec: 711a <may be set to none, G711a or G711u>
Auto Ans GrPage On Active Call: no
Select the User tab and check
Auto Answer Page: yes
If you have it all configured much like I have listed hear and it still
doesn't work then you need to check the firewall configuration on your
Asterisk system and ensure it is allowing outbound Multicast traffic.
Larry.
Hmm, my SPA525G doesn't auto-answer a page however my SPA92X do.
The above is for paging, I use a macro to perform an intercom, here is
what I have in my extensions.ael.
<context> {
_8XXX => {
&sip_intercom(${EXTEN:1});
};
};
macro sip_intercom( extension ) {
ChanIsAvail(SIP/${LOCAL(extension)},s);
NoOp(**** Status : ${AVAILSTATUS} ****);
switch(${AVAILSTATUS}) {
case 1:
Set(TIMEOUT(absolute)=1920);
SIPAddHeader(Alert-Info: Ring Answer);
SIPAddHeader(Alert-Info: Info=Alert-Autoanswer);
SIPAddHeader(Alert-Info: info=ringAutoAnswer);
SIPAddHeader(Call-Info:\;Answer-After=0);
SIPAddHeader(P-Auto-Answer: normal);
SIPAddHeader(Answer-Mode: Auto);
Dial(SIP/${LOCAL(extension)});
Hangup();
break;
case 2:
Busy();
Hangup();
break;
case 5:
Congestion();
Hangup();
break;
default:
PlayBack(invalid);
Hangup();
break;
};
return;
};
Larry.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users