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

Dmitry Melekhov dm at belkam.com
Mon Sep 27 22:52:53 CDT 2010


27.09.2010 16:25, Philipp von Klitzing пишет:
> Hi!
>
>    
>> Well, only problem I see, is to how pass channel name from macro to h
>> extension...
>>      
> SHARED() or CDR(userfield)
>
> Philipp
>
>
>    
Looks like I still don't understand how SHARED works :-(

Let's say, I dial my softphone:

exten=6052,n,Dial(SIP/6052,,M(test))

I have macro:

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


then I want get this 456 in h:

exten => h,1,NoOp(${SHARED(foo,${CHANNEL})})

if use $CHANNEL then channel is DAHDI and I get nothing.
As I understand I have to provide SIP channel name, but how can I export 
it's name from macro to h?

Thank you!





More information about the asterisk-users mailing list