Job offer:
Interested in working with one of the biggest Voice over IP networks in
europe? We're hiring and have one additional VoIP developer position open in
our team in Karlsruhe, Germany at the moment.
For more informations (requirements, how to apply..) please refer to the
opening on the job web page. Some facts about our VoIP system can be found at
e.g. [1], please feel free to contact me per mail as well.
http://www.united-internet.de/xml/ui/JobsJobDetail;?__lf=JobsApplication200…
Best regards,
Henning Westerholt
[1] http://www.kamailio.org/events/2010-linuxtag/presentation.pdf
--
Henning Westerholt - Technical Leader VoIP backend development
1&1 Internet AG, Ernst-Frey-Str. 9, 76135 Karlsruhe, Germany
i tried to implement eval function that evaluates a string given as
first param and writes the result to second param (see below). the idea
is to first get the string argument, then run spve fixup on it and,
finally, get and store the result. unfortunately nothing sensible
comes out and even orig and type of the spve fixup result are bogus.
the fist INFO output shows that the string value to be evaluated is got
correctly. also all function calls succeed.
obviously the above logic or its realization has something wrong in it.
does someone have any ideas where the problems are?
-- juha
/*
* Evaluates first param (string) and saves result to second param (pvar)
*/
int eval(struct sip_msg* _m, char* _string, char* _dst)
{
str value, result;
char **param;
pv_spec_t *dst;
pv_value_t val;
fparam_t *fp;
if (fixup_get_svalue(_m, (gparam_p)_string, &value) != 0) {
LM_ERR("cannot get parameter value\n");
return -1;
}
param = &(value.s);
LM_INFO("param value as string is <%s>\n", *param);
if (fixup_spve_null((void **)param, 1) != 0) {
LM_ERR("failed to evaluate parameter <%.*s>\n", value.len, value.s);
return -1;
}
fp = (fparam_t *)param;
LM_INFO("orig <%s>, type <%d>\n", fp->orig, fp->type);
if (get_str_fparam(&result, _m, fp) != 0) {
LM_ERR("cannot get result value\n");
return -1;
}
val.rs.s = result.s;
val.rs.len = result.len;
LM_INFO("eval result: %.*s\n", val.rs.len, val.rs.s);
val.flags = PV_VAL_STR;
dst = (pv_spec_t *)_dst;
dst->setf(_m, &dst->pvp, (int)EQ_T, &val);
return 1;
}
Revision: 6011
http://openser.svn.sourceforge.net/openser/?rev=6011&view=rev
Author: juhe
Date: 2010-06-27 05:18:41 +0000 (Sun, 27 Jun 2010)
Log Message:
-----------
* modules/lcr: fixed to_gw/to_gw_grp documentation
Modified Paths:
--------------
branches/1.5/modules/lcr/README
branches/1.5/modules/lcr/doc/lcr_admin.xml
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.