sip-router
22 months agoMerge pull request #1610 from armenb/armenb/loglevel_then_log_prefix
Daniel-Constantin Mierla [Tue, 14 Aug 2018 07:56:30 +0000 (09:56 +0200)]
Merge pull request #1610 from armenb/armenb/loglevel_then_log_prefix

core: print log_prefix after loglevel for more intuitive parsing

22 months agotmx: bug fix in cancel for current branches in helper, reported in GH #1620
Henning Westerholt [Mon, 13 Aug 2018 19:17:38 +0000 (21:17 +0200)]
tmx: bug fix in cancel for current branches in helper, reported in GH #1620

22 months agomodules: readme files regenerated - uac ... [skip ci]
Kamailio Dev [Mon, 13 Aug 2018 18:46:34 +0000 (20:46 +0200)]
modules: readme files regenerated - uac ... [skip ci]

22 months agouac: fix typo in module README
Henning Westerholt [Mon, 13 Aug 2018 18:42:50 +0000 (20:42 +0200)]
uac: fix typo in module README

23 months agocore: more detailed debug message if new uri is too long
Daniel-Constantin Mierla [Mon, 13 Aug 2018 12:04:55 +0000 (14:04 +0200)]
core: more detailed debug message if new uri is too long

23 months agoims_ipsec_pcscf: cast const param to get rid of compile warning
Daniel-Constantin Mierla [Mon, 13 Aug 2018 11:34:35 +0000 (13:34 +0200)]
ims_ipsec_pcscf: cast const param to get rid of compile warning

23 months agomodules: readme files regenerated - app_lua ... [skip ci]
Kamailio Dev [Mon, 13 Aug 2018 11:31:49 +0000 (13:31 +0200)]
modules: readme files regenerated - app_lua ... [skip ci]

23 months agoapp_lua: docs - more details about lua_run() params
Daniel-Constantin Mierla [Mon, 13 Aug 2018 11:22:59 +0000 (13:22 +0200)]
app_lua: docs - more details about lua_run() params

23 months agousrloc: set server_id for rpc ul add command
Daniel-Constantin Mierla [Mon, 13 Aug 2018 09:31:25 +0000 (11:31 +0200)]
usrloc: set server_id for rpc ul add command

23 months agomodules: readme files regenerated - ims_ipsec_pcscf ... [skip ci]
Kamailio Dev [Fri, 10 Aug 2018 14:47:03 +0000 (16:47 +0200)]
modules: readme files regenerated - ims_ipsec_pcscf ... [skip ci]

23 months agoims_ipsec_pcscf: Clean ipsec SAs and policies on module init/deinit
Tsvetomir Dimitrov [Thu, 9 Aug 2018 10:55:02 +0000 (13:55 +0300)]
ims_ipsec_pcscf: Clean ipsec SAs and policies on module init/deinit

23 months agopv: $msg(hdrs_len) - return the length of all headers
Daniel-Constantin Mierla [Tue, 7 Aug 2018 21:43:42 +0000 (23:43 +0200)]
pv: $msg(hdrs_len) - return the length of all headers

23 months agopv: $msg(fpart) - return first line and the headers
Daniel-Constantin Mierla [Mon, 6 Aug 2018 14:46:39 +0000 (16:46 +0200)]
pv: $msg(fpart) - return first line and the headers

23 months agoMerge pull request #1617 from tdimitrov/concatsms
ng-voice GmbH [Wed, 8 Aug 2018 06:41:51 +0000 (10:41 +0400)]
Merge pull request #1617 from tdimitrov/concatsms

smsops: Add support for concatenated SMS in decode_3gpp_sms()

23 months agosmsops: Add support for concatenated SMS in decode_3gpp_sms() 1617/head
Tsvetomir Dimitrov [Sun, 29 Jul 2018 18:43:34 +0000 (21:43 +0300)]
smsops: Add support for concatenated SMS in decode_3gpp_sms()

