[SR-Users] @msg.%s syntax

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Mar 29 12:09:02 CEST 2010


On Mar 28, 2010 at 11:57, Juha Heinanen <jh at tutpro.com> wrote:
> first section of page
> 
> http://sip-router.org/wiki/cookbooks/selects/devel
> 
> had example
> 
> @msg.["P-anyheader-youwant"])
> 
> that, however, produced syntax error.  i removed the dot and got rid of
> the error.  i then went and fixed the wiki page too.
> 
> however, later on the page there still is
> 
> @msg.%s

This is equivalent to @msg[%s] (so there is no error in this case).
E.g. @msg["P-Foo"] is equivalent with @msg.P-Foo.

> 
> and many more like that.  are they generated automatically?  if so, then
> fixing them on the wiki page would not help.

No, that page is not generated automatically.

You can find the list with all the selects, auto-generated from the code
 here:
 http://sip-router.org/docbook/sip-router/branch/master/select_list/select_list.html

> 
> also, is there somewhere a summary of pv syntax of s and k flavors?

If you mean differences between selects & pv, then no.
The selects are documented in 3 places:
http://sip-router.org/wiki/ref_manual/selects
http://sip-router.org/docbook/sip-router/branch/master/select_list/select_list.html
http://sip-router.org/wiki/cookbooks/selects/devel (contains the above 2
links)



Andrei




More information about the sr-users mailing list