[Asterisk-Users] Re: Expressions - solved

Florian Overkamp florian at obsimref.com
Thu Dec 18 10:45:52 MST 2003


Hi,

At 17:21 18-12-2003 +0100, you wrote:
>A first it seemed like the variable was set until Answer() was called but it
>is not the case. More testing revealed the vars gets cleared when Asterisk
>bridges the channel and chosen extension set in the call spool file.
>
>     -- Executing NoOp("Local/1234 at default-9d04,1", "id = 36") in new stack
>     -- Executing Answer("Local/1234 at default-9d04,1", "") in new stack
>     -- Executing NoOp("Local/1234 at default-9d04,1", "id = 36") in new stack
>     -- Executing Wait("Local/1234 at default-9d04,1", "1") in new stack
>   == Spawn extension (macro-dialprovider, s, 5) exited non-zero on
>'Local/1234 at default-9d04,2' in macro 'dialprovider'
>   == Spawn extension (default, 1234, 2) exited non-zero on
>'Local/1234 at default-9d04,2'
>     -- Executing NoOp("IAX2[x.x.x.x:4569]/1", "id = ") in new stack

Yes, it seems to be related to some combination of using the Local channel 
driver and applications (not just Answer, I see this with Wait too):

My extensions.conf has this context:

exten = s,1,NoOp(${INLOG})
exten = s,2,NoOp(${HUIS})
exten = s,3,Wait(5)
exten = s,4,NoOp(${INLOG})
exten = s,5,NoOp(${HUIS})

If I activate a call to this code with a Local driver, the variables are 
erased after the Wait!
If I activate a call to this code with i.e. MGCP driver, the variables are 
untouched.

Florian






More information about the asterisk-users mailing list