[asterisk-users] func SHARED, how to use?

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Tue Sep 28 06:35:27 CDT 2010


Hi!

> Looks like I still don't understand how SHARED works :-(
> 
> exten=6052,n,Dial(SIP/6052,,M(test))

exten=6052,n,Dial(SIP/6052,,M(test^${CHANNEL}))

Please check if in Asterisk 1.6 the Syntax for passing arguments to the M 
option of Dial() has changed.

> [macro-test]
> exten => s,n,Set(SHARED(foo,${CHANNEL})=456 )

exten => s,n,Set(SHARED(foo,${ARG1})=456)

Philipp




More information about the asterisk-users mailing list