What is the proper way to scan a string via the rpc interface?
<code_snippet>
str string = {NULL,0};
if (rpc->scan(c, "S", &string) < 1) return;
</code_snippet>
If I use the above code and I pass a string that is made out of
digits, I get the following error:
"error: 400 - error at parameter 0: expected string type but record
doesn't match type"
I would like to have the argument interpreted as a string no matter
what I pass as an argument via rpc:
sercmd> some_cmd abcd
the above will work ok
sercmd> some_cmd 1234
the above will give the 400 error
Regards,
Ovidiu Sas
Revision: 6009
http://openser.svn.sourceforge.net/openser/?rev=6009&view=rev
Author: mariuszbihlei
Date: 2010-06-24 14:01:42 +0000 (Thu, 24 Jun 2010)
Log Message:
-----------
Do not consider in-early-dialog requests to be bogus.
Patch from Timo Reimann (timo.reimann(a)1und1.de), patch backported from sip-router
Modified Paths:
--------------
branches/1.5/modules/dialog/dlg_hash.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 6008
http://openser.svn.sourceforge.net/openser/?rev=6008&view=rev
Author: mariuszbihlei
Date: 2010-06-24 13:59:14 +0000 (Thu, 24 Jun 2010)
Log Message:
-----------
modules/dialog: Reduce log verbosity for list traversal of
expired dialogs.
- Change logging of start/previous/next pointers from WARN to DBG
when traversing the list of expired dialogs.
- Patch by Timo Reimann (timo.reimann at 1und1.de), patch backported from sip-router
Modified Paths:
--------------
branches/1.5/modules/dialog/dlg_timer.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Module: sip-router
Branch: master
Commit: e5d313913b34e05a9e0529a907b87a54ba354d26
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e5d3139…
Author: Timo Reimann <timo.reimann(a)1und1.de>
Committer: Timo Reimann <timo.reimann(a)1und1.de>
Date: Thu Jun 24 15:50:52 2010 +0200
Correct typo in comment referring to other file.
---
timer.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/timer.h b/timer.h
index 7b1b66e..969ce5d 100644
--- a/timer.h
+++ b/timer.h
@@ -73,7 +73,7 @@ typedef void (timer_function)(unsigned int ticks, void* param);
/* deprecated, old, kept for compatibility
get_ticks()*TIMER_TICK used to be the time in s
for new code, use get_ticks_raw() and one of the macros defined in
- time_ticks.h (.e.g TICKS_TO_S(tick) to convert to s or ms )*/
+ timer_ticks.h (.e.g TICKS_TO_S(tick) to convert to s or ms )*/
#define TIMER_TICK 1 /* 1 s, kept for compatibility */