Module: kamailio Branch: master Commit: 063d5cfcb5cb685cd669249235be99c7cfcf1359 URL: https://github.com/kamailio/kamailio/commit/063d5cfcb5cb685cd669249235be99c7cfcf1359
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2016-01-21T23:48:22+01:00 ctl: support for u specifier --- Modified: modules/ctl/binrpc_run.c --- Diff: https://github.com/kamailio/kamailio/commit/063d5cfcb5cb685cd669249235be99c7cfcf1359.diff Patch: https://github.com/kamailio/kamailio/commit/063d5cfcb5cb685cd669249235be99c7cfcf1359.patch --- diff --git a/modules/ctl/binrpc_run.c b/modules/ctl/binrpc_run.c index 2355a50..3b9153e 100644 --- a/modules/ctl/binrpc_run.c +++ b/modules/ctl/binrpc_run.c @@ -856,6 +856,7 @@ static int rpc_scan(struct binrpc_ctx* ctx, char* fmt, ...) case 'b': /* bool */ case 't': /* time */ case 'd': /* int */ + case 'u': /* uint */ v.type=autoconv?BINRPC_T_ALL:BINRPC_T_INT; ctx->in.s=binrpc_read_record(&ctx->in.ctx, ctx->in.s, ctx->in.end, &v, 0, &err); @@ -955,6 +956,7 @@ static int rpc_add(struct binrpc_ctx* ctx, char* fmt, ...) case 'd': case 't': case 'b': + case 'u': err=binrpc_addint(&ctx->out.pkt, va_arg(ap, int)); if (err<0) goto error_add; break; @@ -1061,6 +1063,7 @@ static int rpc_struct_add(struct rpc_struct_l* s, char* fmt, ...) case 'd': case 't': case 'b': + case 'u': avp.type=BINRPC_T_INT; avp.u.intval=va_arg(ap, int); break; @@ -1124,6 +1127,7 @@ static int rpc_array_add(struct rpc_struct_l* s, char* fmt, ...) case 'd': case 't': case 'b': + case 'u': err=binrpc_addint(&s->pkt, va_arg(ap, int)); if (err<0) goto error_add; break; _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
