Re: [asterisk-users] CEL custom variable in outbound channel

2013-07-19 Thread Hristo Trendev
Unfortunately I am stuck with 1.8 for the moment. The only workaround that
comes to my mind is to use userfield in the master channel as a shared
storage to also pack all the information (CSV or similar) that applies to
the outbound channel(s) and then to correlate the CEL events in a
post-processing step in order to pull out the info that applies to the
outbound channel from a linked master channel event.


On Thu, Jul 18, 2013 at 5:37 PM, Matthew Jordan mjor...@digium.com wrote:


 On Thu, Jul 18, 2013 at 10:16 AM, Hristo Trendev dist.li...@gmail.comwrote:

 Hi,

 I am using Asterisk 1.8 and trying to pack some custom data in a CEL
 HANGUP event.

 In a master (inbound) channel I can set the CHANENL(userfield) to pass
 custom information to a CEL event. In the outbound channel created by
 Dial() I can also possibly use a macro/gosub on answer and set the
 CHANENL(userfield) from there.

 The problem is how to set it in an outbound channel created by Queue()
 for example or even one created by Dial(), but which was cancelled or
 rejected?

 If I read the docs correctly CEL uses a predefined set of values, which
 mostly come from the CHANNEL function, but it cannot just pull the value of
 any channel variable/function and put it in the event. Also I don't think
 that there is any such thing as function value inheritance (setting
 __CHANNEL(userfiled) so it is inherited so to say).

 I didn't test it myself, but there is a configuration option in
 manager.conf that allows a list of variables to be defined and they will
 then be automatically included in AMI events.

 Is there something similar for CEL events (with sqlite backend if that
 matters)? Can I just get any channel variable value in a CEL event? I tried
 changing the default cel_sqlite3 template to include a channel variable,
 but it is always empty.


 So, this is only so helpful, as this solution only applies to Asterisk 11.
 There may be another way to accomplish this in Asterisk 1.8, but this is
 the first one that came to my mind - maybe someone else will have another
 suggestion. If migrating to Asterisk 11 is an option for you, than maybe
 this will help.

 In Asterisk 11, you could use a pre-dial handler [1] to apply the
 userfield directly to the outbound channel on the initial Dial. Because
 pre-dial handlers are run immediately after channel creation but before
 dialing or any other action is taken, they work in situations where the
 dial operation fails or is cancelled. You would have something that looks
 something like this:

 exten = s,1,Dial(SIP/foo,,b(default^callee_handler^1))
 ...

 exten = callee_handler,1,NoOp()
 same = n,Set(CHANNEL(userfield)=my_custom_data)
 same = n,Return()

 Note that pre-dial handlers are not directly available in the Queue
 application. However, if you use Local channel agents, then you could use
 pre-dial to put the userfield information on the callee SIP channel when
 the Local channel performs a Dial to the actual SIP device.

 [1] https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers

 Matt

 --
 Matthew Jordan
 Digium, Inc. | Engineering Manager
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: http://digium.com  http://asterisk.org

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

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

[asterisk-users] Meetme and maxusers option

2013-07-19 Thread Thiago Coutinho
Hi all.

I'm trying to limit the number of participants in a conference room
with the realtime option maxusers, but it doesn't work.

Someone have this option working properly?

--
thiagoc

O povo não deveria temer o governo. O governo é quem deveria temer o povo.
V de Vingança

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


Re: [asterisk-users] LUA

2013-07-19 Thread Jacob . E . Miles
 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Daniel
Taylor
Sent: Thursday, July 18, 2013 11:05 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] LUA

 

On 07/18/2013 08:56 AM, jacob.e.mi...@l-3com.com wrote:

I am attempting to setup my server to use Lua for the dialplan
(extentions.lua), but I am unable to get the asterisk configure script
to find the installation of Lua on my box.  I have downloaded the Lua
sources from the www.lua.org site, and I have installed via the make
linux install command.  I can execute lua scripts via the command line,
but asterisk configure script is unable to find the installation of Lua.

 

I am on a closed network, so no access to the internet so I am
not able to just install Lua using yum.

 

OS CentOS 6.4

Asterisk version 1.8.13.0  11.4

 

$ find / -name *lua*

/usr/local/include/lua.h

/usr/local/include/lua.hpp

/usr/local/include/lualib.h

/usr/local/include/luaconf.h

/usr/local/lib/lua

/usr/local/lib/liblua.a

/usr/local/bin/luac

/usr/local/bin/lua

/usr/lib64/liblua-5.1.so

/usr/bin/luac

/usr/bin/lua

 




You don't mention it here, so I have to ask if you tried using
--with-lua=/usr/local as an argument to configure.

-- 
Dan

 

 

Sorry it has taken me so long to get back to this, but I have tried the
-with-lua=/usr/local but I would get an error during the configure
script, something about LUA being broken or not present.  I was able to
get approval to download the rpms for lua  lua-devel and move them to
the system using a USB drive.  After running the make linux uninstall on
the source installation, and then install both RPMs for lua everything
is work correctly now.  Thanks for all the help, I would still like to
see the configure script work correctly on a source install rather than
just with the RPMs.

 

Jacob

 

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

Re: [asterisk-users] Meetme and maxusers option

2013-07-19 Thread Johan Wilfer

2013-07-19 15:35, Thiago Coutinho skrev:

Hi all.

I'm trying to limit the number of participants in a conference room
with the realtime option maxusers, but it doesn't work.

Someone have this option working properly?



Try these:

https://wiki.asterisk.org/wiki/display/AST/Function_GROUP
https://wiki.asterisk.org/wiki/display/AST/Function_GROUP_COUNT

This is how I do it. This way you can do it more flexible in the dialplan.


--
Johan Wilfer


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