On 2/1/08, Paul Hales <[EMAIL PROTECTED]> wrote:
>
> I need to carry a variable over into the 'h' priority - so I can go back
> and clean up DB entries in a mysql database (time of call and so on)
>
> I tried using UNIQUEID but it seems that 'h' generates a new one.
>
> Anyone have any ideas? What can I use to carry a variable over into
> 'h'??

You have to understand that there's several channels for one call.
Variables are only inherited from parent channel to child, if you make
them inheritable by prepending underscore or two underscores. For
example - if you want to have one common unique identifier for call -
do this at beginning of each channel:

if ("${call_id}"="") {
  Set(__call_id=${UNIQUEID});
}

Then you can use this to store something shared in asterisk internal DB()

Regards,
Atis



-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to