Re: [asterisk-users] How to detect if SIP extension BUSY?

2008-08-14 Thread Gergo Csibra
Wednesday, February 13, 2008, 2:56:42 PM, Michiel wrote:

 On 13:14, Wed 13 Feb 08, Gergo Csibra wrote:
 Well?
 Is it impossible to detect BUSY on SIP channels?

 not in stock 1.2
 Bristuff has a function for it, and russell created a
 function for it in current trunk that is also available as
 patch to 1.4

 So you have 2 possibilities:
 - install 1.4 with russell's patch applied

 asterisk + function from russell:
 http://www.voip-info.org/wiki/view/Asterisk+func+Devstate

OK. I've tried Russel's devstate function and also
SIPPEER(ext:curcalls) function but they have the same problem.
Devstate shows only called SIP extensions as BUSY, but caller is not,
and SIPPEER(ext:curcalls) shows only call count 1 on called extension,
on caller is still 0. So if I make a call for example from sipext1 to
sipext2 the devstate shows NOT_INUSE on sipext1 and BUSY on sipext2,
but in real world they both BUSY, also with curcalls, on sipext1 the
call count is 0, and on sipext2 is 1.

And in dialplan I can only test the CALLERID(num) or CALLERID(name)
but they are user setable, so if some user changes it, I must to
modify my dialplan.

Another way?

-- 
Best regards,
 Gergomailto:[EMAIL PROTECTED]


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to detect if SIP extension BUSY?

2008-02-13 Thread Gergo Csibra
Saturday, February 9, 2008, 10:29:08 AM, Csibra wrote:

 My problem is in subject. As I read in documentations and
 voip-info.org I can't user ChanIsAvalil because it not detects BUSY
 information on SIP channel. I've tried to use SIPPEER function, but it
 gives OK (9 ms) back on BUSY SIP channel. I use Asterisk 1.2.15, SIP
 extensions are Linksys PAP2. Have any other idea?

Well?
Is it impossible to detect BUSY on SIP channels?

-- 
Best regards,
 Gergomailto:[EMAIL PROTECTED]


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to detect if SIP extension BUSY?

2008-02-13 Thread Johansson Olle E

13 feb 2008 kl. 13.14 skrev Gergo Csibra:

 Saturday, February 9, 2008, 10:29:08 AM, Csibra wrote:

 My problem is in subject. As I read in documentations and
 voip-info.org I can't user ChanIsAvalil because it not detects BUSY
 information on SIP channel. I've tried to use SIPPEER function, but  
 it
 gives OK (9 ms) back on BUSY SIP channel. I use Asterisk 1.2.15,  
 SIP
 extensions are Linksys PAP2. Have any other idea?

 Well?
 Is it impossible to detect BUSY on SIP channels?
Place a call to it and if the phone reports BUSY, asterisk will return  
BUSY.

Another way is to use the GROUPCOUNT set of functions, to keep a state  
in Asterisk or to use the embedded call counter in the SIP channel  
driver, that is reported in the SIPPEER function.

As often is the case, there are many ways to solve an issue in Asterisk.

/Olle


---
* Olle E. Johansson - [EMAIL PROTECTED]
* Asterisk Training http://edvina.net/training/




___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to detect if SIP extension BUSY?

2008-02-13 Thread Michiel van Baak
On 13:14, Wed 13 Feb 08, Gergo Csibra wrote:
 Saturday, February 9, 2008, 10:29:08 AM, Csibra wrote:
 
  My problem is in subject. As I read in documentations and
  voip-info.org I can't user ChanIsAvalil because it not detects BUSY
  information on SIP channel. I've tried to use SIPPEER function, but it
  gives OK (9 ms) back on BUSY SIP channel. I use Asterisk 1.2.15, SIP
  extensions are Linksys PAP2. Have any other idea?
 
 Well?
 Is it impossible to detect BUSY on SIP channels?

not in stock 1.2
Bristuff has a function for it, and russell created a
function for it in current trunk that is also available as
patch to 1.4

So you have 2 possibilities:
- install bristuff 1.2 or 1.4
- install 1.4 with russell's patch applied

bristuff examples:
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+BristuffDevstate

asterisk + function from russell:
http://www.voip-info.org/wiki/view/Asterisk+func+Devstate

-- 

Michiel van Baak
[EMAIL PROTECTED]
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer aficionados are both called users?


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] How to detect if SIP extension BUSY?

2008-02-09 Thread Csibra Gergo
Hi,

My problem is in subject. As I read in documentations and
voip-info.org I can't user ChanIsAvalil because it not detects BUSY
information on SIP channel. I've tried to use SIPPEER function, but it
gives OK (9 ms) back on BUSY SIP channel. I use Asterisk 1.2.15, SIP
extensions are Linksys PAP2. Have any other idea?

-- 
Best regards,
 Csibra Gergomailto:[EMAIL PROTECTED]


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users