23 months agopkg/kamailio: Defined correct dependences for perl module (#1613)
Sergey Safarov [Tue, 7 Aug 2018 09:21:31 +0000 (09:21 +0000)]
pkg/kamailio: Defined correct dependences for perl module (#1613)

23 months agopv: $msg(hdrc) returns the number of headers in sip message
Daniel-Constantin Mierla [Sun, 5 Aug 2018 21:42:21 +0000 (23:42 +0200)]
pv: $msg(hdrc) returns the number of headers in sip message

23 months agoblst: small formatting bits
Daniel-Constantin Mierla [Sat, 4 Aug 2018 21:55:00 +0000 (23:55 +0200)]
blst: small formatting bits

23 months agopkg/kamailio/deb: add libmnl-dev for new ims_ipsec_pcscf module
Victor Seva [Fri, 3 Aug 2018 09:15:04 +0000 (11:15 +0200)]
pkg/kamailio/deb: add libmnl-dev for new ims_ipsec_pcscf module

23 months agodb_mysql: replaced my_bool with bool
Daniel-Constantin Mierla [Thu, 2 Aug 2018 22:28:49 +0000 (00:28 +0200)]
db_mysql: replaced my_bool with bool

- mysql 8.0.1 removed my_bool and suggests use of bool:
  * https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html
- use stdbool.h, it defines bool in C99, which should be old enough to
be everywhere, otherwise it may require some ifdefs to get it for older
but still alive systems
- reported by GH #1602

23 months agoMakefile.groups: add new modules ims_ipsec_pcscf to ims group
Henning Westerholt [Thu, 2 Aug 2018 21:04:18 +0000 (23:04 +0200)]
Makefile.groups: add new modules ims_ipsec_pcscf to ims group

23 months agoMerge pull request #1611 from kamailio/cchance/methods
Charles Chance [Thu, 2 Aug 2018 15:27:03 +0000 (16:27 +0100)]
Merge pull request #1611 from kamailio/cchance/methods

core: update first line parser to recognize new method IDs

23 months agocore: update first line parser to recognize new method IDs 1611/head
Charles Chance [Thu, 2 Aug 2018 15:02:32 +0000 (16:02 +0100)]
core: update first line parser to recognize new method IDs

- bring up to date with new methods added in 4fe95ab

23 months agoims_ipsec_pcscf: added README file
Daniel-Constantin Mierla [Thu, 2 Aug 2018 08:43:28 +0000 (10:43 +0200)]
ims_ipsec_pcscf: added README file

23 months agoMerge pull request #1605 from tdimitrov/ipsec
Daniel-Constantin Mierla [Thu, 2 Aug 2018 08:33:16 +0000 (10:33 +0200)]
Merge pull request #1605 from tdimitrov/ipsec

ims_ipsec_pcscf: sec-agree implementation for IMS

23 months agopresence: limit the number of subscriptions handled in timer_dbonly
lazedo [Wed, 1 Aug 2018 19:01:32 +0000 (19:01 +0000)]
presence: limit the number of subscriptions handled in timer_dbonly

due to the way update_db_subs_timer_dbonly handles the query to the
database (getting all records), if for some reason a burst of
terminating subscriptions occurs, most likely there will be no package
memory to process all expiring subscriptions.

this commit uses the same pattern as other routines in presence by using
db_fetch_query with fetch_rows parameter module.

because we create the subs in the loop and then call handle_expired_subs
to avoid locking issues the subscription should already be deleted from
the database when it returns from handle_expired_subs, there's no reason
to issue the last delete, and that was removed.

23 months agodialog: run run_load_callbacks() on child_init for rank PROC_INIT
Daniel-Constantin Mierla [Wed, 1 Aug 2018 22:16:26 +0000 (00:16 +0200)]
dialog: run run_load_callbacks() on child_init for rank PROC_INIT

- proper test for create_cbs
- based on PR #1606 and #1607 by kosza

23 months agocore: print log_prefix after loglevel for more intuitive parsing 1610/head
Armen Babikyan [Wed, 1 Aug 2018 20:57:16 +0000 (13:57 -0700)]
core: print log_prefix after loglevel for more intuitive parsing

23 months agotopos_redis: execute end dialog function only for BYE request
Daniel-Constantin Mierla [Wed, 1 Aug 2018 20:55:06 +0000 (22:55 +0200)]
topos_redis: execute end dialog function only for BYE request

- reported by GH #1608

23 months agomodules: readme files regenerated - carrierroute ... [skip ci]
Kamailio Dev [Tue, 31 Jul 2018 12:17:02 +0000 (14:17 +0200)]
modules: readme files regenerated - carrierroute ... [skip ci]

23 months agodmq: release resources instead of just doing continue to next job
Daniel-Constantin Mierla [Tue, 31 Jul 2018 11:59:44 +0000 (13:59 +0200)]
dmq: release resources instead of just doing continue to next job

- for cases when processing of the job is not fully completed

23 months agocarrierroute: docs - removed mi commands section
Daniel-Constantin Mierla [Mon, 30 Jul 2018 11:58:29 +0000 (13:58 +0200)]
carrierroute: docs - removed mi commands section

23 months agoims_ipsec_pcscf: sec-agree implementation for IMS 1605/head
Tsvetomir Dimitrov [Mon, 30 Jul 2018 07:59:16 +0000 (10:59 +0300)]
ims_ipsec_pcscf: sec-agree implementation for IMS

23 months agotopos: docs - ids for sections with event routes
Daniel-Constantin Mierla [Sun, 29 Jul 2018 21:32:45 +0000 (23:32 +0200)]
topos: docs - ids for sections with event routes

23 months agomodules: readme files regenerated - uac ... [skip ci]
Kamailio Dev [Fri, 27 Jul 2018 20:17:20 +0000 (22:17 +0200)]
modules: readme files regenerated - uac ... [skip ci]

23 months agomodules: readme files regenerated - pipelimit ... [skip ci]
Kamailio Dev [Wed, 25 Jul 2018 13:01:39 +0000 (15:01 +0200)]
modules: readme files regenerated - pipelimit ... [skip ci]

23 months agouac: docs - more details about execution of event_route[uac:reply]
Daniel-Constantin Mierla [Fri, 27 Jul 2018 20:00:47 +0000 (22:00 +0200)]
uac: docs - more details about execution of event_route[uac:reply]

23 months agoMerge pull request #1601 from kamailio/cchance/dlg_dmq
Charles Chance [Thu, 26 Jul 2018 12:51:21 +0000 (13:51 +0100)]
Merge pull request #1601 from kamailio/cchance/dlg_dmq

dialog: unset DMQ flag on replicated dialog removal

23 months agodialog: unset DMQ flag on replicated dialog removal 1601/head
Charles Chance [Thu, 26 Jul 2018 11:07:33 +0000 (12:07 +0100)]
dialog: unset DMQ flag on replicated dialog removal

- prevents looping back to other nodes
- reported by Patrick Murphy on sr-users list

23 months agodmq: allow startup even if initial nodelist is empty
Charles Chance [Wed, 25 Jul 2018 13:00:16 +0000 (14:00 +0100)]
dmq: allow startup even if initial nodelist is empty

23 months agodmq: include non-active nodes when requesting initial node list
Charles Chance [Wed, 25 Jul 2018 12:58:41 +0000 (13:58 +0100)]
dmq: include non-active nodes when requesting initial node list

23 months agodmq: improve bus stability and reduce unnecessary state transfer
Charles Chance [Wed, 25 Jul 2018 12:56:59 +0000 (13:56 +0100)]
dmq: improve bus stability and reduce unnecessary state transfer

- prevents split cluster in certain scenarios (e.g. GH issue #1349)
- add 'pending' state for new, locally added nodes, until confirmed
- continue to probe nodes marked as inactive/disabled so that they
  are eventually removed (but still exclude from normal replication)

23 months agopipelimit: documentation for rpc command pl.list
Daniel-Constantin Mierla [Wed, 25 Jul 2018 12:56:13 +0000 (14:56 +0200)]
pipelimit: documentation for rpc command pl.list

23 months agopipelimit: added rpc command pl.list
Daniel-Constantin Mierla [Wed, 25 Jul 2018 12:48:29 +0000 (14:48 +0200)]
pipelimit: added rpc command pl.list

- get the details of one or all pipes in json format
- old pl.stats and pl.get_pipes print details in a string

23 months agocore: removed unused MAX_LISTEN
Daniel-Constantin Mierla [Wed, 25 Jul 2018 12:10:00 +0000 (14:10 +0200)]
core: removed unused MAX_LISTEN

- it was printed in version output, not having any relevance anymore

23 months agotopos: keep original contact in 3xx responses sent out
Daniel-Constantin Mierla [Tue, 24 Jul 2018 14:10:16 +0000 (16:10 +0200)]
topos: keep original contact in 3xx responses sent out

- reported by Andrew Pogrebennyk

23 months agomodules: readme files regenerated - http_async_client ... [skip ci]
Kamailio Dev [Mon, 23 Jul 2018 21:16:36 +0000 (23:16 +0200)]
modules: readme files regenerated - http_async_client ... [skip ci]

23 months agohttp_async_client: fix doc example regarding http_req_id
Henning Westerholt [Mon, 23 Jul 2018 20:58:23 +0000 (22:58 +0200)]
http_async_client: fix doc example regarding http_req_id

23 months agomisc/examples: added minimal config sample for anycast
Daniel-Constantin Mierla [Mon, 23 Jul 2018 12:08:38 +0000 (14:08 +0200)]
misc/examples: added minimal config sample for anycast

23 months agouac: call event route for uac_req_send() for second response
Daniel-Constantin Mierla [Mon, 23 Jul 2018 11:58:12 +0000 (13:58 +0200)]
uac: call event route for uac_req_send() for second response

- done in case the request is resent after a 401/407
- GH #1598

23 months agouac: uac_send - small bits of formatting
Daniel-Constantin Mierla [Sun, 22 Jul 2018 05:27:32 +0000 (07:27 +0200)]
uac: uac_send - small bits of formatting

23 months agomodules: readme files regenerated - kex ... [skip ci]
Kamailio Dev [Fri, 20 Jul 2018 17:46:44 +0000 (19:46 +0200)]
modules: readme files regenerated - kex ... [skip ci]

23 months agokex: docs - note that is_myself() does not match with default ports
Daniel-Constantin Mierla [Fri, 20 Jul 2018 17:40:42 +0000 (19:40 +0200)]
kex: docs - note that is_myself() does not match with default ports

23 months agomisc/examples: added a minimal proxy sample config
Daniel-Constantin Mierla [Fri, 20 Jul 2018 16:06:34 +0000 (18:06 +0200)]
misc/examples: added a minimal proxy sample config

23 months agopv: using * for header name matches any header for $hdr(name)
Daniel-Constantin Mierla [Fri, 20 Jul 2018 15:59:36 +0000 (17:59 +0200)]
pv: using * for header name matches any header for $hdr(name)

- e.g., $hdr(*) is body of first header, $(hdr(*)[-1]) is body of last
header

23 months agodialog: safety check for dialog hash table inside dlg_get()
Daniel-Constantin Mierla [Thu, 19 Jul 2018 08:28:24 +0000 (10:28 +0200)]
dialog: safety check for dialog hash table inside dlg_get()

- GH #1594

23 months agoMerge pull request #1593 from adil-mafzool/master
Daniel-Constantin Mierla [Wed, 18 Jul 2018 10:03:59 +0000 (12:03 +0200)]
Merge pull request #1593 from adil-mafzool/master

kamailio always retries deleted RTPEngine Nodes which generates PDD

23 months agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Tue, 17 Jul 2018 06:31:33 +0000 (08:31 +0200)]
modules: readme files regenerated - textops ... [skip ci]

23 months agotextops: docs - fixed function name in example for replace_hdrs()
Daniel-Constantin Mierla [Tue, 17 Jul 2018 06:16:19 +0000 (08:16 +0200)]
textops: docs - fixed function name in example for replace_hdrs()

23 months agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Tue, 17 Jul 2018 06:16:57 +0000 (08:16 +0200)]
modules: readme files regenerated - textops ... [skip ci]

23 months agotextops: docs for replace_hdrs()
Daniel-Constantin Mierla [Tue, 17 Jul 2018 06:03:02 +0000 (08:03 +0200)]
textops: docs for replace_hdrs()

23 months agotextops: added replace_hdrs(re, sval)
Daniel-Constantin Mierla [Tue, 17 Jul 2018 05:50:50 +0000 (07:50 +0200)]
textops: added replace_hdrs(re, sval)

- replace matching regexp with sval inside sip headers part

23 months agomodules: readme files regenerated - kex ... [skip ci]
Kamailio Dev [Mon, 16 Jul 2018 12:17:04 +0000 (14:17 +0200)]
modules: readme files regenerated - kex ... [skip ci]

23 months agokex: docs - note about stats.fetch in the section for stats.get_statistics
Daniel-Constantin Mierla [Mon, 16 Jul 2018 12:03:43 +0000 (14:03 +0200)]
kex: docs - note about stats.fetch in the section for stats.get_statistics

23 months agotopoh: try to use sip uri parameters for decoding
Daniel-Constantin Mierla [Sat, 14 Jul 2018 07:20:29 +0000 (09:20 +0200)]
topoh: try to use sip uri parameters for decoding

- when UA adds user=phone, turns the uri type in tel mapped over sip
uri, default params pointing to tel params
- reported by GH #1541

23 months agotextops: set the buffer size for re transformation to 8196
Daniel-Constantin Mierla [Sat, 14 Jul 2018 06:14:07 +0000 (08:14 +0200)]
textops: set the buffer size for re transformation to 8196

- 2048 is rather small for handlin message body
- reported by #1592

2 years agortpenegine: fixed rtpp_node permanent deletion causing PDD 1593/head
Muhammad Zaka [Fri, 13 Jul 2018 15:56:56 +0000 (16:56 +0100)]
rtpenegine: fixed rtpp_node permanent deletion causing PDD

rtpp_node->rn_recheck_ticks was never set this means in-memory rtpengine were
never permanently deletion causing PDD for the calls requiring rtpengine

2 years agocore: mem - added shm_address_in(p)
Daniel-Constantin Mierla [Fri, 13 Jul 2018 12:04:43 +0000 (14:04 +0200)]
core: mem - added shm_address_in(p)

- return 1 if pointer p is inside shared memory zone, 0 otherwise

2 years agomodules: readme files regenerated - dialog ... [skip ci]
Kamailio Dev [Fri, 13 Jul 2018 11:01:44 +0000 (13:01 +0200)]
modules: readme files regenerated - dialog ... [skip ci]

2 years agodialog: removed invalid closing section tag from previous commit
Daniel-Constantin Mierla [Fri, 13 Jul 2018 10:47:53 +0000 (12:47 +0200)]
dialog: removed invalid closing section tag from previous commit

2 years agotextops: docs for replace_hdrs_str()
Daniel-Constantin Mierla [Fri, 13 Jul 2018 10:45:40 +0000 (12:45 +0200)]
textops: docs for replace_hdrs_str()

2 years agotextops: new function replace_hdrs_str()
Daniel-Constantin Mierla [Fri, 13 Jul 2018 10:42:09 +0000 (12:42 +0200)]
textops: new function replace_hdrs_str()

- replace the matched string in the headers zone

2 years agomodules: readme files regenerated - dialog ... [skip ci]
Kamailio Dev [Fri, 13 Jul 2018 10:31:43 +0000 (12:31 +0200)]
modules: readme files regenerated - dialog ... [skip ci]

2 years agodialog: docs for rpc command dlg.stats_active
Daniel-Constantin Mierla [Fri, 13 Jul 2018 10:25:05 +0000 (12:25 +0200)]
dialog: docs for rpc command dlg.stats_active

2 years agodialog: new rpc command dlg.stats_active
Daniel-Constantin Mierla [Fri, 13 Jul 2018 10:17:04 +0000 (12:17 +0200)]
dialog: new rpc command dlg.stats_active

- return stats about active dialogs by scanning internal hash table

2 years agomodules: readme files regenerated - dialog ... [skip ci]
Kamailio Dev [Fri, 13 Jul 2018 09:02:19 +0000 (11:02 +0200)]
modules: readme files regenerated - dialog ... [skip ci]

2 years agodialog: docs - notes about special values for optional parameters
Daniel-Constantin Mierla [Fri, 13 Jul 2018 08:46:48 +0000 (10:46 +0200)]
dialog: docs - notes about special values for optional parameters

2 years agodialog: handle . for optional body parameter for rpc dlg.bridge_dlg
Daniel-Constantin Mierla [Fri, 13 Jul 2018 08:39:29 +0000 (10:39 +0200)]
dialog: handle . for optional body parameter for rpc dlg.bridge_dlg

- consider as parameter not provided and use the default SDP string
- "" or "_" behaves as provided body is empty string and the request has
no body

2 years agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Thu, 12 Jul 2018 17:31:28 +0000 (19:31 +0200)]
modules: readme files regenerated - textops ... [skip ci]

