On Thu, 2007-02-22 at 16:33 -0500, Dave Donovan wrote:
> Further to Jim's explanation, the easiest way to make the demo play in
> your scenario is to give it dialable number instead of 's' as an
> extension.  Make 130 or something.  Then, when you dial 130, you'll
> hear the demo. 
> 
> Incidentally, you don't need it in a demo context, it could just be in
> the incoming context if you wanted.

If you actually wanted to have it as an 's' (for whatever reason) you
would use  a Goto. You could also then remove the 'include'.

For example:

extensions.conf:
        ---------------------------
        [general]
        static=yes
        writeprotect=no
        autofallthrough=yes
        clearglobalvars=no
        
        [incoming]
        exten => 101,1,Dial(SIP/id_xlite|30)
        exten => 102,1,Dial(SIP/id_linksys|30) 
        exten => 123,1,Answer
        exten => 123,n,Playback(hello-world)
        exten => 123,n,Hangup()
        exten => 130,n,Goto(demo,s,1)
        
        ;;;NOT USED include => demo
        
        [demo]
        exten => s,1,Answer()
        exten => s,n,Wait(1)
        exten => s,n,Playback(demo-congrats) 
        exten => s,n,Hangup()
-- 
John Van Ostrand
         Net Direct Inc.
 
CTO, co-CEO
564 Weber St. N. Unit 12
   Waterloo, ON N2L 5C6 
 map 
[EMAIL PROTECTED]
        Ph: 519-883-1172
 ext.5102
Linux Solutions / IBM
Hardware
        Fx: 519-883-8533
 

Reply via email to