[sr-dev] git:master:01e8e339: kex: added pkg.info rpc command
Module: kamailio Branch: master Commit: 01e8e339149ce1554747929cb63b843866c53aba URL: https://github.com/kamailio/kamailio/commit/01e8e339149ce1554747929cb63b843866c53aba Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-09-16T07:22:09+02:00 kex: added pkg.info rpc command - get details about pkg manager --- Modified: src/modules/kex/pkg_stats.c --- Diff: https://github.com/kamailio/kamailio/commit/01e8e339149ce1554747929cb63b843866c53aba.diff Patch: https://github.com/kamailio/kamailio/commit/01e8e339149ce1554747929cb63b843866c53aba.patch --- diff --git a/src/modules/kex/pkg_stats.c b/src/modules/kex/pkg_stats.c index 9a2f4a2d37..ee6c637ace 100644 --- a/src/modules/kex/pkg_stats.c +++ b/src/modules/kex/pkg_stats.c @@ -259,11 +259,39 @@ static void rpc_pkg_stats(rpc_t* rpc, void* ctx) } } +/** + * + */ +static const char* rpc_pkg_info_doc[2] = { + "Private memory manager details", + 0 +}; + +/** + * + */ +static void rpc_pkg_info(rpc_t* rpc, void* ctx) +{ + void* th; + + if (rpc->add(ctx, "{", &th) < 0) { + rpc->fault(ctx, 500, "Internal error creating rpc"); + return; + } + if(rpc->struct_add(th, "su", + "name", (_pkg_root.mname)?_pkg_root.mname:"unknown", + "size", (unsigned int)pkg_mem_size) <0) { + rpc->fault(ctx, 500, "Internal error adding fields"); + return; + } +} + /** * */ rpc_export_t kex_pkg_rpc[] = { {"pkg.stats", rpc_pkg_stats, rpc_pkg_stats_doc, RET_ARRAY}, + {"pkg.info", rpc_pkg_info, rpc_pkg_info_doc,0}, {0, 0, 0, 0} }; ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:5898c5ac: kex: docs for rpc pkg.info command
Module: kamailio Branch: master Commit: 5898c5ac89d7a53aa9aa877cc1c642e4365e66dd URL: https://github.com/kamailio/kamailio/commit/5898c5ac89d7a53aa9aa877cc1c642e4365e66dd Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-09-16T07:31:27+02:00 kex: docs for rpc pkg.info command --- Modified: src/modules/kex/doc/kex_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/5898c5ac89d7a53aa9aa877cc1c642e4365e66dd.diff Patch: https://github.com/kamailio/kamailio/commit/5898c5ac89d7a53aa9aa877cc1c642e4365e66dd.patch --- diff --git a/src/modules/kex/doc/kex_admin.xml b/src/modules/kex/doc/kex_admin.xml index 334f989342..3e4ee9e1f4 100644 --- a/src/modules/kex/doc/kex_admin.xml +++ b/src/modules/kex/doc/kex_admin.xml @@ -732,6 +732,20 @@ resetdebug(); &kamcmd; pkg.stats rank 1 &kamcmd; pkg.stats index 10 + + + + pkg.info + + + Get pkg manager details. + + + Example: + + + &kamcli; rpc pkg.info + ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:458d96d9: modules: readme files regenerated - modules ... [skip ci]
Module: kamailio Branch: 5.3 Commit: 458d96d9cabf679efbcaaa81f69086c50940e495 URL: https://github.com/kamailio/kamailio/commit/458d96d9cabf679efbcaaa81f69086c50940e495 Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-09-15T18:01:38+02:00 modules: readme files regenerated - modules ... [skip ci] --- Modified: src/modules/registrar/README --- Diff: https://github.com/kamailio/kamailio/commit/458d96d9cabf679efbcaaa81f69086c50940e495.diff Patch: https://github.com/kamailio/kamailio/commit/458d96d9cabf679efbcaaa81f69086c50940e495.patch --- diff --git a/src/modules/registrar/README b/src/modules/registrar/README index e4516756e6..2a611ef564 100644 --- a/src/modules/registrar/README +++ b/src/modules/registrar/README @@ -245,21 +245,22 @@ Chapter 1. Admin Guide If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER - including one or more Path HFs: + including one or more Path header fields: * off - stores the value of the Path headers into usrloc without passing it back to the UAC in the reply. * lazy - stores the Path header and passes it back to the UAC if - Path-support is indicated by the âpathâ param in the Supported HF. + Path-support is indicated by the âpathâ param in the Supported + header field. * strict - rejects the registration with â420 Bad Extensionâ if there's a Path header but no support for it is indicated by the UAC. Otherwise it's stored and passed back to the UAC. A call to lookup(...) always uses the path header if found, and inserts - it as Route HF either in front of the first Route HF, or after the last - Via HF if no Route is present. It also sets the destination uri to the - first Path uri, thus overwriting the received-uri, because NAT has to - be handled at the outbound-proxy of the UAC (the first hop after - client's NAT). + it as Route header field either in front of the first Route header + field, or after the last Via header field if no Route is present. It + also sets the destination uri to the first Path uri, thus overwriting + the received-uri, because NAT has to be handled at the outbound-proxy + of the UAC (the first hop after client's NAT). The whole process is transparent to the user, so no config changes are required beside setting the registrar-parameters âuse_pathâ and @@ -329,10 +330,10 @@ Chapter 1. Admin Guide 3.1. default_expires (integer) - If the processed message contains neither Expires HFs nor expires - contact parameters, this value will be used for newly created usrloc - records. The parameter contains number of second to expire (for example - use 3600 for one hour). If it is set to a lower value than the + If the processed message contains neither Expires header fields nor + expires contact parameters, this value will be used for newly created + usrloc records. The parameter contains number of second to expire (for + example use 3600 for one hour). If it is set to a lower value than the âmin_expiresâ parameter then it will be ignored. This parameter can be modified via ser config framework. A random value in a specific interval can be selected by using the default_expires_range parameter @@ -892,8 +893,8 @@ request_route { 4.1. save(domain, [, flags [, uri]]) The function processes a REGISTER message. It can add, remove or modify - location records (in usrloc) depending on Contact and Expires HFs in - the REGISTER message. On success and when called from the + location records (in usrloc) depending on Contact and Expires header + fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, â200 OKâ will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short description in reason phrase. @@ -903,7 +904,7 @@ request_route { then this must be name of the table which stores the contacts. * flags (optional) - the value may be a bitwise OR of the following flags: - + 0x01 - save the contacts only in memory cache without no DB + + 0x01 - save the contacts only in memory cache with no DB operation; + 0x02 - do not generate a SIP reply to the current REGISTER request. When used in ONREPLY_ROUTE, this parameter is ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.2:07e51b97: modules: readme files regenerated - modules ... [skip ci]
Module: kamailio Branch: 5.2 Commit: 07e51b97c9a409eeb4d735f8d20a67b6f6c7e097 URL: https://github.com/kamailio/kamailio/commit/07e51b97c9a409eeb4d735f8d20a67b6f6c7e097 Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-09-15T18:01:51+02:00 modules: readme files regenerated - modules ... [skip ci] --- Modified: src/modules/registrar/README --- Diff: https://github.com/kamailio/kamailio/commit/07e51b97c9a409eeb4d735f8d20a67b6f6c7e097.diff Patch: https://github.com/kamailio/kamailio/commit/07e51b97c9a409eeb4d735f8d20a67b6f6c7e097.patch --- diff --git a/src/modules/registrar/README b/src/modules/registrar/README index c5f35ed381..ab3a38a260 100644 --- a/src/modules/registrar/README +++ b/src/modules/registrar/README @@ -239,21 +239,22 @@ Chapter 1. Admin Guide If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER - including one or more Path HFs: + including one or more Path header fields: * off - stores the value of the Path headers into usrloc without passing it back to the UAC in the reply. * lazy - stores the Path header and passes it back to the UAC if - Path-support is indicated by the âpathâ param in the Supported HF. + Path-support is indicated by the âpathâ param in the Supported + header field. * strict - rejects the registration with â420 Bad Extensionâ if there's a Path header but no support for it is indicated by the UAC. Otherwise it's stored and passed back to the UAC. A call to lookup(...) always uses the path header if found, and inserts - it as Route HF either in front of the first Route HF, or after the last - Via HF if no Route is present. It also sets the destination uri to the - first Path uri, thus overwriting the received-uri, because NAT has to - be handled at the outbound-proxy of the UAC (the first hop after - client's NAT). + it as Route header field either in front of the first Route header + field, or after the last Via header field if no Route is present. It + also sets the destination uri to the first Path uri, thus overwriting + the received-uri, because NAT has to be handled at the outbound-proxy + of the UAC (the first hop after client's NAT). The whole process is transparent to the user, so no config changes are required beside setting the registrar-parameters âuse_pathâ and @@ -322,10 +323,10 @@ Chapter 1. Admin Guide 3.1. default_expires (integer) - If the processed message contains neither Expires HFs nor expires - contact parameters, this value will be used for newly created usrloc - records. The parameter contains number of second to expire (for example - use 3600 for one hour). If it is set to a lower value than the + If the processed message contains neither Expires header fields nor + expires contact parameters, this value will be used for newly created + usrloc records. The parameter contains number of second to expire (for + example use 3600 for one hour). If it is set to a lower value than the âmin_expiresâ parameter then it will be ignored. This parameter can be modified via ser config framework. A random value in a specific interval can be selected by using the default_expires_range parameter @@ -853,8 +854,8 @@ end 4.1. save(domain, [, flags [, uri]]) The function processes a REGISTER message. It can add, remove or modify - location records (in usrloc) depending on Contact and Expires HFs in - the REGISTER message. On success and when called from the + location records (in usrloc) depending on Contact and Expires header + fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, â200 OKâ will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short description in reason phrase. @@ -864,7 +865,7 @@ end then this must be name of the table which stores the contacts. * flags (optional) - the value may be a bitwise OR of the following flags: - + 0x01 - save the contacts only in memory cache without no DB + + 0x01 - save the contacts only in memory cache with no DB operation; + 0x02 - do not generate a SIP reply to the current REGISTER request. When used in ONREPLY_ROUTE, this parameter is ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.4:5cbec397: modules: readme files regenerated - modules ... [skip ci]
Module: kamailio Branch: 5.4 Commit: 5cbec397d4dbe338400aefacddcce69dd0547f39 URL: https://github.com/kamailio/kamailio/commit/5cbec397d4dbe338400aefacddcce69dd0547f39 Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-09-15T18:01:22+02:00 modules: readme files regenerated - modules ... [skip ci] --- Modified: src/modules/registrar/README --- Diff: https://github.com/kamailio/kamailio/commit/5cbec397d4dbe338400aefacddcce69dd0547f39.diff Patch: https://github.com/kamailio/kamailio/commit/5cbec397d4dbe338400aefacddcce69dd0547f39.patch --- diff --git a/src/modules/registrar/README b/src/modules/registrar/README index fe9c969ce9..f4f5ccae0d 100644 --- a/src/modules/registrar/README +++ b/src/modules/registrar/README @@ -254,21 +254,22 @@ Chapter 1. Admin Guide If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER - including one or more Path HFs: + including one or more Path header fields: * off - stores the value of the Path headers into usrloc without passing it back to the UAC in the reply. * lazy - stores the Path header and passes it back to the UAC if - Path-support is indicated by the âpathâ param in the Supported HF. + Path-support is indicated by the âpathâ param in the Supported + header field. * strict - rejects the registration with â420 Bad Extensionâ if there's a Path header but no support for it is indicated by the UAC. Otherwise it's stored and passed back to the UAC. A call to lookup(...) always uses the path header if found, and inserts - it as Route HF either in front of the first Route HF, or after the last - Via HF if no Route is present. It also sets the destination uri to the - first Path uri, thus overwriting the received-uri, because NAT has to - be handled at the outbound-proxy of the UAC (the first hop after - client's NAT). + it as Route header field either in front of the first Route header + field, or after the last Via header field if no Route is present. It + also sets the destination uri to the first Path uri, thus overwriting + the received-uri, because NAT has to be handled at the outbound-proxy + of the UAC (the first hop after client's NAT). The whole process is transparent to the user, so no config changes are required beside setting the registrar-parameters âuse_pathâ and @@ -341,10 +342,10 @@ Chapter 1. Admin Guide 3.1. default_expires (integer) - If the processed message contains neither Expires HFs nor expires - contact parameters, this value will be used for newly created usrloc - records. The parameter contains number of second to expire (for example - use 3600 for one hour). If it is set to a lower value than the + If the processed message contains neither Expires header fields nor + expires contact parameters, this value will be used for newly created + usrloc records. The parameter contains number of second to expire (for + example use 3600 for one hour). If it is set to a lower value than the âmin_expiresâ parameter then it will be ignored. This parameter can be modified via ser config framework. A random value in a specific interval can be selected by using the default_expires_range parameter @@ -955,8 +956,8 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 4.1. save(domain, [, flags [, uri]]) The function processes a REGISTER message. It can add, remove or modify - location records (in usrloc) depending on Contact and Expires HFs in - the REGISTER message. On success and when called from the + location records (in usrloc) depending on Contact and Expires header + fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, â200 OKâ will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short description in reason phrase. @@ -966,7 +967,7 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 then this must be name of the table which stores the contacts. * flags (optional) - the value may be a bitwise OR of the following flags: - + 0x01 - save the contacts only in memory cache without no DB + + 0x01 - save the contacts only in memory cache with no DB operation; + 0x02 - do not generate a SIP reply to the current REGISTER request. When used in ONREPLY_ROUTE, this parameter is ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:9be13ba9: registrar: Update documentation
Module: kamailio Branch: 5.3 Commit: 9be13ba9668b1c0aea9122ef4d8bfbb22e29eabb URL: https://github.com/kamailio/kamailio/commit/9be13ba9668b1c0aea9122ef4d8bfbb22e29eabb Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T15:49:47Z registrar: Update documentation - Replace all occurences of "HF" with "header field" - Replace all occurences of "HFs" with "header fields" (cherry picked from commit d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce) --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/9be13ba9668b1c0aea9122ef4d8bfbb22e29eabb.diff Patch: https://github.com/kamailio/kamailio/commit/9be13ba9668b1c0aea9122ef4d8bfbb22e29eabb.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index 1a8942d3b4..8b83e3c00e 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -28,7 +28,7 @@ If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER including - one or more Path HFs: + one or more Path header fields: @@ -42,7 +42,7 @@ lazy - stores the Path header and passes it back to the UAC if Path-support is indicated - by the path param in the Supported HF. + by the path param in the Supported header field. @@ -56,8 +56,8 @@ A call to lookup(...) always uses the path header if - found, and inserts it as Route HF either in front of - the first Route HF, or after the last Via HF if no + found, and inserts it as Route header field either in front of + the first Route header field, or after the last Via header field if no Route is present. It also sets the destination uri to the first Path uri, thus overwriting the received-uri, because NAT has to be handled at the outbound-proxy of @@ -131,7 +131,7 @@ default_expires (integer) If the processed message contains neither Expires - HFs nor expires contact parameters, this value + header fields nor expires contact parameters, this value will be used for newly created usrloc records. The parameter contains number of second to expire (for example use 3600 for one hour). If it is set to a lower value than the min_expires parameter @@ -1048,7 +1048,7 @@ request_route { The function processes a REGISTER message. It can add, remove or - modify location records (in usrloc) depending on Contact and Expires HFs in the + modify location records (in usrloc) depending on Contact and Expires header fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, 200 OK will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.2:59cede26: registrar: Update documentation
Module: kamailio Branch: 5.2 Commit: 59cede2607d8847cfff96aa6221f00e0abbb625d URL: https://github.com/kamailio/kamailio/commit/59cede2607d8847cfff96aa6221f00e0abbb625d Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T15:50:15Z registrar: Update documentation - Replace all occurences of "HF" with "header field" - Replace all occurences of "HFs" with "header fields" (cherry picked from commit d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce) --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/59cede2607d8847cfff96aa6221f00e0abbb625d.diff Patch: https://github.com/kamailio/kamailio/commit/59cede2607d8847cfff96aa6221f00e0abbb625d.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index 3edede4096..54bfea5ff6 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -28,7 +28,7 @@ If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER including - one or more Path HFs: + one or more Path header fields: @@ -42,7 +42,7 @@ lazy - stores the Path header and passes it back to the UAC if Path-support is indicated - by the path param in the Supported HF. + by the path param in the Supported header field. @@ -56,8 +56,8 @@ A call to lookup(...) always uses the path header if - found, and inserts it as Route HF either in front of - the first Route HF, or after the last Via HF if no + found, and inserts it as Route header field either in front of + the first Route header field, or after the last Via header field if no Route is present. It also sets the destination uri to the first Path uri, thus overwriting the received-uri, because NAT has to be handled at the outbound-proxy of @@ -131,7 +131,7 @@ default_expires (integer) If the processed message contains neither Expires - HFs nor expires contact parameters, this value + header fields nor expires contact parameters, this value will be used for newly created usrloc records. The parameter contains number of second to expire (for example use 3600 for one hour). If it is set to a lower value than the min_expires parameter @@ -1003,7 +1003,7 @@ end The function processes a REGISTER message. It can add, remove or - modify location records (in usrloc) depending on Contact and Expires HFs in the + modify location records (in usrloc) depending on Contact and Expires header fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, 200 OK will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.2:8e62b35f: registrar: Update documentation
Module: kamailio Branch: 5.2 Commit: 8e62b35f97ba34268fbde35599ecd1645f0d7f76 URL: https://github.com/kamailio/kamailio/commit/8e62b35f97ba34268fbde35599ecd1645f0d7f76 Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T15:50:10Z registrar: Update documentation - Fix double negative "without no DB operation". Changed to "with no DB operation". (cherry picked from commit be0382fa11920de972ddbcdbe17c3ff583da87e4) --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/8e62b35f97ba34268fbde35599ecd1645f0d7f76.diff Patch: https://github.com/kamailio/kamailio/commit/8e62b35f97ba34268fbde35599ecd1645f0d7f76.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index 7c4226ad3c..3edede4096 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -1026,7 +1026,7 @@ end 0x01 - save the contacts only - in memory cache without no DB operation; + in memory cache with no DB operation; ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.4:acce084f: registrar: Update documentation
Module: kamailio Branch: 5.4 Commit: acce084fcab7249d52862bef0f4c32ed488222bc URL: https://github.com/kamailio/kamailio/commit/acce084fcab7249d52862bef0f4c32ed488222bc Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T15:49:00Z registrar: Update documentation - Replace all occurences of "HF" with "header field" - Replace all occurences of "HFs" with "header fields" (cherry picked from commit d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce) --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/acce084fcab7249d52862bef0f4c32ed488222bc.diff Patch: https://github.com/kamailio/kamailio/commit/acce084fcab7249d52862bef0f4c32ed488222bc.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index 75a4104fb2..461605f3d0 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -28,7 +28,7 @@ If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER including - one or more Path HFs: + one or more Path header fields: @@ -42,7 +42,7 @@ lazy - stores the Path header and passes it back to the UAC if Path-support is indicated - by the path param in the Supported HF. + by the path param in the Supported header field. @@ -56,8 +56,8 @@ A call to lookup(...) always uses the path header if - found, and inserts it as Route HF either in front of - the first Route HF, or after the last Via HF if no + found, and inserts it as Route header field either in front of + the first Route header field, or after the last Via header field if no Route is present. It also sets the destination uri to the first Path uri, thus overwriting the received-uri, because NAT has to be handled at the outbound-proxy of @@ -131,7 +131,7 @@ default_expires (integer) If the processed message contains neither Expires - HFs nor expires contact parameters, this value + header fields nor expires contact parameters, this value will be used for newly created usrloc records. The parameter contains number of second to expire (for example use 3600 for one hour). If it is set to a lower value than the min_expires parameter @@ -1151,7 +1151,7 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 The function processes a REGISTER message. It can add, remove or - modify location records (in usrloc) depending on Contact and Expires HFs in the + modify location records (in usrloc) depending on Contact and Expires header fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, 200 OK will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:edbafff7: registrar: Update documentation
Module: kamailio Branch: 5.3 Commit: edbafff7df51d2dc16f3a379cfb0d333c37439fd URL: https://github.com/kamailio/kamailio/commit/edbafff7df51d2dc16f3a379cfb0d333c37439fd Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T15:49:43Z registrar: Update documentation - Fix double negative "without no DB operation". Changed to "with no DB operation". (cherry picked from commit be0382fa11920de972ddbcdbe17c3ff583da87e4) --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/edbafff7df51d2dc16f3a379cfb0d333c37439fd.diff Patch: https://github.com/kamailio/kamailio/commit/edbafff7df51d2dc16f3a379cfb0d333c37439fd.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index 67e13e09e3..1a8942d3b4 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -1071,7 +1071,7 @@ request_route { 0x01 - save the contacts only - in memory cache without no DB operation; + in memory cache with no DB operation; ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.4:76864d45: registrar: Update documentation
Module: kamailio Branch: 5.4 Commit: 76864d4508ff4e1d9d909480663819db272aae48 URL: https://github.com/kamailio/kamailio/commit/76864d4508ff4e1d9d909480663819db272aae48 Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T15:48:45Z registrar: Update documentation - Fix double negative "without no DB operation". Changed to "with no DB operation". (cherry picked from commit be0382fa11920de972ddbcdbe17c3ff583da87e4) --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/76864d4508ff4e1d9d909480663819db272aae48.diff Patch: https://github.com/kamailio/kamailio/commit/76864d4508ff4e1d9d909480663819db272aae48.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index e3140965d4..75a4104fb2 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -1174,7 +1174,7 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 0x01 - save the contacts only - in memory cache without no DB operation; + in memory cache with no DB operation; ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Minor doc changes to Registrar module (#2477)
Closed #2477. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2477#event-3769048574___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:56a25750: modules: readme files regenerated - registrar ... [skip ci]
Module: kamailio Branch: master Commit: 56a257509aabb41e8eddc0f18347b0289aa0ab01 URL: https://github.com/kamailio/kamailio/commit/56a257509aabb41e8eddc0f18347b0289aa0ab01 Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-09-15T17:46:10+02:00 modules: readme files regenerated - registrar ... [skip ci] --- Modified: src/modules/registrar/README --- Diff: https://github.com/kamailio/kamailio/commit/56a257509aabb41e8eddc0f18347b0289aa0ab01.diff Patch: https://github.com/kamailio/kamailio/commit/56a257509aabb41e8eddc0f18347b0289aa0ab01.patch --- diff --git a/src/modules/registrar/README b/src/modules/registrar/README index fe9c969ce9..f4f5ccae0d 100644 --- a/src/modules/registrar/README +++ b/src/modules/registrar/README @@ -254,21 +254,22 @@ Chapter 1. Admin Guide If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER - including one or more Path HFs: + including one or more Path header fields: * off - stores the value of the Path headers into usrloc without passing it back to the UAC in the reply. * lazy - stores the Path header and passes it back to the UAC if - Path-support is indicated by the âpathâ param in the Supported HF. + Path-support is indicated by the âpathâ param in the Supported + header field. * strict - rejects the registration with â420 Bad Extensionâ if there's a Path header but no support for it is indicated by the UAC. Otherwise it's stored and passed back to the UAC. A call to lookup(...) always uses the path header if found, and inserts - it as Route HF either in front of the first Route HF, or after the last - Via HF if no Route is present. It also sets the destination uri to the - first Path uri, thus overwriting the received-uri, because NAT has to - be handled at the outbound-proxy of the UAC (the first hop after - client's NAT). + it as Route header field either in front of the first Route header + field, or after the last Via header field if no Route is present. It + also sets the destination uri to the first Path uri, thus overwriting + the received-uri, because NAT has to be handled at the outbound-proxy + of the UAC (the first hop after client's NAT). The whole process is transparent to the user, so no config changes are required beside setting the registrar-parameters âuse_pathâ and @@ -341,10 +342,10 @@ Chapter 1. Admin Guide 3.1. default_expires (integer) - If the processed message contains neither Expires HFs nor expires - contact parameters, this value will be used for newly created usrloc - records. The parameter contains number of second to expire (for example - use 3600 for one hour). If it is set to a lower value than the + If the processed message contains neither Expires header fields nor + expires contact parameters, this value will be used for newly created + usrloc records. The parameter contains number of second to expire (for + example use 3600 for one hour). If it is set to a lower value than the âmin_expiresâ parameter then it will be ignored. This parameter can be modified via ser config framework. A random value in a specific interval can be selected by using the default_expires_range parameter @@ -955,8 +956,8 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 4.1. save(domain, [, flags [, uri]]) The function processes a REGISTER message. It can add, remove or modify - location records (in usrloc) depending on Contact and Expires HFs in - the REGISTER message. On success and when called from the + location records (in usrloc) depending on Contact and Expires header + fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, â200 OKâ will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short description in reason phrase. @@ -966,7 +967,7 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 then this must be name of the table which stores the contacts. * flags (optional) - the value may be a bitwise OR of the following flags: - + 0x01 - save the contacts only in memory cache without no DB + + 0x01 - save the contacts only in memory cache with no DB operation; + 0x02 - do not generate a SIP reply to the current REGISTER request. When used in ONREPLY_ROUTE, this parameter is ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Minor doc changes to Registrar module (#2477)
Thanks, should be fixed with referenced pull-request. Re-open if there are still issues. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2477#issuecomment-692801742___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Issue 2477 - Minor doc changes to Registrar module (#2478)
Merged #2478 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/2478#event-3769044961___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Issue 2477 - Minor doc changes to Registrar module (#2478)
Thanks for the pull request, merged -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/2478#issuecomment-692801330___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:be0382fa: registrar: Update documentation
Module: kamailio Branch: master Commit: be0382fa11920de972ddbcdbe17c3ff583da87e4 URL: https://github.com/kamailio/kamailio/commit/be0382fa11920de972ddbcdbe17c3ff583da87e4 Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T17:41:40+02:00 registrar: Update documentation - Fix double negative "without no DB operation". Changed to "with no DB operation". --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/be0382fa11920de972ddbcdbe17c3ff583da87e4.diff Patch: https://github.com/kamailio/kamailio/commit/be0382fa11920de972ddbcdbe17c3ff583da87e4.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index bb2d8f8646..461605f3d0 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -1174,7 +1174,7 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 0x01 - save the contacts only - in memory cache without no DB operation; + in memory cache with no DB operation; ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:d936c627: registrar: Update documentation
Module: kamailio Branch: master Commit: d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce URL: https://github.com/kamailio/kamailio/commit/d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce Author: whosgonna Committer: Henning Westerholt Date: 2020-09-15T17:41:40+02:00 registrar: Update documentation - Replace all occurences of "HF" with "header field" - Replace all occurences of "HFs" with "header fields" --- Modified: src/modules/registrar/doc/registrar_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce.diff Patch: https://github.com/kamailio/kamailio/commit/d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce.patch --- diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index e3140965d4..bb2d8f8646 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -28,7 +28,7 @@ If path support is enabled in the registrar module, a call to save(...) stores the values of the Path Header(s) along with the contact into usrloc. There are three modes regarding the reply to a REGISTER including - one or more Path HFs: + one or more Path header fields: @@ -42,7 +42,7 @@ lazy - stores the Path header and passes it back to the UAC if Path-support is indicated - by the path param in the Supported HF. + by the path param in the Supported header field. @@ -56,8 +56,8 @@ A call to lookup(...) always uses the path header if - found, and inserts it as Route HF either in front of - the first Route HF, or after the last Via HF if no + found, and inserts it as Route header field either in front of + the first Route header field, or after the last Via header field if no Route is present. It also sets the destination uri to the first Path uri, thus overwriting the received-uri, because NAT has to be handled at the outbound-proxy of @@ -131,7 +131,7 @@ default_expires (integer) If the processed message contains neither Expires - HFs nor expires contact parameters, this value + header fields nor expires contact parameters, this value will be used for newly created usrloc records. The parameter contains number of second to expire (for example use 3600 for one hour). If it is set to a lower value than the min_expires parameter @@ -1151,7 +1151,7 @@ kamcmd cfg.set_now_int registrar use_expired_contacts 0 The function processes a REGISTER message. It can add, remove or - modify location records (in usrloc) depending on Contact and Expires HFs in the + modify location records (in usrloc) depending on Contact and Expires header fields in the REGISTER message. On success and when called from the REQUEST_ROUTE, 200 OK will be returned listing all contacts that are currently in the location database. On an error, an error message will be sent with a short ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] [kamailio/kamailio] Issue 2477 - Minor doc changes to Registrar module (#2478)
Pre-Submission Checklist - [X] Commit message has the format required by CONTRIBUTING guide - [X] Commits are split per component (core, individual modules, libs, utils, ...) - [X] Each component has a single commit (if not, squash them into one commit) - [X] No commits to README files for modules (changes must be done to docbook files in `doc/` subfolder, the README file is autogenerated) Type Of Change - [X] Small bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds new functionality) - [ ] Breaking change (fix or feature that would change existing functionality) Checklist: - [X] PR should be backported to stable branches - [X] Tested changes locally - [X] Related to issue #2477 Description Minor doc changes to Registrar module as described in Issue #2477 You can view, comment on, or merge this pull request online at: https://github.com/kamailio/kamailio/pull/2478 -- Commit Summary -- * registrar: Update documentation * registrar: Update documentation -- File Changes -- M src/modules/registrar/doc/registrar_admin.xml (14) -- Patch Links -- https://github.com/kamailio/kamailio/pull/2478.patch https://github.com/kamailio/kamailio/pull/2478.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/2478 ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] [kamailio/kamailio] Minor doc changes to Registrar module (#2477)
### Description Use of acronym "HF" (header field) in the REGISTRAR is a bit obscure. It probably makes sense to experienced Kamailio admins, but it's not immediately apparent to beginners. Since there is little gained by using the acronym in this document it would be more friendly to use "header field". Also, there is a double negative in section 4.1/flags/0x01: ``` 0x01 - save the contacts only in memory cache without no DB operation; ``` The literal meaning of this sentence is that it performs a DB operation. This should be changed to "with no" or possibly just "without", or even "with no". ### Expected behavior Use 'header field' instead of 'HF'. Use "with" instead of "without no". Actual observed behavior As indicated above Debugging Data Not applicable Log Messages Not applicable SIP Traffic Not applicable ### Possible Solutions Use 'header field' instead of 'HF'. Use "with" instead of "without no". ### Additional Information * **Kamailio Version** - output of `kamailio -v` Exists in most recent code branch. * **Operating System**: Not applicable. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2477___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] setting $xavp(reg=>max_contact) will limit new registration and updates, but not deleting existing ones (#2471)
Closed #2471. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2471#event-3768059350___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] setting $xavp(reg=>max_contact) will limit new registration and updates, but not deleting existing ones (#2471)
Thank you @miconda. Based on your description, I was misunderstanding the documentation about the usage for this $xavp. I understood the documentation to mean that `$xavp(reg=>max_contacts)=1` would function effectively like `save("location", "0x04")`. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2471#issuecomment-692679492___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Kamailio-5.4.: Crashs from keepalive module during adding destination (#2476)
Yeah, that will be patched. Just need some time to work on that @buzhaodi . -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2476#issuecomment-692639492___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Kamailio-5.4.: Crashs from keepalive module during adding destination (#2476)
Thanks everyone,So will there be a patch? or use define event_route[htable:mod-init] ? @NGSegovia -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2476#issuecomment-692542959___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Kamailio-5.4.: Crashs from keepalive module during adding destination (#2476)
I think you are right @miconda, and I think your solution is right too. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2476#issuecomment-692520769___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev