Re: [asterisk-users] AMI timeouts

2013-07-18 Thread Alexander Frolkin
Hi,

 When you execute an Originate action, are you doing so synchronously or
 asynchronously?
 
 A synchronous Originate performs the full outbound dial operation on the
 thread servicing the AMI request. Since each session in AMI gets its own
 thread that services both actions and events, a synchronous Originate can
 block that session from receiving events until it completes.

I may be misunderstanding, but would your suggestion be to open a new
AMI connection for each action?  (Or at least each action that can
block.)


Alex


--
_
-- 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] AMI timeouts

2013-07-18 Thread Matthew Jordan
On Thu, Jul 18, 2013 at 3:40 AM, Alexander Frolkin a...@eldamar.org.ukwrote:

 Hi,

  When you execute an Originate action, are you doing so synchronously or
  asynchronously?
 
  A synchronous Originate performs the full outbound dial operation on the
  thread servicing the AMI request. Since each session in AMI gets its own
  thread that services both actions and events, a synchronous Originate can
  block that session from receiving events until it completes.

 I may be misunderstanding, but would your suggestion be to open a new
 AMI connection for each action?  (Or at least each action that can
 block.)


Not at all. The Originate action has a parameter 'async' that, when present
and set to True, will not block the thread servicing the AMI session.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Originate


I would suggest setting that field to True in your Originate actions.

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

[asterisk-users] LUA

2013-07-18 Thread Jacob . E . Miles
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

 

 

 

Jacob Miles

Software Engineer

jacob.e.mi...@l-3com.com

903.457.4422

 

 

 

image001.png--
_
-- 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-18 Thread jon pounder

  
  
On 07/18/2013 09: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.
  


you're kidding right ? Why not just plug in the box somewhere else,
do your install and move it back ?


  


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



Jacob Miles
Software Engineer
jacob.e.mi...@l-3com.com
903.457.4422



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

Re: [asterisk-users] LUA

2013-07-18 Thread Kevin Larsen
From:   jon pounder j...@inline.net
To: asterisk-users@lists.digium.com, 
Date:   07/18/2013 09:00 AM
Subject:Re: [asterisk-users] LUA
Sent by:asterisk-users-boun...@lists.digium.com



On 07/18/2013 09: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.

you're kidding right ? Why not just plug in the box somewhere else, do 
your install and move it back ?

 
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
 
 
 
Jacob Miles
Software Engineer
jacob.e.mi...@l-3com.com
903.457.4422
 

 
While a valid question, I have worked with clients on a closed military 
base where temporarily moving a box that has been secured back to an 
unsecured network would get you thrown off base and most likely result in 
criminal charges being filed. Not saying that is what Jacob is up against, 
but there are reasons that once a box is put somewhere you can't just move 
it back.

image/png--
_
-- 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-18 Thread Ron Wheeler

  
  
On 18/07/2013 10:00 AM, jon pounder
  wrote:


  
  On 07/18/2013 09: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.

  
  
  you're kidding right ? Why not just plug in the box somewhere
  else, do your install and move it back ?
  

If you can not do that, you can make a yum repo on your isolated
computer. 
You will need to download the RPMs and put them in your repo. 
Once you have done that, yum will be happy to use it.
yum is set up to have a number of repos configured and a local one
is just fine.


Ron


  

  
  
  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
  
  
  
  Jacob Miles
  Software Engineer
  jacob.e.mi...@l-3com.com
  903.457.4422
  
  
  




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



-- 
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
  

--
_
-- 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-18 Thread Ron Wheeler

  
  
I suspected that the restriction might
  be policy rather than technical.
  Is there anything that guides the loading of software via USB or
  DVDs on isolated machines or is my suggestion about a local yum
  repo, a workable solution?
  
  Ron
  
  On 18/07/2013 10:04 AM, Kevin Larsen wrote:


  
  
  
  
  
  From:   
jon pounder
j...@inline.net
  
  To:   
asterisk-users@lists.digium.com,
  
  
  Date:   
07/18/2013 09:00 AM
  
  Subject:  
 Re: [asterisk-users]
LUA
  
  Sent by:  
 asterisk-users-boun...@lists.digium.com
  
  
  
  
  
  On 07/18/2013 09: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.
  
  you're kidding right ? Why not just plug in the box somewhere
  else, do
  your install and move it back ?




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







Jacob Miles

Software Engineer

jacob.e.mi...@l-3com.com

903.457.4422







