[asterisk-users] Asterisk dual contexts stupidity

john beaman jbeaman at good-sam.com
Tue Jan 30 09:26:45 MST 2007


Yes, there are duplicate 3 lines, which can cause havoc.  For this reason it is recommend you use 'n' in your contexts.  Such as:

[main-night-aa]
exten => s,1,Answer
exten => s,n,Background(/etc/asterisk/night)
exten => s,n,Directory(foobarcorp,internal,l)

'n' allows for the addition and deletions of lines in the contexts without getting the numbering all messed up.



>>> bails at westcomuk.com 1/30/2007 10:06:09 AM >>>
You seem to have to many s,3's

[main-night-aa]
exten => s,1,Answer
exten => s,2,Background(/etc/asterisk/night)
exten => s,3,Directory(foobarcorp,internal,l)
exten => s,3,Wait(3)
exten => s,4,Voicemail(u201 at foobarcorp)
exten => s,5,Hangup
exten => 1,1,Directory(foobarcorp,internal,l)
exten => 00,1,VoicemailMain(s at foobarcorp)
include => retardonightfix

Bails

J. Oquendo wrote:
> So I have my extensions.conf 
> (http://www.infiltrated.net/exten.stupidity.conf) shortened
> in case someone wants to look. Has someone encountered the following? 
> I've racked my
> brain on this for too long...
> 
> I have two contexts, day and night...
> 
> Caller (Daytime) --> Dials an extension --> Caller hears extension ring 
> on receiver --> Call goes through
> Caller (Night) --> Dials an extension --> Caller hears silence until vm 
> picks up --> Leaves a voicemail...
> 
> Significant albeit insanely stupid Asstricks message:
> 
> 2007-01-30 09:22:57 DEBUG[9946]: pbx.c:2300 __ast_pbx_run: Oooh, got 
> something to jump out with ('2')!
> (Oooh how about creating errors we can figure out Digium!)
> 
> Any thoughts
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users 

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users 

-------------- next part --------------
-------------------------------------------------

This email transmission and any documents, files or previous

email messages attached to it may contain information that is

confidential or legally privileged. If you are not the intended

recipient, you are hereby notified that any disclosure, copying,

printing, distributing or use of this transmission is strictly

prohibited. If you have received this transmission in error,

please immediately notify the sender by telephone or return

email and delete the original transmission and its attachments

without reading or saving in any manner.



The Evangelical Lutheran Good Samaritan Society.

---------------------------------------------------------


More information about the asterisk-users mailing list