< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Adding a new parameter to a header


O dear..... I didnt know that we need to have a tool namely gperf. Now, I got it installed and was succesfully send the required params in the REGISTER message. Thanks for the help.

One more thing, resiprocate, having supporting RFC3329, why aren't the tokens for these headers provided??



On 4/27/07, Byron Campen <bcampen@xxxxxxxxxxxx> wrote:
Do you have gperf installed?

Best regards,
Byron Campen

Hi,
Im a newbie to the list.
Resiprocate claims to support RFC3329; but I was not able to spot the access tokens to access parameters like alg, spi-c, spi-s, etc that go along with the Security-Client header in REGISTER message. I myself tried to add the params using the doc given at:
http://www.resiprocate.org/Adding_a_new_parameter

After doing this, the stack doesn't compile and gives the following error:

make[1]: Entering directory `/home/purna/resip27_04/resip/stack'
gperf -v > /dev/null 2>&1 && gperf -D --enum -E -L C++ -t -k '*' --compare-strncmp -Z `echo ParameterHash | sed -e 's/.*\///'` ParameterHash.gperf | \
sed -e 's/str\[\([0-9][0-9]*\)\]/tolower(str[\1])/g' | \
sed -e 's/^\([  ]*\)if *(\*\([a-z][a-z]*\) *== *\*\([a-z][a-z]*\) *\&\& *!strncmp *(\([^)]*\)).*/\1if (tolower(*\2) == *\3 \&\& !strncasecmp( \4 ))/g' | \
sed -e 's/\*str ==/tolower(*str) ==/' | \
sed -e 's/\!strncmp/\!strncasecmp/'  > ParameterHash.cxx
make[1]: *** [ParameterHash.cxx] Error 127
make[1]: Leaving directory `/home/purna/resip27_04/resip/stack'
make: *** [resiprocate] Error 2

What I am clearly missing is, the updation of the gperf hash description files and running the test drivers(as pointed out by the doc in above link). But the documentation doesnot clearly say how to do this. Did anyone happen to add a new param to a header. If yes, please let me know the procedure.

Thanks and regards,
Purna Chandar M
_______________________________________________
resiprocate-devel mailing list