[asterisk-users] GROUP_COUNT and Attended transfer

Karsten Wemheuer kwem at gmx.de
Mon Feb 4 12:27:55 CST 2008


Hi,

I want to use GROUP_COUNT to limit calls to a specific destination. From
somewhere on the wiki I am using the following context:

exten => 200,1,Set(GROUP()=${CALLERID(num)})
exten => 200,n,GotoIf($[${GROUP_COUNT(${EXTEN})} >= 1]?BLOCK)
exten => 200,n,Set(OUTBOUND_GROUP=${EXTEN})
exten => 200,n,Dial(SIP/katrin)
exten => 200,n(BLOCK),Busy

This block is used for other extensions 100 and 150 respectivily. It
works fine until I am using attended transfer. 

Example: kwe (Extension 100) is calling katrin (Extension 200). katrin
sets the call on hold and talks to hans (Extension 150).

At the cli I get the following result:
pbxtest*CLI> group show channels
Channel                    Group                 Category
SIP/kwe-081bf188           100                   (default)
SIP/katrin-081b70a8        200                   (default)
SIP/katrin-081bb020        200                   (default)
SIP/hans-0816b8b8          150                   (default)

which seems correct to me.

In case of a transfer of kwe to hans (katrin leaving), the result is:
pbxtest*CLI> group show channels
Channel                    Group                 Category
SIP/kwe-081bf188           100                   (default)
SIP/kwe-081bf188           200                   (default)
SIP/hans-0816b8b8          150                   (default)

I am confused about the second line, which leads to trouble. The above
context would think, that katrin is busy.

I have tested the above with * 1.4.14 and 1.4.18-rc4

Is this a bug or a feature? Am I doing something wrong or should I file
a bug report?

Thanks in advance,

Regards
Karsten





More information about the asterisk-users mailing list