[asterisk-users] priority problem

unplug maillisting at gmail.com
Wed Jul 12 23:17:51 MST 2006


In dial plan, we can set the priority.  However, I find that the
priority count is a global value.  It will continue to increment no
matter in different context.  Below is what I have tried.
--------------------------------
In extension.conf
[testflow]
exten => _X.,1,NoOp(testflow,1=${CALLERID(NUM)})
exten => _X.,2,NoOp(testflow,2=${CALLERID(NUM)})
include => testflow1
include => testflow2
include => testflow3

[testflow1]
exten => _X.,1,NoOp(testflow1,1=${CALLERID(NUM)})
exten => _X.,2,NoOp(testflow1,2=${CALLERID(NUM)})
exten => _X.,3,NoOp(testflow1,3=${CALLERID(NUM)})

[testflow2]
exten => _X.,1,NoOp(testflow2,1=${CALLERID(NUM)})
exten => _X.,2,NoOp(testflow2,2=${CALLERID(NUM)})
exten => _X.,3,NoOp(testflow2,3=${CALLERID(NUM)})
exten => _X.,4,NoOp(testflow2,4=${CALLERID(NUM)})

[testflow3]
exten => _X.,1,NoOp(testflow3,1=${CALLERID(NUM)})
exten => _X.,2,NoOp(testflow3,2=${CALLERID(NUM)})
exten => _X.,3,NoOp(testflow3,3=${CALLERID(NUM)})
exten => _X.,4,NoOp(testflow3,4=${CALLERID(NUM)})
exten => _X.,5,NoOp(testflow3,5=${CALLERID(NUM)})
-------------------------------
result in the log
    -- Executing NoOp("SIP/871966760539-4467",
"testflow|1=871966760539") in new stack
    -- Executing NoOp("SIP/871966760539-4467",
"testflow|2=871966760539") in new stack
    -- Executing NoOp("SIP/871966760539-4467",
"testflow1|3=871966760539") in new stack
    -- Executing NoOp("SIP/871966760539-4467",
"testflow2|4=871966760539") in new stack
    -- Executing NoOp("SIP/871966760539-4467",
"testflow3|5=871966760539") in new stack

As you can see in context of testflow1 and afterward, the priority
start is 3 instead of 1.  Is the the correct sequence of priority
execution?  Can I reset it to run the priority 1 in every context?



More information about the asterisk-users mailing list