[Kamailio-Devel] SF.net SVN: openser:[5207]
Ovidiu Sas
osas at voipembedded.com
Tue Nov 18 04:33:31 CET 2008
Thank you Juha. It all works fine now.
-ovidiu
On Mon, Nov 17, 2008 at 6:25 PM, Juha Heinanen <jh at tutpro.com> wrote:
> Ovidiu Sas writes:
>
> > After this change, the old config doesn't work anymore :(
> >
> > dp_translate("2", "$rd/$var(index)");
>
> ovidiu,
>
> it doesn't because now pseudo variable type is checked, which is was not
> before. according to README, the above should not have worked:
>
> * src/dest - input and output of the function. If this
> parameter is missing the default parameter
> "ruri.user/ruri.user" will be used, thus translating the
> request uri.
> Both src and dest can have the following types:
> + R-URI
> - the string is the r-uri or r-uri username
> + avp var
> -At input the function will get the input string from
> an existing avp variable. At output the function will
> add an avp with the value of the output string.
> + script var
> -At input the function will get the input string from
> an existing script variable. At output the function
> will set an script variable with the value of the
> output string.
>
> one solution might be to not check src at all, because it is used only
> for reading and its type should thus not matter.
>
> i'll make that change.
>
> -- juha
>
More information about the Devel
mailing list