On 20-09 11:32, Jakob Schlyter wrote:
there is sometimes a need to set the privacy parameter
at runtime, e.g.
the user might want to select the level of privacy when the number is
dialed (in sweden we do this in the PSTN with a special prefix, #31#).
I made a quick change and turned rpid_prefix and rpid_suffix parameters
into parameters of append_rpid_hf function. That will allow you to
specify different prefix and suffix in every call to the function from
the script.
This will allow you to do something like this:
if (number begins with #31#) {
append_rpid_hf("prefix", "suffix with privacy");
} else {
append_rpid_hf("prefix", "suffix witout privacy");
};
NOTE: The patch is against the stable release and I didn't test it !
let me know if it works, Jan.