hi, in my small setup (just for home usage) i have 5 phones configured. but only 2 of them are permanent connected to asterisk. nevertheless i want to address beside those two phones other peers if available. nowadays i address them always, resulting in error messages: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) 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. is that the right path, or am i barking the wrong tree? regards, andre -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121119/e4f166e5/attachment.htm>
Andre Gronwald wrote:> hi,Hola,> in my small setup (just for home usage) i have 5 phones configured. but > only 2 of them are permanent connected to asterisk. > nevertheless i want to address beside those two phones other peers if > available. nowadays i address them always, resulting in error messages: > Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) > 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. > is that the right path, or am i barking the wrong tree?Is there any particular reason you don't want to do this or is it just because you get the "Unable to create channel" message? There's nothing really *wrong* with that message in your case. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org
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 - [dialall] Exten => s,1,AGI(sipcheck.agi,100,200,300) exten => s,n,Gotoif($[ "${LEN(${DIAL-100})}" != "7"]?dialall,s,4) exten => s,n,Set(TODIAL=${TODIAL}'&'${DIAL-100}) exten => s,n,Gotoif($[ "${LEN(${DIAL-200})}" != "7"]?dialall,s,6) exten => s,n,Set(TODIAL=${TODIAL}'&'${DIAL-200}) exten => s,n,Gotoif($[ "${LEN(${DIAL-300})}" != "7"]?dialall,s,8) exten => s,n,Set(TODIAL=${TODIAL}'&'${DIAL-300) exten => s,n,Dial(${TODIAL},40,i,KktTm) From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Andre Gronwald Sent: Monday, November 19, 2012 2:00 AM To: asterisk-users Subject: [asterisk-users] addressing peers dynamically hi, in my small setup (just for home usage) i have 5 phones configured. but only 2 of them are permanent connected to asterisk. nevertheless i want to address beside those two phones other peers if available. nowadays i address them always, resulting in error messages: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) 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. is that the right path, or am i barking the wrong tree? regards, andre -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121119/ec350dbb/attachment.htm>
Am 19.11.2012 19:00, schrieb asterisk-users-request at lists.digium.com:> Subject: Re: [asterisk-users] addressing peers dynamically To: > Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users at lists.digium.com> Message-ID: > <50AA2586.80805 at digium.com> Content-Type: text/plain; > charset=ISO-8859-1; format=flowed Andre Gronwald wrote: >> > hi, > Hola, > >> > in my small setup (just for home usage) i have 5 phones configured. but >> > only 2 of them are permanent connected to asterisk. >> > nevertheless i want to address beside those two phones other peers if >> > available. nowadays i address them always, resulting in error messages: >> > Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) >> > 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. >> > is that the right path, or am i barking the wrong tree? > Is there any particular reason you don't want to do this or is it just > because you get the "Unable to create channel" message? There's nothing > really *wrong* with that message in your case.it is just because i think that something is not wrong (which is correct, because i address a currently not existing peer). and if there is a way to handle it better, then i would like to know it (virtual queues is just oversized, but maybe there is a simple usage of addressing only registered peers... regards, andre -- Andre Gronwald andregronwald78 at gmail.com andre.gronwald at gmx.de PGP-0x9CDEE439
Andre Gronwald wrote:> it is just because i think that something is not wrong (which is > correct, because i address a currently not existing peer). and if there > is a way to handle it better, then i would like to know it (virtual > queues is just oversized, but maybe there is a simple usage of > addressing only registered peers...Ultimately something has to check if the peer is available or not, the only difference is instead of having app_dial do it you do it to mask the message. You could use ChanIsAvail on each peer you want to dial and use the result to construct a string of available devices. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org