Hi, Yes, I know I can set the RING variable for each extension, but I would really like to set it based on the initial context for the call.
Now I need to check for every extension that gets called if the call originated inside or outside and set the ring accordingly. Kind regards, Mark Rich Adamson said: > The following works well with a Sipura spa3k: > > exten => 3022,1,SetVar(_ALERT_INFO=bellcore-r3) ; selects Ringer > exten => 3022,2,Dial(SIP/3022,25,r) ; Sipura spa-3000 fxs port > > ------------------------ > >> Hi, >> >> Yes, I tried that, but it didn't work. I've tried this: >> [contextname] >> RING = r2 >> _RING = r2 >> __RING = r2 >> but nothing worked... >> >> I did find that if I didn't set >> RING = >> under globals, the variable would actually never get reset between >> calls! >> >> Kind regards, >> >> Mark >> >> trixter http://www.0xdecafbad.com said: >> > have you tried setting the variable at the begining of the context? >> > >> > [contextname] >> > varname=value >> > >> > >> > On Sun, 2005-05-08 at 08:48 +0200, Mark Wormgoor wrote: >> >> Hi, >> >> >> >> Is it possible to set a variable for a context for all extensions? I >> >> haven't been able to find it. I want something like this in >> >> extensions.conf: >> >> >> >> [from-iaxfwd] >> >> exten => .,1,RING=r3 >> >> exten => 123456,1,Goto(from-pstn,s,1) >> >> >> >> [from-internal] >> >> exten => .,1,RING=r2 >> >> include => ext-local >> >> >> >> [ext-local] >> >> exten => 1,1,Dial(Zap/1,${LONGTIMEOUT}) >> >> exten => 2,1,Dial(SIP/2,${LONGTIMEOUT}) >> >> >> >> But how do I do this? I want to change the ring depending on the >> >> starting context. The above doesn't work. >> >> >> >> Kind regards, >> >> >> >> Mark > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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 > > -- *************************************************************** * |\ /| | /| / Mark Wormgoor * * | \ / | | / | / mailto:[EMAIL PROTECTED] * * | \/ |ark |/ |/ormgoor http://www.wormgoor.com/mark/ * *************************************************************** _______________________________________________ Asterisk-Users mailing list Asterisk-Users@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