[OpenSIPS-Users] define variable problem
Richard Revels
rrevels at bandwidth.com
Sun Nov 16 14:40:03 CET 2008
I'm guessing modparam is inside a route and shouldn't be or assignment
is outside a route and shouldn't be.
Sent from my iPhone
On Nov 16, 2008, at 6:26 AM, "chamo" <chamo4 at darksun.sk> wrote:
>
> Nov 16 12:17:07 [49967] CRITICAL:core:yyerror: parse error in config
> file, line 166, column 7-16: syntax error
> Nov 16 12:17:07 [49967] CRITICAL:core:yyerror: parse error in config
> file, line 166, column 17-18: unknown config variable
> Nov 16 12:17:07 [49967] CRITICAL:core:yyerror: parse error in config
> file, line 167, column 1-9:
>
> line 166: $avp(s:a) = $fu + "@" + $fd;
> line 167: modparam("acc", "radius_extra", "User-Name=$avp(s:a);
> Called-Station-Id=$tu; Calling-Station-Id=$fu;
> Sip-Translated-Request-URI=$ru")
>
> i have also loaded module avpops.so
>
> it looks like in my build variables are not supported, do i need
> compile
> it any special way ?
>
> Norman Brandinger wrote / napísal(a):
>> Try using an AVP instead of a VAR:
>>
>> $avp(s:a) = $fu + "@" + $fd;
>>
>> modparam("acc", "radius_extra", "User-Name=$avp(s:a); ...")
>>
>> Regards,
>> Norm
>>
>> chamo wrote:
>>> hello i have silly question
>>>
>>> where could be problem here with this variable
>>> $var(a) = $fU + "@" + $fd; #without ; is result same
>>> modparam("acc", "radius_extra", "User-Name=$var(a);
>>> Called-Station-Id=$tu; Calling-Station-Id=$fu;
>>> Sip-Translated-Request-URI=$ru")
>>>
>>> i am getting errors
>>>
>>> Nov 14 13:27:12 [14080] CRITICAL:core:yyerror: parse error in config
>>> file, line 165, column 7-14: syntax error
>>> Nov 14 13:27:12 [14080] CRITICAL:core:yyerror: parse error in config
>>> file, line 165, column 15-16: unknown config variable
>>> Nov 14 13:27:12 [14080] CRITICAL:core:yyerror: parse error in config
>>> file, line 167, column 1-9:
>>>
>>> thank you
>>>
>>> Regards
>>>
>>> Chamo
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list