Disa-custom


#1

Hi,

I’m trying to add something like (in extensions_custom.conf) :

[disa-custom]
exten ????,1,Noop( finaly works )

I want it used for all disas (in fact, I want to set up a global variable like Set(MYDISA=MyDisa) ); before Authenticate().
(I want to make tests before authenticate too, this is only an exemple)

But all what I try doesn’t work.
what to put in place of “???” plz ?

Any help appreciate.


#2

Please read the book linked in my sig. Thanks


#3

Can’t you point to something particular please ?
With asterisk 1.6 (i forgot to precise) i can’t have the same extension several times. So, i can’t see how i can get my result…


#4

up ?


#5

hi

i have the same problem.

i need to insert a timeout(absolute) before the standard disa code.

where i must put the code ?


in extensions_additional.conf
[disa]
include => disa-custom
exten => 2,1,Set(_DISA=“disa,2,newcall”)
exten => 2,n(newcall),Set(_DISACONTEXT=from-pstn)
exten => 2,n,Set(_KEEPCID=TRUE)
exten => 2,n,Set(TIMEOUT(digit)=5)
exten => 2,n,Set(TIMEOUT(response)=10)
exten => 2,n,DISA(no-password,disa-dial)
exten => 2,n(end),Hangup

; end of [disa]


and in extensions_custom.conf

[disa-custom]
exten => ???,???,Set(TIMEOUT(absolute)=180)


(Paul Geanta) #6

Did you figure this out?

I’m looking for the exactly same thing.

Thank you


(Dave Burgess) #7

There’s almost no chance that the solution from a 10-year-old problem is going to be satisfactory for you now.

The “standard” advice for dealing with something like this is to set up your own DISA code and either replace the existing DISA code with your (through the use of the “override” config file) or to set up a new custom destination and send your inbound calls on your “DISA” line to that before you forward it off to the existing DISA code.


(Paul Geanta) #8

Thanks for the response. In fact that’s exactly how I solved this. But at the moment I had wrote the post I did not know about the extensions_override_freepbx.conf file.

Basically I just took the dial plan for the DISA I wanted to have a special timeout, copied it in extensions_override_freepbx.conf and added the line that sets the timeout.

I had tried the custom destinations but … coincidence at the exact same time, sipstation had some problems on a trunk, and I was thinking that my setup was not working correctly (when in fact it was sipstation)… Can you imagine I almost reinstalled my pbx?! Just in desperation I nmap-ed the trunk to see that it was down.

Basically in the file extensions_additional.conf
[disa]
include => disa-custom
exten => 2,1,Set(_DISA=“disa,2,newcall”)
exten => 2,n(newcall),Set(_DISACONTEXT=from-pstn)
exten => 2,n,Set(_KEEPCID=TRUE)
exten => 2,n,Set(TIMEOUT(digit)=5)
exten => 2,n,Set(TIMEOUT(response)=10)
exten => 2,n,DISA(no-password,disa-dial)
exten => 2,n(end),Hangup

; end of [disa]

And in the file extensions_override_freepbx.conf
[disa]
include => disa-custom
exten => 2,1,Set(_DISA=“disa,2,newcall”)
exten => 2,n(newcall),Set(_DISACONTEXT=from-pstn)
exten => 2,n,Set(_KEEPCID=TRUE)
exten => 2,n,Set(TIMEOUT(digit)=5)
exten => 2,n,Set(TIMEOUT(response)=10)
exten => 2,n,Set(TIMEOUT(absolute)=180)
exten => 2,n,DISA(no-password,disa-dial)
exten => 2,n(end),Hangup

; end of [disa]

Thanks again for the idea