[asterisk-users] Using HASH() and REALTIME_HASH()

Benoit maverick at maverick.eu.org
Sat Jan 9 15:22:29 CST 2010


Hi,

I'm playing around with asterisk 1.6.2.0 and the first try was to
replace my now non-functionning
'app-realtime' macro which emulated RealTime with REALTIME_HASH()

There is very few documentation on the subject except for this bug report:
        https://issues.asterisk.org/view.php?id=13651#c94998

However when i try this syntax:       
Set(HASH(info)=${REALTIME_HASH(call_info,exten,${dest})});
the syntax doesn't seem to be happy:

    -- Executing [s at appel_deb:8] Set("SIP/maverick-00000000",
"HASH(info)=,101,maverick,0,0,max,0,0,123456,123654") in new stack
[Jan  9 22:07:25] WARNING[27801]: pbx.c:9107
pbx_builtin_setvar_multiple: MSet: ignoring entry '101' with no '=' (in
s at appel_deb:8
[Jan  9 22:07:25] WARNING[27801]: pbx.c:9107
pbx_builtin_setvar_multiple: MSet: ignoring entry 'maverick' with no '='
(in s at appel_deb:8
[Jan  9 22:07:25] WARNING[27801]: pbx.c:9107
pbx_builtin_setvar_multiple: MSet: ignoring entry '0' with no '=' (in
s at appel_deb:8
[Jan  9 22:07:25] WARNING[27801]: pbx.c:9107
pbx_builtin_setvar_multiple: MSet: ignoring entry '0' with no '=' (in
s at appel_deb:8
....

I had to do the following:
Set(HASH(info)="${REALTIME_HASH(call_info,exten,${dest})}");    (adding
of double quote)

Is it normal ?
benoit



More information about the asterisk-users mailing list