[Asterisk-Users] SIP extension "busy" when not available ??

info-lists at robertc.de info-lists at robertc.de
Mon Feb 23 04:47:39 MST 2004


Soren Rathje said:
> ----- Original Message -----
> From: "Olle E. Johansson" <oej at edvina.net>
> To: <asterisk-users at lists.digium.com>
> Sent: Sunday, February 22, 2004 8:52 PM
> Subject: Re: [Asterisk-Users] SIP extension "busy" when not available ??
>
>
>> > Although the current logic does not require a sip phone to register,
>> it
> would
>> > seem like the asterisk logic should be something like:
>> >  a. call is attempted to sip x1234,
>> >  b. if * knows the extn is in use, return busy, or,
>> >  c. if not busy, asterisk attempts to contact x1234 across the wire,
>> >  d. if no contact, return Unavailable
>> Or if not registred.
>>
>
> In a wireline telephony scenario the above would be the proper method as
> we
> do not know if the subscriber have their phone plugged in or not. With
> Asterisk we experience the same information as mobile operators do:
> "unreachable", "unanswered" and "busy". IMHO we should have the same
> options.
>
> So, the priority for a type=friend would be:
> a: check if client is registered and/or reachable, if not - return
> "unreachable"
> b: check if client is busy, if call-waiting not active - return "busy"
> c: if call is rejected by client, return approriate message
> d: if call is unanswered, return "unavailable" or "busy" with reference to
> (b).
>
> -- Soren

I use  ChanIsAvail()  to check to see if the phone is connected at the top
of the dialplan for that extension. This works for IAX2 and SIP channels
but not for MGCP.

If you are interested in the actual code I can send it to you from home
tonight.

Robert




More information about the asterisk-users mailing list