[Asterisk-Users] Re: Marco and Realtime Extension Problem [SOLVED]

Kenige Ho kengiepanda at gmail.com
Mon Jul 25 07:31:07 MST 2005


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 at 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 at extensions
>
> [macro-stdexten]
> exten => s,1,NoOp(Leaving Marco)
>
>
> Regards,
> Kengie Ho
>
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at 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



More information about the asterisk-users mailing list