Module: kamailio
Branch: master
Commit: 97f1909cc1bcb93d196067ce2171d9a5a9661328
URL: https://github.com/kamailio/kamailio/commit/97f1909cc1bcb93d196067ce2171d9a…
Author: Luis Azedo <luis(a)2600hz.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2015-03-30T13:23:44+01:00
presence: add $subs pv for subscription access
after handle_subscribe there is no safe way in script to obtain the presently
because re-subscription RURI is ip of kamailio and To-Uri may not contain
the presently.
$subs(uri) will allow access to this value
added as a pv to allow extension to get more properties from subscription
---
Modified: modules/presence/doc/presence_admin.xml
Modified: modules/presence/presence.c
Modified: modules/presence/presence.h
Modified: modules/presence/subscribe.c
---
Diff: https://github.com/kamailio/kamailio/commit/97f1909cc1bcb93d196067ce2171d9a…
Patch: https://github.com/kamailio/kamailio/commit/97f1909cc1bcb93d196067ce2171d9a…
added param sip_uri_match
0 - case sensitive (default)
1 - case insensitive
can be extended to a more compliant version, (sensitive user, insensitive domain).
the parameter sets the function to call to match uris.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/116
-- Commit Summary --
* presence: add sip_uri_match module parameter
-- File Changes --
M modules/presence/doc/presence_admin.xml (29)
M modules/presence/hash.c (10)
M modules/presence/notify.c (22)
M modules/presence/presence.c (49)
M modules/presence/presence.h (3)
M modules/presence/presentity.c (4)
M modules/presence/subscribe.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/116.patchhttps://github.com/kamailio/kamailio/pull/116.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/116
Module: kamailio
Branch: master
Commit: c28a887d3a51b471e0bcc111e6af65e17fc36a1b
URL: https://github.com/kamailio/kamailio/commit/c28a887d3a51b471e0bcc111e6af65e…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: 2015-03-30T11:54:10+02:00
modules/ims_qos: check for called party id in request if P-Asserted-Id not present
---
Modified: modules/ims_qos/mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/c28a887d3a51b471e0bcc111e6af65e…
Patch: https://github.com/kamailio/kamailio/commit/c28a887d3a51b471e0bcc111e6af65e…
---
diff --git a/modules/ims_qos/mod.c b/modules/ims_qos/mod.c
index 6d0486b..c5cf544 100644
--- a/modules/ims_qos/mod.c
+++ b/modules/ims_qos/mod.c
@@ -544,6 +544,8 @@ static int w_rx_aar(struct sip_msg *msg, char *route, char* dir, char *c_id, int
int must_free_asserted_identity = 0;
sdp_session_cell_t* sdp_session;
str s_id;
+
+ struct hdr_field *h=0;
cfg_action_t* cfg_action = 0;
saved_transaction_t* saved_t_data = 0; //data specific to each contact's AAR async call
@@ -719,8 +721,13 @@ static int w_rx_aar(struct sip_msg *msg, char *route, char* dir, char *c_id, int
} else {
LM_DBG("terminating direction\n");
if ((identifier = cscf_get_asserted_identity(msg, 0)).len == 0) {
- LM_DBG("No P-Asserted-Identity hdr found in response. Using To hdr in resp");
- identifier = cscf_get_public_identity(msg); //get public identity from to header
+ LM_DBG("No P-Asserted-Identity hdr found in response. Using Called party id in resp");
+ //get identity from called party id
+ //getting called asserted identity
+ if ((identifier = cscf_get_public_identity_from_called_party_id(t->uas.request, &h)).len == 0) {
+ LM_DBG("No P-Called-Identity hdr found. Using request URI for called_asserted_identity");
+ identifier = cscf_get_public_identity(msg); //get public identity from to header
+ }
}
}
if (strncasecmp(identifier.s,"tel:",4)==0) {
Daniel, hello. Our service need to translate location table to redis, and
we want start to write own module for kamailio. Akn you give us some
advices and documentation for API of kamailio, that we may to use for
creation own module.
Thks