Soren Rathje said: > ----- Original Message ----- > From: "Olle E. Johansson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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 _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