While a valid question, I have
  worked
  with clients on a closed military base where temporarily
  moving a box that
  has been secured back to an unsecured network would get you
  thrown off
  base and most likely result in criminal charges being filed.
  Not saying
  that is what Jacob is up against, but there are reasons that
  once a box
  is put somewhere you can't just move it back.


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



-- 
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
  

--
_
-- 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-18 Thread Patrick Lists

On 07/18/2013 03:56 PM, 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.


That's probably because Asterisk is not looking in /usr/local.


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


You should have downloaded the lua RPMs to e.g. your laptop, then copy 
them to your Asterisk box with e.g. a USB stick and then install the Lua 
RPMs on your Asterisk box with:


$ sudo yum install ./lua*

You can find the CentOS 6.4 x86_64 Lua RPMs here:

http://mirror.stanford.edu/yum/pub/centos/6.4/os/x86_64/Packages/

Regards,
Patrick


--
_
-- 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-18 Thread Mauricio Tavares
On Thu, Jul 18, 2013 at 10:29 AM, Patrick Lists
asterisk-l...@puzzled.xs4all.nl wrote:
 On 07/18/2013 03:56 PM, 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.


 That's probably because Asterisk is not looking in /usr/local.


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


 You should have downloaded the lua RPMs to e.g. your laptop, then copy them
 to your Asterisk box with e.g. a USB stick and then install the Lua RPMs on
 your Asterisk box with:

 $ sudo yum install ./lua*

 You can find the CentOS 6.4 x86_64 Lua RPMs here:

 http://mirror.stanford.edu/yum/pub/centos/6.4/os/x86_64/Packages/

  Is lua self-sufficient or does it require additional packages?

 Regards,
 Patrick



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


Re: [asterisk-users] LUA

2013-07-18 Thread Jacob . E . Miles
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 http://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. 


you're kidding right ? Why not just plug in the box somewhere else, do your 
install and move it back ?

  
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 
  
  
  
Jacob Miles 
Software Engineer 
jacob.e.mi...@l-3com.com mailto:jacob.e.mi...@l-3com.com  
903.457.4422 
  
 
  
While a valid question, I have worked with clients on a closed military base 
where temporarily moving a box that has been secured back to an unsecured 
network would get you thrown off base and most likely result in criminal 
charges being filed. Not saying that is what Jacob is up against, but there are 
reasons that once a box is put somewhere you can't just move it back. 

This is very close to why I am unable to move the box to an open network 
connection.  As well I do not have access to create/install my own yum repo, I 
am stuck using the box as it is.  Is there a reason why the configure script 
does not find Lua in its default installation directory?  Yes, I know that some 
distros package managers will install packages into difference locations based 
on how the install package was configured and created.  But as a default I 
would think the configure script should look for items where the actual 
developer of product places them via their install script.

What steps would I need to do to get the configure script to look in the 
correct location for a default installation of Lua from source.  Or what 
location is the configure script looking for the Lua file to be in and I can 
manually move them to where asterisk is looking.  Maybe the files are in the 
correct location but are named differently than what the script is looking for?

Jacob

image001.png--
_
-- 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] CEL custom variable in outbound channel

2013-07-18 Thread Hristo Trendev
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.

Best,
Hristo
--
_
-- 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-18 Thread A J Stiles
On Thursday 18 July 2013, 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

It probably doesn't help much that you have both a Lua built from Source Code 
in /usr/local/  (which will definitely have all the developers' files you would 
have got from installing lua-devel),  and what looks like a precompiled Lua in 
/usr/  (which is missing them).  Try

# ldconfig
to force the machine to sort out its libraries; then cd back into your 
Asterisk source tree and run
# ./configure --with-lua=/usr/local/
to force the Asterisk configure script to use the Lua you built from Source and 
which will have all the development files.


-- 
AJS

Answers come *after* questions.

--
_
-- 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] CEL custom variable in outbound channel

2013-07-18 Thread Matthew Jordan
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

Re: [asterisk-users] LUA

2013-07-18 Thread Daniel Taylor

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
--
_
-- 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] Recommended in Asterisk Wiki E-Mail

2013-07-18 Thread Matthew Jordan
Hey all -

Somehow a mass e-mail option was enabled in Confluence, the software that
runs the Asterisk wiki. As a result, if you have an account, you may have
gotten a Recommended in Asterisk Wiki e-mail.

That option shouldn't have been enabled and has now been disabled. You
shouldn't receive any more e-mails from the Asterisk Wiki unless you
explicitly choose to watch a page.

Sorry for the spam!

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