<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I had a similar problem (I work on 3 lans; when my firewall is down, the two non-native lans are unaccessible) I wrote an AGI to execute “sip show peers” and process only the ones that return OK and pass my peer numbers to the AGI like this -<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[dialall]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Exten => s,1,AGI(sipcheck.agi,100,200,300)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exten => s,n,Gotoif($[ "${LEN(${DIAL-100})}" != "7"]?dialall,s,4)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exten => s,n,Set(TODIAL=${TODIAL}'&'${DIAL-100})<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exten => s,n,Gotoif($[ "${LEN(${DIAL-200})}" != "7"]?dialall,s,6)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exten => s,n,Set(TODIAL=${TODIAL}'&'${DIAL-200})<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exten => s,n,Gotoif($[ "${LEN(${DIAL-300})}" != "7"]?dialall,s,8)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exten => s,n,Set(TODIAL=${TODIAL}'&'${DIAL-300)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exten => s,n,Dial(${TODIAL},40,i,KktTm)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Andre Gronwald<br><b>Sent:</b> Monday, November 19, 2012 2:00 AM<br><b>To:</b> asterisk-users<br><b>Subject:</b> [asterisk-users] addressing peers dynamically<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>hi,<br>in my small setup (just for home usage) i have 5 phones configured. but only 2 of them are permanent connected to asterisk.<br>nevertheless i want to address beside those two phones other peers if available. nowadays i address them always, resulting in error messages:<br>Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)<br>Is there a way to avoid those messages? I think about something like a virtual queue (please excuse if the wording is incorrect, i am not in too deep to asterisk, i am more firm with genesys) that is addressed and peers are registering to that queue.<br>is that the right path, or am i barking the wrong tree?<br><br>regards,<br>andre<o:p></o:p></p></div></body></html>