2 years agotextops: docs for replace_body_str(...)
Daniel-Constantin Mierla [Thu, 12 Jul 2018 14:27:24 +0000 (16:27 +0200)]
textops: docs for replace_body_str(...)

2 years agotextops: new function replace_body_str(mkey, rval, rmode)
Daniel-Constantin Mierla [Thu, 12 Jul 2018 14:24:30 +0000 (16:24 +0200)]
textops: new function replace_body_str(mkey, rval, rmode)

- replace a string inside message body

2 years agopermissions: exported allow_address_group() to kemi framework
Daniel-Constantin Mierla [Thu, 12 Jul 2018 13:58:13 +0000 (15:58 +0200)]
permissions: exported allow_address_group() to kemi framework

2 years agoMerge pull request #1590 from surendratiwari3/app_lua_child_fix
Daniel-Constantin Mierla [Thu, 12 Jul 2018 13:47:09 +0000 (15:47 +0200)]
Merge pull request #1590 from surendratiwari3/app_lua_child_fix

app_lua : fixing bug for setting set SR lib version for lua 52

2 years agoapp_lua: fixing bug for setting global table lua 1590/head
surendratiwari3 [Wed, 11 Jul 2018 16:37:01 +0000 (16:37 +0000)]
app_lua: fixing bug for setting global table lua

