Kenige Ho
2005-Jul-25 07:31 UTC
[Asterisk-Users] Re: Marco and Realtime Extension Problem [SOLVED]
Dear All, Sorry to be posting again. I have solved my problem. The problem is that when exiting from the macro, the priority number is still in effect. For example, priority 1 is at the start before entering macro after the macro the priorty will be 2. Since there isn't any other dialplan command, the switch statement would be search for a priority 2 in the Realtime extensions table. One Tip: If there isn't any one to help you, just help yourself. In the logger.conf, use the console statement and output ready to the console and you will be able to almost see everything that is going on. I want to thank the person that left that tip in the mailing list. Sorry I forgot who it was as I was searching through the entire archive from the begin. I hope that this will help some people when there isn't any one to help you. Regards, Kengie Ho On 7/21/05, Kenige Ho <kengiepanda@gmail.com> wrote:> Dear All, > > I have a problem with the Marco and the Realtime Extensions in my > extensions.conf. The problem is that when I exit from my Marco, I > should return to my calling context, which is default but the next > step for it should be switch statement which will use realtime > extension. Somehow I am getting the following error below with > autofallthrough=yes : > > -- Executing NoOp("SIP/555-5dcf", "Channel is SIP/555-5dcf") in new stack > == Auto fallthrough, channel 'SIP/555-5dcf' status is 'UNKNOWN' > > And the following error with autofallthrough=no : > > -- Executing NoOp("SIP/555-f121", "Channel is SIP/555-f121") in new stack > Jul 21 16:51:46 WARNING[4090]: pbx.c:2337 __ast_pbx_run: Timeout, but > no rule 't' in context 'default' > > In a sense, when I leave the marco, I should be able to enter the > realtime extension, but the call flow just fails after prority of the > default context. > > Is there some bug in my sytnax or something in the asterisk program itself? > > Below is my default context: > > [default] > exten => _X.,1,Macro(stdexten,${EXTEN},${CALLERIDNUM}) > ;Realtime Routing from MySQL > switch => Realtime/default@extensions > > [macro-stdexten] > exten => s,1,NoOp(Leaving Marco) > > > Regards, > Kengie Ho >_______________________________________________ Asterisk-Dev mailing list Asterisk-Dev@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-dev To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
Tzafrir Cohen
2005-Jul-25 10:52 UTC
[Asterisk-Users] Re: Marco and Realtime Extension Problem [SOLVED]
Hi On Mon, Jul 25, 2005 at 10:31:07PM +0800, Kenige Ho wrote:> Dear All, > > Sorry to be posting again. I have solved my problem.What is there to be sorry about? Posting a summary of the solution is quite useful, and is definetly considered "sound" rather than "noise". Now when someone searches the list archives and find your problem, it is accompanied by a matching solution. [snip]> > One Tip: If there isn't any one to help you, just help yourself. In > the logger.conf, use the console statement and output ready to the > console and you will be able to almost see everything that is going > on.Actually, such a thing should be done *before* posting a question. Cheers -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend