[Kamailio-Devel] SF.net SVN: openser:[5207]

Juha Heinanen jh at tutpro.com
Tue Nov 18 00:25:32 CET 2008


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