2 years agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Wed, 11 Jul 2018 16:46:24 +0000 (18:46 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

2 years agonathelper: docs - note about the behavior of ping_nated_only=0 with sipping_flag set
Daniel-Constantin Mierla [Wed, 11 Jul 2018 16:39:19 +0000 (18:39 +0200)]
nathelper: docs - note about the behavior of ping_nated_only=0 with sipping_flag set

2 years agonathelper: send always SIP ping if ping_nated_only=0 and sipping_flag is set
Daniel-Constantin Mierla [Wed, 11 Jul 2018 16:27:08 +0000 (18:27 +0200)]
nathelper: send always SIP ping if ping_nated_only=0 and sipping_flag is set

- reported by GH #1587

2 years agorr: exported is_direction() to kemi framework
Daniel-Constantin Mierla [Wed, 11 Jul 2018 16:01:48 +0000 (18:01 +0200)]
rr: exported is_direction() to kemi framework

- rework of the patch from GH #1589

2 years agonathelper: safety check for sipping_from when building SIP keepalive request
Daniel-Constantin Mierla [Wed, 11 Jul 2018 13:21:54 +0000 (15:21 +0200)]
nathelper: safety check for sipping_from when building SIP keepalive request

- reported by GH #1587

2 years agopermissions: exported allow_source_address_group() to kemi framework
Daniel-Constantin Mierla [Wed, 11 Jul 2018 10:42:27 +0000 (12:42 +0200)]
permissions: exported allow_source_address_group() to kemi framework

2 years agomodules: readme files regenerated - permissions ... [skip ci]
Kamailio Dev [Wed, 11 Jul 2018 09:46:41 +0000 (11:46 +0200)]
modules: readme files regenerated - permissions ... [skip ci]

2 years agousrloc: fix RPC ul.add optional received param value when unset
Victor Seva [Wed, 11 Jul 2018 09:39:20 +0000 (11:39 +0200)]
usrloc: fix RPC ul.add optional received param value when unset

fix #1586

2 years agopermissions: docs - elaborated more the help for allow_trusted()
Daniel-Constantin Mierla [Wed, 11 Jul 2018 09:38:58 +0000 (11:38 +0200)]
permissions: docs - elaborated more the help for allow_trusted()

2 years agopermissions: set from uri buffer to empty if not a sip message
Daniel-Constantin Mierla [Wed, 11 Jul 2018 09:30:48 +0000 (11:30 +0200)]
permissions: set from uri buffer to empty if not a sip message

- adjustments after merging GH #1584
- avoid using garbage content from the declaration of the buffer
- renamed parameter name to properly suggest is From header URI, given
that R-URI is also part of matching

2 years agomodules: readme files regenerated - permissions ... [skip ci]
Kamailio Dev [Wed, 11 Jul 2018 08:47:04 +0000 (10:47 +0200)]
modules: readme files regenerated - permissions ... [skip ci]

2 years agoMerge pull request #1584 from rromrrom/allow_trusted_3
Daniel-Constantin Mierla [Wed, 11 Jul 2018 08:41:54 +0000 (10:41 +0200)]
Merge pull request #1584 from rromrrom/allow_trusted_3

permissions: Improve From pattern matching in kamailio permissions mo…

2 years agopermissions: Improve From pattern matching in kamailio permissions module 1584/head
Roman Romanchenko [Mon, 9 Jul 2018 10:58:00 +0000 (13:58 +0300)]
permissions: Improve From pattern matching in kamailio permissions module

- allow_trusted() now can take optional parameter of value to match.
- provided parameter will be used instead of From header in match_res() and match_hash_table()
- documentation extended with 3-arguments allow_trusted() function description

2 years agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Tue, 10 Jul 2018 08:17:10 +0000 (10:17 +0200)]
modules: readme files regenerated - textops ... [skip ci]

2 years agotextops: documentation for replace_str(...)
Daniel-Constantin Mierla [Tue, 10 Jul 2018 08:03:14 +0000 (10:03 +0200)]
textops: documentation for replace_str(...)

2 years agotextops: added replace_str(match, repl, mode)
Daniel-Constantin Mierla [Tue, 10 Jul 2018 07:56:02 +0000 (09:56 +0200)]
textops: added replace_str(match, repl, mode)

- replace a string with another in the message buffer after the first
line. The parameter mode coltrols if first ("f") match or all ("a")
should be replaced
- alternative to replace() that avoids regexp overhead when bare string
can be matched