[asterisk-users] asterisk 11 and DAHDI/i4

Danny Nicholas danny at debsinc.com
Thu Dec 20 13:59:47 CST 2012


Just for grins, do you have a softphone like xlite that you can try the
outgoing call on?  I think it's an outgoing issue, not a polycom one.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jerry Geis
Sent: Thursday, December 20, 2012 1:56 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] asterisk 11 and DAHDI/i4

I have a little dialplan context now...

[check-chanisavail]
exten => s,1,ChanIsAvail(${agi_channel}) exten => s,n,System(/bin/echo
${AVAILCHAN} > /tmp/${agi_file}) exten => s,n,Hangup()

and a call file:

Channel: Local/s at check-chanisavail/n
Context: check-chanisavail
Extension: s
Priority: 1
SetVar: agi_file=jerry
SetVar: agi_channel=DAHDI/1

To tell me if a channel is busy or not.

When no channels are busy I execute the dialplan above and it correctly gave
me DAHDI/1-1 in my file. As expected.

When I call in from the outside into my asterisk box, then I execute my
dialplan above and I query (DAHDI/1) I get AVAILCHAN = "" which is what I
expect.

However, if I use a polycom phone to dial out, and then I execute my
dialplan above and I query (DAHDI/1) it says its still available.
Should it not say AVAILCHAN = "" as I am using that line it is not
available.

Thanks,

Jerry

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




More information about the asterisk-users mailing list