kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
September 2014
----- 2024 -----
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
33 participants
375 discussions
Start a n
N
ew thread
git:master: ndb_mongodb: new module offering a non-db connector to MongoDB from config file
by Daniel-Constantin Mierla
Module: sip-router Branch: master Commit: 97b8731504d6103e301c77f3523b451524d0d461 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=97b8731…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: Wed Sep 10 18:06:38 2014 +0200 ndb_mongodb: new module offering a non-db connector to MongoDB from config file --- modules/ndb_mongodb/Makefile | 25 ++ modules/ndb_mongodb/README | 251 +++++++++++++ modules/ndb_mongodb/doc/Makefile | 4 + modules/ndb_mongodb/doc/ndb_mongodb.xml | 37 ++ modules/ndb_mongodb/doc/ndb_mongodb_admin.xml | 289 +++++++++++++++ modules/ndb_mongodb/mongodb_client.c | 480 +++++++++++++++++++++++++ modules/ndb_mongodb/mongodb_client.h | 72 ++++ modules/ndb_mongodb/ndb_mongodb_mod.c | 365 +++++++++++++++++++ 8 files changed, 1523 insertions(+), 0 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=97b…
10 years, 2 months
1
0
0
0
git:master: ims: Updated example configurations
by Carsten Bock
Module: sip-router Branch: master Commit: 17fa8ffec54baa65d2a138fe46f236d4d6d4a231 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=17fa8ff…
Author: Carsten Bock <carsten(a)ng-voice.com> Committer: Carsten Bock <carsten(a)ng-voice.com> Date: Wed Sep 10 17:47:07 2014 +0200 ims: Updated example configurations Enhancements: - Added Ro to the S-CSCF - Added database support, optionally use db_cluster - Replaced RTPProxy with RTPEngine module, support for originating WebRTC on the Proxy-CSCF (with SRTP Breaking) - Optionally engage a SBC between the P-CSCF and the Core, SEMS sample configuration - smaller adjustments --- examples/icscf/icscf.cfg | 47 +- examples/icscf/kamailio.cfg | 59 +- examples/pcscf/kamailio.cfg | 1100 +++++++++----------- examples/pcscf/pcscf.cfg | 66 +- examples/pcscf/sems/etc/methodmap.conf | 2 + examples/pcscf/sems/etc/mo.sbcprofile.conf | 75 ++ examples/pcscf/sems/etc/monitoring.conf | 20 + examples/pcscf/sems/etc/mt.sbcprofile.conf | 79 ++ examples/pcscf/sems/etc/nocache.sbcprofile.conf | 38 + examples/pcscf/sems/etc/refuse.sbcprofile.conf | 1 + .../pcscf/sems/etc/refuse_with_200.sbcprofile.conf | 1 + examples/pcscf/sems/etc/register.sbcprofile.conf | 28 + examples/pcscf/sems/etc/rurimap.conf | 1 + examples/pcscf/sems/etc/sbc.conf | 62 ++ examples/pcscf/sems/etc/src_ipmap.conf | 4 + examples/pcscf/sems/etc/stats.conf | 5 + examples/pcscf/sems/etc/xmlrpc2di.conf | 42 + examples/pcscf/sems/sems.conf | 538 ++++++++++ examples/scscf/kamailio.cfg | 305 +++--- examples/scscf/scscf.cfg | 46 +- 20 files changed, 1719 insertions(+), 800 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=17f…
10 years, 2 months
1
0
0
0
git:master: ims_*_pcscf: Several bugfixes
by Carsten Bock
Module: sip-router Branch: master Commit: a2cf37e0edc89f5bef9ae193122053de4652249f URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a2cf37e…
Author: Carsten Bock <carsten(a)ng-voice.com> Committer: Carsten Bock <carsten(a)ng-voice.com> Date: Wed Sep 10 17:32:40 2014 +0200 ims_*_pcscf: Several bugfixes --- modules/ims_registrar_pcscf/service_routes.c | 46 ++++++++++++++++---------- modules/ims_usrloc_pcscf/udomain.c | 8 +++-- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/modules/ims_registrar_pcscf/service_routes.c b/modules/ims_registrar_pcscf/service_routes.c index 1b2371b..4380ce8 100644 --- a/modules/ims_registrar_pcscf/service_routes.c +++ b/modules/ims_registrar_pcscf/service_routes.c @@ -112,6 +112,11 @@ int checkcontact(struct sip_msg* _m, pcontact_t * c) { str received_host = {0, 0}; char srcip[50]; + LM_DBG("Port %d (search %d), Proto %d (search %d), reg_state %s (search %s)\n", + c->received_port, _m->rcv.src_port, c->received_proto, _m->rcv.proto, + reg_state_to_string(c->reg_state), reg_state_to_string(PCONTACT_REGISTERED) + ); + if (c->security) { switch (c->security->type) { case SECURITY_IPSEC: @@ -164,7 +169,6 @@ pcontact_t * getContactP(struct sip_msg* _m, udomain_t* _d) { str received_host = {0, 0}; char srcip[50]; - if (_m->id != current_msg_id) { current_msg_id = _m->id; c = NULL; @@ -172,10 +176,17 @@ pcontact_t * getContactP(struct sip_msg* _m, udomain_t* _d) { if (is_registered_fallback2ip == 2) { received_host.len = ip_addr2sbuf(&_m->rcv.src_ip, srcip, sizeof(srcip)); received_host.s = srcip; - if (ul.get_pcontact_by_src(_d, &received_host, _m->rcv.src_port, _m->rcv.proto, &c) == 1) + + LM_DBG("Searching in usrloc for %.*s:%i (Proto %i)\n", + received_host.len, received_host.s, + _m->rcv.src_port, _m->rcv.proto); + + if (ul.get_pcontact_by_src(_d, &received_host, _m->rcv.src_port, _m->rcv.proto, &c) == 1) { LM_DBG("No entry in usrloc for %.*s:%i (Proto %i) found!\n", received_host.len, received_host.s, _m->rcv.src_port, _m->rcv.proto); - if (checkcontact(_m, c) != 0) { - c = NULL; + } else { + if (checkcontact(_m, c) != 0) { + c = NULL; + } } } @@ -185,10 +196,10 @@ pcontact_t * getContactP(struct sip_msg* _m, udomain_t* _d) { if (b && b->contacts) { for (ct = b->contacts; ct; ct = ct->next) { if (ul.get_pcontact(_d, &ct->uri, &c) == 0) { - if (checkcontact(_m, c) == 0) { - break; - } else { + if (checkcontact(_m, c) != 0) { c = NULL; + } else { + break; } } } @@ -201,10 +212,12 @@ pcontact_t * getContactP(struct sip_msg* _m, udomain_t* _d) { LM_INFO("Contact not found based on Contact-header, trying IP/Port/Proto\n"); received_host.len = ip_addr2sbuf(&_m->rcv.src_ip, srcip, sizeof(srcip)); received_host.s = srcip; - if (ul.get_pcontact_by_src(_d, &received_host, _m->rcv.src_port, _m->rcv.proto, &c) == 1) + if (ul.get_pcontact_by_src(_d, &received_host, _m->rcv.src_port, _m->rcv.proto, &c) == 1) { LM_DBG("No entry in usrloc for %.*s:%i (Proto %i) found!\n", received_host.len, received_host.s, _m->rcv.src_port, _m->rcv.proto); - if (checkcontact(_m, c) != 0) { - c = NULL; + } else { + if (checkcontact(_m, c) != 0) { + c = NULL; + } } } } @@ -308,7 +321,7 @@ int check_service_routes(struct sip_msg* _m, udomain_t* _d) { /* No more Route-Headers? Not following service-routes */ if (!r) { - LM_ERR("No more route headers in message.\n"); + LM_DBG("No more route headers in message.\n"); goto error; } @@ -330,7 +343,7 @@ int check_service_routes(struct sip_msg* _m, udomain_t* _d) { /* Check, if it was the last route-header in the message: */ if (r) { - LM_ERR("Too many route headers in message.\n"); + LM_DBG("Too many route headers in message.\n"); goto error; } } else { @@ -338,7 +351,7 @@ int check_service_routes(struct sip_msg* _m, udomain_t* _d) { if (c->num_service_routes > 0) goto error; } } else { - LM_ERR("No route header in Message.\n"); + LM_DBG("No route header in Message.\n"); /* No route-header? Check, if service-routes are indicated. If yes, request is not following service-routes */ if (c->num_service_routes > 0) goto error; @@ -352,12 +365,10 @@ error: return -1; } -static str route_start={": <",8}; +static str route_start={"Route: <",8}; static str route_sep={">, <",4}; static str route_end={">\r\n",3}; -extern str route_header; - /** * Force Service routes (upon request) */ @@ -408,7 +419,7 @@ int force_service_routes(struct sip_msg* _m, udomain_t* _d) { goto error; } /* Calculate the length: */ - new_route_header.len = route_header.len + route_start.len + + new_route_header.len = route_start.len + route_end.len + (c->num_service_routes-1) * route_sep.len; for(i=0; i< c->num_service_routes; i++) @@ -422,7 +433,6 @@ int force_service_routes(struct sip_msg* _m, udomain_t* _d) { /* Construct new header */ new_route_header.len = 0; - STR_APPEND(new_route_header, route_header); STR_APPEND(new_route_header, route_start); for(i=0; i < c->num_service_routes; i++) { if (i) STR_APPEND(new_route_header, route_sep); diff --git a/modules/ims_usrloc_pcscf/udomain.c b/modules/ims_usrloc_pcscf/udomain.c index 3e7aa63..23e1213 100644 --- a/modules/ims_usrloc_pcscf/udomain.c +++ b/modules/ims_usrloc_pcscf/udomain.c @@ -481,15 +481,15 @@ int get_pcontact(udomain_t* _d, str* _contact, struct pcontact** _c) { LM_DBG("Searching for [%.*s] and comparing to [%.*s]\n", _contact->len, _contact->s, c->aor.len, c->aor.s); /* hosts HAVE to match */ - if (lookup_check_received && ((needle_uri.host.len != c->received_host.len) || (memcmp(needle_uri.host.s, c->contact_host.s, needle_uri.host.len)!=0))) { + if (lookup_check_received && ((needle_uri.host.len != c->received_host.len) || (memcmp(needle_uri.host.s, c->received_host.s, needle_uri.host.len)!=0))) { //can't possibly match + LM_DBG("Lookup failed for [%.*s <=> %.*s]\n", needle_uri.host.len, needle_uri.host.s, c->received_host.len, c->received_host.s); c = c->next; continue; } /* one of the ports must match, either the initial registered port, the received port, or one if the security ports (server) */ - if ((needle_uri.port_no != c->contact_port) - && (needle_uri.port_no != c->received_proto)) { + if ((needle_uri.port_no != c->contact_port) && (needle_uri.port_no != c->received_port)) { //check security ports if (c->security) { switch (c->security->type) { @@ -536,6 +536,8 @@ int get_pcontact(udomain_t* _d, str* _contact, struct pcontact** _c) { } if (!port_match){ + LM_DBG("Port don't match: %d (contact) %d (received) != %d!\n", + c->contact_port, c->received_port, needle_uri.port_no); c = c->next; continue; }
10 years, 2 months
1
0
0
0
git:lazedo/kazoo: tsilo: initial commit
by Luis Azedo
Module: sip-router Branch: lazedo/kazoo Commit: 84be6b8e4ddeda5955e67678c8af1080a292b707 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=84be6b8…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: Wed Sep 10 13:23:10 2014 +0200 tsilo: initial commit --- modules/tsilo/Makefile | 18 ++ modules/tsilo/README | 162 ++++++++++++++ modules/tsilo/doc/Makefile | 4 + modules/tsilo/doc/tsilo.xml | 37 ++++ modules/tsilo/doc/tsilo_admin.xml | 206 ++++++++++++++++++ modules/tsilo/t_append.c | 88 ++++++++ modules/tsilo/t_append.h | 28 +++ modules/tsilo/t_store.c | 75 +++++++ modules/tsilo/t_store.h | 27 +++ modules/tsilo/ts_handlers.c | 99 +++++++++ modules/tsilo/ts_handlers.h | 41 ++++ modules/tsilo/ts_hash.c | 416 +++++++++++++++++++++++++++++++++++++ modules/tsilo/ts_hash.h | 179 ++++++++++++++++ modules/tsilo/tsilo.c | 226 ++++++++++++++++++++ modules/tsilo/tsilo.h | 34 +++ 15 files changed, 1640 insertions(+), 0 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=84b…
10 years, 2 months
1
0
0
0
git:master: tsilo: initial commit
by Federico Cabiddu
Module: sip-router Branch: master Commit: 84be6b8e4ddeda5955e67678c8af1080a292b707 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=84be6b8…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: Wed Sep 10 13:23:10 2014 +0200 tsilo: initial commit --- modules/tsilo/Makefile | 18 ++ modules/tsilo/README | 162 ++++++++++++++ modules/tsilo/doc/Makefile | 4 + modules/tsilo/doc/tsilo.xml | 37 ++++ modules/tsilo/doc/tsilo_admin.xml | 206 ++++++++++++++++++ modules/tsilo/t_append.c | 88 ++++++++ modules/tsilo/t_append.h | 28 +++ modules/tsilo/t_store.c | 75 +++++++ modules/tsilo/t_store.h | 27 +++ modules/tsilo/ts_handlers.c | 99 +++++++++ modules/tsilo/ts_handlers.h | 41 ++++ modules/tsilo/ts_hash.c | 416 +++++++++++++++++++++++++++++++++++++ modules/tsilo/ts_hash.h | 179 ++++++++++++++++ modules/tsilo/tsilo.c | 226 ++++++++++++++++++++ modules/tsilo/tsilo.h | 34 +++ 15 files changed, 1640 insertions(+), 0 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=84b…
10 years, 2 months
1
0
0
0
git:master: registrar: new api function lookup_to_dset
by Federico Cabiddu
Module: sip-router Branch: master Commit: ccaa53b1227e6ac516efc42db1315ea96fe4e95a URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ccaa53b…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: Tue Sep 9 07:32:41 2014 +0000 registrar: new api function lookup_to_dset --- modules/registrar/api.c | 16 ++++++++++++++++ modules/registrar/api.h | 2 ++ modules/registrar/lookup.c | 22 ++++++++++++++++++++-- modules/registrar/lookup.h | 16 ++++++++++++++++ modules/registrar/reg_mod.c | 17 +++++++++++++++++ 5 files changed, 71 insertions(+), 2 deletions(-) diff --git a/modules/registrar/api.c b/modules/registrar/api.c index a8c5b50..564b252 100644 --- a/modules/registrar/api.c +++ b/modules/registrar/api.c @@ -125,6 +125,21 @@ int regapi_set_q_override(struct sip_msg *msg, str *new_q) /** * */ +int regapi_lookup_to_dset(struct sip_msg *msg, char *table, str *uri) +{ + udomain_t* d; + + if(ul.get_udomain(table, &d)<0) + { + LM_ERR("usrloc domain [%s] not found\n", table); + return -1; + } + return lookup_to_dset(msg, d, uri); +} + +/** + * + */ int bind_registrar(registrar_api_t* api) { if (!api) { @@ -135,6 +150,7 @@ int bind_registrar(registrar_api_t* api) api->save_uri = regapi_save_uri; api->lookup = regapi_lookup; api->lookup_uri = regapi_lookup_uri; + api->lookup_to_dset = regapi_lookup_to_dset; api->registered = regapi_registered; api->set_q_override = regapi_set_q_override; diff --git a/modules/registrar/api.h b/modules/registrar/api.h index b3109de..11d8b15 100644 --- a/modules/registrar/api.h +++ b/modules/registrar/api.h @@ -42,6 +42,7 @@ int regapi_lookup(struct sip_msg *msg, char *table); typedef int (*regapi_lookup_uri_f)(struct sip_msg *msg, char *table, str *uri); int regapi_lookup_uri(struct sip_msg *msg, char *table, str *uri); +int regapi_lookup_to_dset(struct sip_msg *msg, char *table, str *uri); typedef int (*regapi_set_q_override_f)(struct sip_msg *msg, str *new_q); int regapi_set_q_override(struct sip_msg *msg, str *new_q); @@ -54,6 +55,7 @@ typedef struct registrar_api { regapi_save_uri_f save_uri; regapi_lookup_f lookup; regapi_lookup_uri_f lookup_uri; + regapi_lookup_uri_f lookup_to_dset; regapi_lookup_f registered; regapi_set_q_override_f set_q_override; } registrar_api_t; diff --git a/modules/registrar/lookup.c b/modules/registrar/lookup.c index 2b3ad96..794d968 100644 --- a/modules/registrar/lookup.c +++ b/modules/registrar/lookup.c @@ -82,12 +82,29 @@ int reg_cmp_instances(str *i1, str *i2) } /*! \brief + * Lookup a contact in usrloc and rewrite R-URI if found + */ +int lookup(struct sip_msg* _m, udomain_t* _d, str* _uri) { + return lookup_helper(_m, _d, _uri, 0); +} + +/*! \brief + * Lookup a contact in usrloc and add the records to the dset structure + */ +int lookup_to_dset(struct sip_msg* _m, udomain_t* _d, str* _uri) { + return lookup_helper(_m, _d, _uri, 1); +} + +/*! \brief * Lookup contact in the database and rewrite Request-URI + * or not according to _mode value: + * 0: rewrite + * 1: don't rewrite * \return: -1 : not found * -2 : found but method not allowed * -3 : error */ -int lookup(struct sip_msg* _m, udomain_t* _d, str* _uri) +int lookup_helper(struct sip_msg* _m, udomain_t* _d, str* _uri, int _mode) { urecord_t* r; str aor, uri; @@ -211,7 +228,8 @@ int lookup(struct sip_msg* _m, udomain_t* _d, str* _uri) } ret = 1; - if (ptr) { + /* don't rewrite r-uri if called by lookup_to_dset */ + if (_mode == 0 && ptr) { if (rewrite_uri(_m, &ptr->c) < 0) { LM_ERR("unable to rewrite Request-URI\n"); ret = -3; diff --git a/modules/registrar/lookup.h b/modules/registrar/lookup.h index e2703ad..1a88c94 100644 --- a/modules/registrar/lookup.h +++ b/modules/registrar/lookup.h @@ -37,11 +37,27 @@ /*! \brief + * Lookup contact in the database and rewrite Request-URI + * or not according to _mode value: + * 0: rewrite + * 1: don't rewrite + * \return: -1 : not found + * -2 : found but method not allowed + * -3 : error + */ +int lookup_helper(struct sip_msg* _m, udomain_t* _d, str* _uri, int _mode); + +/*! \brief * Lookup a contact in usrloc and rewrite R-URI if found */ int lookup(struct sip_msg* _m, udomain_t* _d, str* _uri); /*! \brief + * Lookup a contact in usrloc and add the records to the dset structure + */ +int lookup_to_dset(struct sip_msg* _m, udomain_t* _d, str* _uri); + +/*! \brief * Lookup r-uri and additional branches in usrloc */ int lookup_branches(sip_msg_t *msg, udomain_t *d); diff --git a/modules/registrar/reg_mod.c b/modules/registrar/reg_mod.c index ce0d823..f187fb3 100644 --- a/modules/registrar/reg_mod.c +++ b/modules/registrar/reg_mod.c @@ -91,6 +91,7 @@ static void mod_destroy(void); static int w_save2(struct sip_msg* _m, char* _d, char* _cflags); static int w_save3(struct sip_msg* _m, char* _d, char* _cflags, char* _uri); static int w_lookup(struct sip_msg* _m, char* _d, char* _p2); +static int w_lookup_to_dset(struct sip_msg* _m, char* _d, char* _p2); static int w_lookup_branches(struct sip_msg* _m, char* _d, char* _p2); static int w_registered(struct sip_msg* _m, char* _d, char* _uri); static int w_unregister(struct sip_msg* _m, char* _d, char* _uri); @@ -181,6 +182,8 @@ static cmd_export_t cmds[] = { REQUEST_ROUTE | FAILURE_ROUTE }, {"lookup", (cmd_function)w_lookup, 2, domain_uri_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE }, + {"lookup_to_dset", (cmd_function)w_lookup_to_dset, 1, domain_uri_fixup, 0, + REQUEST_ROUTE | FAILURE_ROUTE }, {"registered", (cmd_function)w_registered, 1, domain_uri_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE }, {"registered", (cmd_function)w_registered, 2, domain_uri_fixup, 0, @@ -475,6 +478,20 @@ static int w_lookup(struct sip_msg* _m, char* _d, char* _uri) } /*! \brief + * Wrapper to lookup_to_dset(location) + */ +static int w_lookup_to_dset(struct sip_msg* _m, char* _d, char* _uri) +{ + str uri = {0}; + if(_uri!=NULL && (fixup_get_svalue(_m, (gparam_p)_uri, &uri)!=0 || uri.len<=0)) + { + LM_ERR("invalid uri parameter\n"); + return -1; + } + + return lookup_to_dset(_m, (udomain_t*)_d, (uri.len>0)?&uri:NULL); +} +/*! \brief * Wrapper to lookup_branches(location) */ static int w_lookup_branches(sip_msg_t* _m, char* _d, char* _p2)
10 years, 2 months
1
0
0
0
git:master: tm: new api function t_append_branches
by Federico Cabiddu
Module: sip-router Branch: master Commit: 468a2c645f5fcb66376b81b06e69eb8f5377bb02 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=468a2c6…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: Tue Sep 9 14:14:46 2014 +0000 tm: new api function t_append_branches --- modules/tm/h_table.h | 2 + modules/tm/t_append_branches.c | 186 ++++++++++++++++++++++++++++++++++++++++ modules/tm/t_append_branches.h | 43 +++++++++ modules/tm/t_fwd.c | 14 ++- modules/tm/t_fwd.h | 10 ++ modules/tm/tm_load.c | 1 + modules/tm/tm_load.h | 2 + 7 files changed, 253 insertions(+), 5 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=468…
10 years, 2 months
1
0
0
0
git:master: Makefile.groups: group for kazoo module
by Daniel-Constantin Mierla
Module: sip-router Branch: master Commit: c716e1a5167a0fcd963d13e74b1811c0f049cd7a URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c716e1a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: Wed Sep 10 12:54:37 2014 +0200 Makefile.groups: group for kazoo module - depends on rabitmq, libxml2 and libjson --- Makefile.groups | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile.groups b/Makefile.groups index ba1ea9f..a8f57d0 100644 --- a/Makefile.groups +++ b/Makefile.groups @@ -163,6 +163,9 @@ mod_list_uuid=uuid # - modules depending on ev library mod_list_ev=evapi +# - modules depending on kazoo/rabitmq +mod_list_kazoo=kazoo + # - all modules mod_list_all=$(sort $(mod_list_basic) $(mod_list_extra) \ $(mod_list_db) $(mod_list_dbuid) \ @@ -186,7 +189,7 @@ mod_list_all=$(sort $(mod_list_basic) $(mod_list_extra) \ $(mod_list_java) $(mod_list_dnssec) \ $(mod_list_sctp) $(mod_list_autheph) \ $(mod_list_gzcompress) $(mod_list_uuid) \ - $(mod_list_ev)) + $(mod_list_ev) $(mod_list_kazoo)) @@ -353,6 +356,9 @@ module_group_kuuid=$(mod_list_uuid) # pkg libev modules module_group_kev=$(mod_list_ev) +# pkg kazoo module +module_group_kkazoo=$(mod_list_kazoo) + # list of static modules # static_modules:=
10 years, 2 months
1
0
0
0
git:master: Makefile.groups: added group for monogdb
by Daniel-Constantin Mierla
Module: sip-router Branch: master Commit: 603c5d20655bde63f6dc8af5ce2c0a16baee5ed3 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=603c5d2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: Wed Sep 10 12:58:29 2014 +0200 Makefile.groups: added group for monogdb - db_mongodb included in it, depends on mongodb-c-driver library --- Makefile.groups | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/Makefile.groups b/Makefile.groups index a8f57d0..acebbdb 100644 --- a/Makefile.groups +++ b/Makefile.groups @@ -166,6 +166,9 @@ mod_list_ev=evapi # - modules depending on kazoo/rabitmq mod_list_kazoo=kazoo +# - modules depending on mongodb +mod_list_mongodb=db_mongodb + # - all modules mod_list_all=$(sort $(mod_list_basic) $(mod_list_extra) \ $(mod_list_db) $(mod_list_dbuid) \ @@ -189,7 +192,8 @@ mod_list_all=$(sort $(mod_list_basic) $(mod_list_extra) \ $(mod_list_java) $(mod_list_dnssec) \ $(mod_list_sctp) $(mod_list_autheph) \ $(mod_list_gzcompress) $(mod_list_uuid) \ - $(mod_list_ev) $(mod_list_kazoo)) + $(mod_list_ev) $(mod_list_kazoo) \ + $(mod_list_mongodb)) @@ -359,6 +363,9 @@ module_group_kev=$(mod_list_ev) # pkg kazoo module module_group_kkazoo=$(mod_list_kazoo) +# pkg mongodb modules +module_group_kmongodb=$(mod_list_mongodb) + # list of static modules # static_modules:=
10 years, 2 months
1
0
0
0
git:master: kazoo initial commit
by Luis Azedo
Module: sip-router Branch: master Commit: e134574be9b63cecce308d7483f5a7e70f287e1c URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e134574…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: lazedo <luis.azedo(a)factorlusitano.com> Date: Wed Sep 10 11:04:15 2014 +0100 kazoo initial commit --- modules/kazoo/Makefile | 23 + modules/kazoo/README | 17 + modules/kazoo/const.c | 38 + modules/kazoo/const.h | 44 + modules/kazoo/defs.h | 112 +++ modules/kazoo/doc/Makefile | 4 + modules/kazoo/doc/kazoo.xml | 39 + modules/kazoo/doc/kazoo_admin.xml | 22 + modules/kazoo/kazoo.c | 395 +++++++++ modules/kazoo/kz_amqp.c | 1731 +++++++++++++++++++++++++++++++++++++ modules/kazoo/kz_amqp.h | 189 ++++ modules/kazoo/kz_fixup.c | 137 +++ modules/kazoo/kz_fixup.h | 25 + modules/kazoo/kz_json.c | 193 ++++ modules/kazoo/kz_json.h | 19 + modules/kazoo/kz_pua.c | 454 ++++++++++ modules/kazoo/kz_pua.h | 9 + modules/kazoo/kz_trans.c | 324 +++++++ modules/kazoo/kz_trans.h | 42 + 19 files changed, 3817 insertions(+), 0 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=e13…
10 years, 2 months
1
0
0
0
← Newer
1
...
19
20
21
22
23
24
25
...
38
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Results per page:
10
25
50
100
200