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!



-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to