THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#238 - siputils module. Adding the function: get_uri_param
User who did this - Luis Martin (lmartin)
----------
uri_param_2() modifications are just white-spacing indents (emacs tabs).
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=238#comment699
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#238 - siputils module. Adding the function: get_uri_param
User who did this - Daniel-Constantin Mierla (miconda)
----------
For sake of full set of functions, the function can be added. But the parameters' values can be received via {param.value,...} transformation:
http://www.kamailio.org/wiki/cookbooks/3.3.x/transformations#paramvalue_name
In the patch I see the function uri_param_2() is touched a lot, is only white-space indenting change?
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=238#comment698
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Luis Martin (lmartin)
Attached to Project - sip-router
Summary - siputils module. Adding the function: get_uri_param
Task Type - Improvement
Category - tools/scripts
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Normal
Reported Version - 3.3
Due in Version - Undecided
Due Date - Undecided
Details - This patch affects the 'siputils' module.
http://kamailio.org/docs/modules/stable/modules_k/siputils.html
This patch affects to the files:
kamailio/modules_k/siputils/siputils.c
kamailio/modules_k/siputils/checks.c
kamailio/modules_k/siputils/checks.h
Among the functions that 'siputils' provides, we have:
4.5. uri_param(param)
http://kamailio.org/docs/modules/stable/modules_k/siputils.html#id2531859
4.6. uri_param(param,value)
http://kamailio.org/docs/modules/stable/modules_k/siputils.html#id2539159
4.7. add_uri_param(param)
http://kamailio.org/docs/modules/stable/modules_k/siputils.html#id2534537
What if I want the value back from a given "param" within the URI? This is what this patch does. It adds a function called 'get_uri_param':
get_uri_param(struct sip_msg* _msg, char* _param, char* _value)
Returns > 0 if _param if found and _value will have its associated value.
Returns < 0 if _param is not found.
Example (kamailio.cfg):
loadmodule "siputils.so"
(...)
$var(value) = "";
if(get_uri_param("grp","$var(value)")) {
xlog("L_INFO", "-----------------------------\n");
xlog("L_INFO", "This gives you the value of grp!\n");
xlog("L_INFO", "grp detected: \"$var(value)\"\n");
xlog("L_INFO", "-----------------------------\n");
} else {
xlog("L_INFO", "no grp detected\n" );
}
If the URI is like:
sip:1234@192.168.20.10;option=test2;grp=test
The code below will output:
'This gives you the value of grp!'
'grp detected: "test"'
Hope it helps,
Luis Martin Gil
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=238
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
http://kamailio.org/docs/modules/3.3.x/modules_k/presence_profile.html
From reading this documentation I can't figure out anything on how to use this great and cool (I hope) new module. I suggest that the author not only correct the spelling of his name (because I don't believe the HTML representation is correct) but also give some usage examples.
Add some examples on how to update the presence status, the model for usage and configuration issues. I think UA-config is important, so we might as well add a bit of information from the RFC to educate our users.
Thanks for adding this module!
/O
Module: sip-router
Branch: master
Commit: 2664cb9aa8ffd5d26ef6a0841318ccbcdefbf69b
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2664cb9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Jun 25 10:36:31 2012 +0200
dispatcher(k): allow set id 0 for OPTIONS callback
- set id is provided in param pointer address, 0 being equivalent to
NULL
- reported by Avi Brender
---
modules_k/dispatcher/dispatch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/dispatcher/dispatch.c b/modules_k/dispatcher/dispatch.c
index a60401c..7429e97 100644
--- a/modules_k/dispatcher/dispatch.c
+++ b/modules_k/dispatcher/dispatch.c
@@ -2326,9 +2326,9 @@ static void ds_options_callback( struct cell *t, int type,
sip_msg_t *fmsg;
int state;
- /* The Param does contain the group, in which the failed host
+ /* The param contains the group, in which the failed host
* can be found.*/
- if (!*ps->param)
+ if (ps->param==NULL)
{
LM_DBG("No parameter provided, OPTIONS-Request was finished"
" with code %d\n", ps->code);