[Asterisk-Users] Odd PRI Behavior

Eric Wieling eric at fnords.org
Thu Sep 2 05:25:49 MST 2004


This is frequently caused by the evil exten => _.,1,Blah. Asterisk tries
to run several letter extensions at different times.  "exten => i" is
run when you dial an invalid extension.  "exten => o" is run when a
caller presses "0" while leaving a voicemail.   _. is a common gremlin
usually attracted to newbie users.  It's in the same family as the "r"
option to Dial.  It's also distantly related to the "t" and "T" options
of Dial.  All of these things can cause unexpected problems (and even
cause security problems).

Let me be clear: Do NOT use exten => _.  If you REALLY MUST then use
exten => _X. instead.  "X" will not match letters, where "." will match
letters and numbers.  Also anytime your dial string matches a pattern
with "." at the end, you'll have to wait for DigitTimeout before the
call will be processed.

On Wed, 2004-09-01 at 23:33, Dan Mahoney, System Admin wrote:
> When using a PRI, after the remote party hangs up, asterisk tries to spawn 
> a call to the "h" extension.  Is this normal behavior for a pri to try to 
> call the "h" extension to try to clean things up?
> 
> 
> Call Comes In:
>     -- Executing Dial("Zap/1-1", "SIP/16464436000 at AST-237.65") in new stack
>      -- Called 16464436000 at AST-237.65
>      -- Accepting call from '6315800905' to '16464436000' on channel 0/1, 
> span 1
>      -- SIP/AST-237.65-ba82 is ringing
>      -- SIP/AST-237.65-ba82 answered Zap/1-1
>      -- Channel 0/1, span 1 got hangup
> Call has been hung up.
> 
> Then this:
>    == Spawn extension (default, 16464436000, 1) exited non-zero on 
> 'Zap/1-1'
> 
>      -- Executing Dial("Zap/1-1", "SIP/h at AST-237.65") in new stack
>      -- Called h at AST-237.65
>    == Spawn extension (default, h, 1) exited non-zero on 'Zap/1-1'
>      -- Hungup 'Zap/1-1'
>      -- Got SIP response 404 "Not Found" back from 65.125.237.65
>      -- Got SIP response 481 "Call Leg Does Not Exist" back from 
> 65.125.237.65
> 
> If anyone could shed some light on this I'd appreciate it.  I haven't 
> played with PRIs enough, but I don't normally see this with pure SIP 
> calls.
> 
> -Dan Mahoney
> 
> 
> --
> 
> unless is a pr0no book he wont even come close to the bandwidth quota
> 
> -Racer-X, concerning DanMahoney.com's web hits.
> 
> 
> --------Dan Mahoney--------
> Techie,  Sysadmin,  WebGeek
> Gushi on efnet/undernet IRC
> ICQ: 13735144   AIM: LarpGM
> Site:  http://www.gushi.org
> ---------------------------
> 
> _______________________________________________
> 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
-- 
          Eric Wieling * BTEL Consulting * 504-899-1387 x2111
"In a related story, the IRS has recently ruled that the cost of Windows
upgrades can NOT be deducted as a gambling loss."




More information about the asterisk-users mailing list