Am 26.08.2010 09:01, schrieb Liu Jianquan:
> [test1]
> exten => 120,1,Set(GLOBAL(Digit)="123")
That would work, but can causes problems if you have concurrent calls as
you are using a global variable.
I think you can also workaround by using variable inheritance, e.g:
; use _ for one-time inheritance
Set(_Digit=123)
; use __ for infinite inheritance
Set(__Digit=123)
In both cases you query the value as before without underscore, e.g.:
NoOp(${Digit})
regards
klaus
>
> -----原始邮件-----
> *发件人:* [email protected]
> [mailto:[email protected]]*代表 *lemonash
> *发送时间:* 2010年8月26日 14:44
> *收件人:* [email protected]
> *主题:* [Asterisk-video] Variable Pass Through h324m_gw()
>
> Hi folks!
>
> The following is my dialplan:
> [test1]
> exten => 120,1,Set(Digit="123")
> exten => 120,n,NoOp(${Digit})
> exten => 120,n,h324m_gw(d...@test2)
>
> [test2]
> exten => ds,1,h324m_gw_answer()
> exten => ds,n,NoOp(${Digit})
> exten => ds,n,Set(Name=${Digit})
>
>
> The variable Name in test2 is NULL!
> How can I get the variable from test1?
>
> Thanks!
>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-video