* You are viewing Posts Tagged ‘contexts’

Reuse H Extension?

I have 2 contexts, however both have the same h extension. Currently I am doing copy&paste for the h extension – is there a better way?
Can I somehow reference a h extension, so I have to create/modify it only once?

Thanks for any hint!

DTMF dropping in Read Command

Hello listers,

I have a couple of 1.4.37 through 1.4.42 boxes
running at different sites. These systems run a fairly simple IVR that uses
waitexten and Read to get credentials and plow on through a set of contexts.
I am experiencing two problems in my setup:

1. In environments where DAHDI is the trunk of choice, this snippet
drops digits, especially if the user attempts to key them quickly. It also
mysteriously hangs up (autofallthrough=yes) if they key them too slowly

exten => s,1,Set(chktime=0)

exten => s,n,Read(digitacct,entacct,17,skip,1,10)

exten => s,n,Gotoif($[${LEN(${digitacct})} < 1]?checking,t,1)

exten => s,n,Read(digitpass,entpin,5,skip,1,10)

2. This context will randomly hang up the call when the user presses 1


Exten => s,1,noop()

exten => s,n,Set(BALPLAY=${balance})

exten => s,n(chkdetail),Background(${BALPLAY})

exten => s,n(aftbal),Background(aftbal)

exten => s,n,WaitExten(6)

exten => s,n,Goto(checking,t,9)

exten => s,n,Goto(checking,s,chkdetail)

exten => 1,1,Goto(checking,s,chkdetail)

Any ideas?

Thanks in advance

Danny Nicholas

Limit monthly calls by context

Hello group,

I have this situation:

I have several contexts with a few extensions each one. I need to give every context a limited quantity of minutes they can use. All the extensions in the context will share the same “bag” of minutes. Meaning ext 101 use 1900 mins, ext 102 60 mins and ext 40 mins.
The limit must be monthly.

I guess some “billing” solution can do the trick, but I think it’s too much for that little. I don’t need any other feature.

I was thinking something like checking the CDR before make the call, I know it may permit some “extra” minutes to be used, but it really doesn’t need to be that exact. A couple of extra minutes won’t hurt.

Ideas, suggestions ?

Hans Goossen
Investigación & Desarrollo
Planet S.A.

Lua extensions are not working on asterisk


After compiling a installing asterisk I wanted to play with
lua but I noticed that extensions created in extensions.lua was not
being registered with asterisk.

uga1*CLI> dialplan show
[ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ]
‘s’ => 1. NoOp() [app_queue]

[ Context 'parkedcalls' created by 'features' ]
‘700’ => 1. Park() [features]

[ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ]
‘s’ => 1. NoOp() [app_dial]

[ Context 'local' created by 'pbx_lua' ]
Alt. Switch => ‘Lua/’ [pbx_lua]

[ Context 'demo' created by 'pbx_lua' ]
Alt. Switch => ‘Lua/’ [pbx_lua]

[ Context 'default' created by 'pbx_lua' ]
Alt. Switch => ‘Lua/’ [pbx_lua]

-= 3 extensions (3 priorities) in 6 contexts. =-
uga1*CLI> dialplan show demo
[ Context 'demo' created by 'pbx_lua' ]
Alt. Switch => ‘Lua/’ [pbx_lua]

-= 0 extensions (0 priorities) in 1 context. =-

Need I enable something to get lua extensions to be created?

Definations of READ/WRITE parameters of manager.conf contexts?

On 11-01-07 01:33 PM, Bruce B wrote:
> Where can I find this?

Definations of READ/WRITE parameters of manager.conf contexts?

Hi Everyone,

I want to know each and every parameter’s detail that can be included in


in manager.conf

Where can I find this?