[Asterisk-Users] Re: DISA

Ed Devine ncfm at airmail.net
Fri Feb 6 12:58:20 MST 2004


John and sundry others:

First thanks for your help.

You have succiently summed up the problem. I do not get dialtone fast
enough.

The following is a test dialplan that I set up this morning after recieveing
the many kind e-mails, It's very basic, but it does allow me to process a
call to my phone extension, albeit I still don't get dialtone immediately
when I select a line or dial into the asterisk system. (see embedded notes
for details).

[general]
static = yes
writeprotect = no
;
[main2]
exten => 9,1,dial(zap/g2)
exten => _5012
ignorepat => 9
;
[main1]
exten => s,1,DISA(2285750,main2)
exten => s,2,Hangup( )
;
;Notes on testing:
;Circuit is a full T1 provided by my in house Nortel
;SL1 to port 3 of my Digium T410p. It's identified
;in zaptel.conf as span =3,0,0,d4,ami., and configured
;in zapata.conf as group=2, signalling=em_w,
;channel = 49-72.
;
;For purposes of testing only, I have my Nortel Norstar
;system with a T1 cartridge attached to port 4 of the
;Digium T410p. It's identified in zaptel.conf as
;span=4,0,0,esf,b8zs and configured in zapata.conf as
;group=3, signalling=em_w, channel = 73-96.
;
;ztcfg -vv indicates the configuration is correct, and
;zttool indicates that there are no errors
;
;When I select line 1 on the Norstar (where I would
;normally expect to  to get dialtone, in effect simply
; going off hook) . I do not get dialtone.
;
;CLI indicates "Starting simple switch on 'Zap-73-1' ".
;The same hold true if I dial in on this T1.
;
;after 5 seconds (the timeout), I finally recieve dialtone.
;
;At this point I dial "2285750#" and I get dialtone again
;
; CLI indicates "WARNING [1225991448]:
;app_disa_c:290 : disa_exec: DISA on Zap/73-1
;password is good".
;
;The dialplan then branches to [main2]
;
[main2]
exten => 9,1,dial(zap/g2)
exten => _5012,1,dial(zap/g2)
ignorepat => 9
;
;Since both the Norstar and the SL1 are configured with
;dial 9 access (and yes, I've tried using straight access
;with the same results). I dial 995012, and the call
;processes, ringing my extension 5012 on the SL1.
;
;CLI indicates
;'Executing dial("Zap/73-1 , Zap/g2) in new stack'.
;Called g2
;'Zap/49-1 answered Zap/73-1'
;'attempting native bridge of Zap/73-1 and Zap/49-1'
;
;I answer the call on my extension '5012' and talk as long
;as I care and then simply hangup.
;
;CLI indicates 'Hungup 'Zap/49-1'
;'spawn extension (main2,9,1) exited non-zero on
;Zap/73-1'
;Hungup 'Zap/73-1'
;
[default]
exten => s,1,answer
exten => s,2,disa(no-password, main2)
exten => s,3,Hangup
;
----- Original Message ----- 
From: "John Todd" <jtodd at loligo.com>
To: <asterisk-users at lists.digium.com>
Sent: Thursday, February 05, 2004 9:55 PM
Subject: Re: [Asterisk-Users] Re: DISA


> At 9:32 PM -0500 2/5/04, Steve Creel wrote:
> >On Thu, 5 Feb 2004, John Todd wrote:
> >
> >>So, to boil your problem down to what I think is the problem:
> >>
> >>"When you attach an inbound call to the DISA application, it does not
> >  >produce a dialtone fast enough."
> >
> ><snip>
> >
> >>>[main1]
> >>>;
> >>>; Take any number, and give it to the DISA.  The DISA
> >>>;  just then takes anything typed in within the (unchangeable)
> >>>;  timer values, and hands it off to main2 to be post-processed.
> >>>; I include the standard i,h,t values for pedantic reasons.
> >>>;
> >>>exten => _X.,1,DISA(no-password,main2)
> >>>exten => _X.,2,Hangup
> >>>;
> >>>exten => h,1,Hangup
> >>>exten => i,1,Congestion
> >>>exten => i,2,Hangup
> >>>exten => t,1,Congestion
> >>>exten => t,2,Hangup
> >
> >
> >Not to point out the obvious, but isn't the delay he's seeing caused by
> >the _X. and the digittimeout?  Couldn't this be resolved by using a more
> >specific match on the DISA instead of _X. ?
> >
> >Steve
> >screel at turbs.com
>
> Ah, yes, that's probably the case.   Without further information from
> the poster about how he was getting calls into the context, I assumed
> that this was a PRI or something that handed a DID to the context.
> If this is an FXO or some type of T1 trunking, then yes, the "s"
> extension would be more appropriate if this was an "immediate=yes"
> type of situation.
>
> GIGO.
>
> JT
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>





More information about the asterisk-users mailing list