[asterisk-users] subscriber state before dial

Barry Flanagan barryf-lists at flanagan.ie
Tue Nov 24 06:39:01 CST 2015


On 24 November 2015 at 12:20, Ethy H. Brito <ethy.brito at inexo.com.br> wrote:

>
> Hi All
>
> After a Dial() I get:
>
> WARNING[7964][C-000075a8]: app_dial.c:2437 dial_exec_full: Unable to create
> channel of type 'SIP' (cause 20 - Subscriber absent)
>
> if the subscriber is not registered.
>
> Is there a way from dialplan to know, *before* Dial(), if a destination
> Subscriber is
>         a) not registered or
>         b) busy ?
>
> I need to redirect a call to some other Subscriber if (s)he is not there
> like this: Dial(SIP/1&SIP/2&SIP/3).
> So if "2" is not registered (or is busy) then Dial(SIP/1&SIP/5&SIP/3).
>
>
Perhaps CHANISAVAIL will do what you need:
http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanIsAvail

Hope this helps.

-Barry Flanagan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151124/b1bb3a06/attachment.html>


More information about the asterisk-users mailing list