[OpenSIPS-Users] Scan all Contact adresses

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Aug 4 16:04:06 CEST 2009


Hi Yannick,

Be aware that this new pseudo-variable is available only in opensips 1.6 
(trunk / devel version).

Regards,
Bogdan

Yannick LE COENT wrote:
> I've tried to use $ct.fields(uri) in order to store the URI in the variable.
> For instance:
> 	$var(contacturi) = $(ct.fields(uri));
> 	xlog("ylc 0.7.4: Contact [$var(contacturi)] in REGISTER");
>
> but I've got a error in the config:
>
> Not starting opensips: invalid configuration file!
> -e 
> Aug  4 14:07:13 [25820] ERROR:core:pv_parse_spec: error searching pvar
> "ct.fields"
> Aug  4 14:07:13 [25820] ERROR:core:pv_parse_spec: wrong char [u/117] in
> [$(ct.fields(uri))] at [12 (2)]
> Aug  4 14:07:13 [25820] CRITICAL:core:yyerror: parse error in config file,
> line 301, column 61-78: unknown script variable
> Aug  4 14:07:13 [25820] ERROR:core:main: bad config file (1 errors)
>
>
> What is wrong in my syntax?
>
> Using $(ct[1]), give me a syntax error too.
>
> Thanks,
> Yannick
>
> -----Message d'origine-----
> De : Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro] 
> Envoyé : mardi 4 août 2009 04:37
> À : Yannick LE COENT
> Cc : users at lists.opensips.org
> Objet : Re: [OpenSIPS-Users] Scan all Contact adresses
>
> Hi Yannick,
>
> In 1.6, try $ct[*] (see http://www.opensips.org/Resources/DocsCoreVar#toc18)
>
> Regards,
> Bogdan
>
> Yannick LE COENT wrote:
>   
>> Hi,
>>
>>  
>>
>> Is there a way to display the hostport of all name-addr present in the 
>> Contact header?
>>
>>  
>>
>> Yannick
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>   
>>     
>
>
>
>   




More information about the Users mailing list