2 msgUNICALL MFC/R2 + Asterisk 1.4
3 msgAuthenticate() application and CDR
2 msgSIP over TCP
5 msgAsterisk 1.2.13 and presence
1 msg'HiarPinning' via TDM400 in the UK ...
2 msgcall limit
4 msgAsterisk and MS Exchange 2007
1 msgProblems bringing up ZAP trunks via PRI
1 msgVoxalot User and Peer details.
2 msgDialing an external number and then passing it ...
7 msgAsterisk 1.2.24 simultaneous call limits.

GROUP() issues for me
\ Nicholas Blasgen (20 Sep 2007)
. \ Julian Lyndon-Smith (20 Sep 2007)
. . \ Nicholas Blasgen (21 Sep 2007)
. . . \ Eric \ManxPower\ Wieling (21 Sep 2007)

2 msgPaging MEETME_RECORDINGFILE Variable
3 msgPolycom 330 + Asterisk,phone locks up. * key wi...
1 msgAstricon Ride From Airport to Conf Hotel
11 msgIAX Java Softphone?
24 msgProblems Connecting Two Asterisk Installs Via I...
2 msgQueue Question
13 msgAnnouncing: Click-to-Call with VIDEO
3 msgThe device state is still 'Not in Use' ... chec...
Subject:GROUP() issues for me
Group:Asterisk-users
From:Nicholas Blasgen
Date:20 Sep 2007


 


I've got a macro that tries to find the first available SIP trunk to send
outgoing calls on. It tracks the usage of the lines (since each trunk has a
call-limit of 2) by using GROUP(). My problem is that once a call switched
to ANSWER state, ``group show channels`` stops listing it and then my Macro
starts screwing up because it's sending calls to a line that sometimes is
full even though GROUP() shows it as being less than 2. I'm tempted to send
this to the Asterisk Dev team just because I believe it's an issue of the
GROUP information being released when Asterisk consolidates the channels
(removes all the MASQ channels) once the call is answered. But maybe it's
something else so I'll ask here first.

The dialplan setup:

exten => 555,1,Dial(Local/1234567890)
exten => _NXXNXXXXXX,1,Macro(which-line,${EXTEN})

[macro-which-line]
exten => s,1,set(GROUP()=${DIALSTRING})
exten => s,n,Dial(${DIALSTRING}/1${ARG1})
Things are a bit more complex, but it's all just logic. The extensions
above should give a decent representation of what's going on. I think each
time you switch extensions, Asterisk creates a MASQ channel and that's
what's causing the issue since the GROUP() is set only at the end, inside
the macro. Are there any EVENTS for unlocking of GROUPs? Anything I can do
to better show where this is happening?

I'd love some help if anyone has a guess.
--
/Nick


_______________________________________________

Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/

--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


© 2004-2008 readlist.com