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

Dmitry Melekhov dm at belkam.com
Tue Sep 28 07:19:13 CDT 2010


28.09.2010 15:35, Philipp von Klitzing ?????:
> 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}))
>
>    
Hello!

Thank you!

I can pass this constant , but I need RTCP stats

And this

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

gives me stats on beginning of call, not at it's end...

This is mentioned here http://www.voip-info.org/wiki/view/Asterisk+RTCP
"; - These RTCP stats provided by CHANNEL(rtpqos) apparently only show data for the last RTCP message we got! 
"

But, looks like ${RTPAUDIOQOSJITTER}  is not available at all:
   -- Executing [s at macro-test:2] Set("SIP/6052-000002b2", 
"SHARED(foo,DAHDI/9-1)= ") in new stack

As you see it is empty.

Hmm,looks like I need to call macro at the end of call.
Is it possible?

Thank you!
At least now I understand something ;-)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100928/887a5654/attachment.htm 


More information about the asterisk-users mailing list