193 Commits

Author SHA1 Message Date
Sam Machin
03dc4964b6 Fix/111 - require multiple reg failures (#131)
* only disable registraion after X consecutive failures

* move counter outside of regbot object

prevents it being constantly re-created
2026-03-19 15:15:38 -04:00
Sam Machin
f909c6e077 Regbot persistent call-id and other fixes (#130)
* use gw sid as call id and fix bug on updateing regbots

we must not mutate gw directly, as it is cached in the gateways array
 and adding properties would cause the JSON.stringify comparison to detect a
 false change on every checkStatus cycle, triggering unnecessary re-registrations.

* fix tests

add influx and also the registered now changes to remove previous reg on update

* better test scenario

still checks that we have 1 registered as expires now at 600s so it doesn't expire before the 65sec delay
v0.9.6-rc4 v0.9.6-rc5
2026-02-19 08:14:04 -05:00
rhondahollis
a21269cb19 remove send_options_bots array (#129)
fixes ticket #1983

Co-authored-by: rhonda hollis <rhonda@jambonz.org>
v0.9.6-rc3
2026-02-12 12:15:47 -05:00
Dave Horton
6f9c629379 add configurable backup for outbound reg failure (#128) v0.9.6-rc2 2026-02-09 10:32:57 -05:00
Dave Horton
9cacbdb994 update db-helpers (#127) v0.9.6-rc1 v0.9.5-10 v0.9.5-11 2026-01-19 08:23:13 -05:00
Dave Horton
e6a691d366 fix support for using writer/reader nodes properly (#126) 2026-01-15 08:48:06 -05:00
Ed Robbins
40cd14bff0 If no SRV record found when no port specifiec, look for A record. (#125)
* If no SRV record found when no port specifiec, look for A record.

* update log statement to info level
v0.9.5-9 v0.9.5-8
2025-12-11 23:55:39 -05:00
Sam Machin
93095fcdab add ephemeral gateways for ip regtrunk (#124)
* add ephemeral gateways for ip regtrunk

* linting
2025-12-10 10:43:44 -05:00
Dave Horton
c4278be34d when running under K8S set JAMBONES_NETWORK_CIDR as private ip address space v0.9.5-3 v0.9.5-4 v0.9.5-5 v0.9.5-6 v0.9.5-7 2025-11-24 11:25:43 -06:00
Hoan Luu Huu
9c6134d5dc fixed Array.prototype.push.apply will throw Maximum call stack size exceeded (#119)
* fixed Array.prototype.push.apply will throw Maximum call stack size exceeded

* fixed review comment
2025-11-11 07:44:18 -05:00
Sam Machin
56df3a6b34 Fix/regtrunks (#118)
* restore only use port if proxy is IPv4 address

broke in this commit 543f52d3dd

* use sip gateway host for DNS lookup of ephemeral gw and only if not  an IP address
v0.9.5-2
2025-11-06 18:19:24 -05:00
Anton Voylenko
1f7980d772 chore: bump node version (#117) 2025-11-04 18:02:19 -05:00
Hoan Luu Huu
55ace7820f Feat/cli remove fs (#116)
* support draining feature server manually

* support draining feature server manually

* support CLI to add or remove feature server

* wip

* wip

* wip

* add redis key for feature server and integration test

* wip
v0.9.5 v0.9.5-1
2025-10-28 19:26:24 -04:00
Hoan Luu Huu
658cb6ae7d remove empheral gateways if regbot is stopped (#115)
* remove empheral gateways if regbot is stopped

* wip

* wip

* update realtime db version
2025-10-28 08:02:43 -04:00
Dave Horton
e94ae431d8 add support for registration trunks which result in a set of ephemera… (#112)
* add support for registration trunks which result in a set of ephemeral sip gateways to be stored in redis

* wip

* refactor createEphemeralGateways into realtime dbhelpers

* minor

* update eslint
v0.9.5-rc19
2025-10-21 07:32:06 -04:00
Sam Machin
d08496840e bump dbhelpers for cache change (#114) v0.9.5-rc18 2025-10-15 11:39:10 -04:00
Sam Machin
52e1fc78b9 Store the private IP in redis when a client registers (#113)
* add srf.locals.privateSipAddress

* add private SBC address in client redis data

* lint
v0.9.5-rc17 v0.9.5-rc16 v0.9.5-rc15
2025-10-04 20:08:42 -04:00
Sam Machin
3f8fb53390 add expires and timestamp to database status (#110)
* add expires and timestamp to database status

* remove await
v0.9.5-rc14 v0.9.5-rc12 v0.9.5-rc11
2025-09-01 14:02:51 -04:00
Dave Horton
4cb58b304e bump version v0.9.5-rc8 v0.9.5-rc10 v0.9.5-rc3 v0.9.5-rc4 v0.9.5-rc5 v0.9.5-rc6 v0.9.5-rc7 v0.9.5-rc9 2025-07-15 11:47:18 -04:00
sathish kumar pasham
2adc18d034 Fix security vulnerabilities by upgrading to @babel/helpers version 7.26.10. (#109) v0.9.5-rc1 v0.9.5-rc2 v0.9.4-5 2025-06-27 10:15:51 -04:00
Hoan Luu Huu
3cfa0a94aa support trunk register with account sip realm if available (#107)
* support trunk register with account sip realm if available

* wip

* wip

* wip

* wip
v0.9.4-4
2025-06-23 08:34:39 -04:00
Sam Machin
1ef25e2c7f add user-agent to regbot (#106)
* add user-agent to regbot

* lint

* remove regbot from string
v0.9.4-3
2025-06-11 17:08:58 +02:00
Hoan Luu Huu
ae5b05e9e9 allow registration if checkAccountLimits cannot reach DB (#104) v0.9.4-2 v0.9.4-rc4 v0.9.4-rc3 v0.9.4-rc2 v0.9.4-rc5 v0.9.4-1 v0.9.4 2025-05-22 08:14:39 -04:00
Dave Horton
0bb72ed09f update version v0.9.4-rc1 2025-05-14 15:42:59 -04:00
Dave Horton
d023b7705e update db-helpers 2025-05-13 10:36:25 -04:00
Sam Machin
543f52d3dd use outbound proxy for registrations where set (#103)
* use outbound proxy for registrations where set

* remove requirement that port can only be set on IP address not host

* switch logging back to debug and remove unused function

* Update regbot.js
2025-05-12 07:58:55 -04:00
rammohan-y
5f107d19bc Updated drachtio-srf to 5.0.5 (#101)
https://github.com/drachtio/drachtio-server/issues/424
v0.9.3-16 v0.9.3-15
2025-04-22 11:06:22 -04:00
Hoan Luu Huu
4072e699c2 update drachtio-mw-registration-parser 0.1.2 (#100) v0.9.3-14 2025-04-18 07:49:52 -04:00
Hoan Luu Huu
78b73597c3 update digest-utils version (#99) 2025-04-17 20:05:53 -04:00
rammohan-y
0c0cafab68 Update db-helpers to 0.9.11 (#97)
https://github.com/jambonz/jambonz-feature-server/issues/1151
2025-04-14 08:22:04 -04:00
Dave Horton
e87aebf88c fix bug calling getUniqueGateways (#96)
* fix bug calling getUniqueGateways

* fix bug filtering gateways for regbot

* minor logging
v0.9.3-12
2025-04-12 09:57:50 -04:00
Hoan Luu Huu
fa6b300205 create regbog in batch with delay, filter inique gateway before creating regbot (#95)
* create regbog in batch with delay, filter inique gateway before creating regbot

* update review comment

* do not register outbound if no sip password was provided

---------

Co-authored-by: Dave Horton <daveh@beachdognet.com>
2025-04-11 13:21:57 -04:00
Sam Machin
446bb06142 move lookupSystemInformation up to parent function and add a timer (#93)
* move lookupSystemInformation up to parent function and add a timer

* lint
v0.9.3-11
2025-04-03 14:56:28 -04:00
Sam Machin
a22ab38aab Disable Options and Registration on certain failures (#90)
* disable options ping on defined errors

* correct sid

* disable reg on error

* fix path

* fixes from testing

* fixes from testing

* lint

* update dbhelpers dep

* remove whitespace in CONFIG strings

* lint

* this seems like a better way of convering and matching status codes
2025-04-02 08:22:52 -04:00
rammohan-y
2cabf29e6f Write options ping failure alert once (#88)
* updated realtimedb-helper to 0.8.13

* Do not write an alert for every failure if OPTIONS ping failure alrert is already written
https://github.com/jambonz/sbc-sip-sidecar/issues/87
v0.9.3-10
2025-03-27 07:15:47 -04:00
rammohan-y
ee2d1879eb updated realtimedb-helper to 0.8.13 (#86) v0.9.3-9 2025-03-10 09:58:58 -04:00
Hoan Luu Huu
e865286a2b initial delay regbot (#80)
* initial delay regbot

* fix review comment

* fix review comment
2025-03-10 08:26:43 -04:00
Dave Horton
0f63223c55 update drachtio-srf v0.9.3-8 v0.9.3-7 v0.9.3-6 2025-02-20 10:19:56 -05:00
Hoan Luu Huu
6b8b7661da fix register with invalid from and to header (#84) v0.9.3-5 v0.9.3-4 2025-02-18 07:07:37 -05:00
Hoan Luu Huu
e687d772d8 fix regbot issue with invalid sip_realm (#79)
* fix regbot issue with invalid sip_realm

* wip

* wip

* wip
v0.9.3-2 v0.9.3-1 v0.9.3-3
2025-02-04 23:57:33 -05:00
Dave Horton
294fc6e071 update deps v0.9.3 v0.9.3-rc7 2025-01-14 10:50:50 -05:00
Dave Horton
050bcdc9f7 update dractio-srf and mrf to main branch releases (#77) 2025-01-14 10:09:15 -05:00
Dave Horton
801c0a761d bump version v0.9.3-rc5 v0.9.2 v0.9.3-rc1 v0.9.3-rc2 v0.9.3-rc6 v0.9.2-1 v0.9.3-rc3 v0.9.3-rc4 v0.9.2-rc5 v0.9.2-rc4 v0.9.2-rc3 v0.9.2-2 v0.9.2-4 2024-10-13 10:15:18 -04:00
Markus Frindt
8d2bba127b Change timer for next REGISTER expires / 2 to avoid delayed registrations (#74)
Co-authored-by: Markus Frindt <m.frindt@cognigy.com>
2024-09-17 10:04:43 -04:00
Markus Frindt
b190d8a312 improvement of ipv4 regex and test cases (#73)
* improvement of ipv4 regex and test cases

* require utils test

* change example

---------

Co-authored-by: Markus Frindt <m.frindt@cognigy.com>
v0.9.2-rc1
2024-08-21 11:47:06 -04:00
Dave Horton
496d6c7a71 per RFC 3261 the request-uri of REGISTER must not have userinfo (#72) 2024-08-21 09:32:24 -04:00
Dave Horton
2362605beb gh actions 2024-08-04 08:48:25 -04:00
Dave Horton
bad9078446 fix transport param in Contact uri v0.9.1 v0.9.1-rc6 v0.9.1-rc5 2024-06-26 13:16:28 -04:00
Dave Horton
3c498b2624 use system_information.sip_domain_name in the Contact header, if available (#71) 2024-06-26 13:15:23 -04:00
Dave Horton
a6d15bc7aa after challenge register with creds should stay tls if it started that way (#70) v0.9.1-rc4 v0.9.1-rc3 2024-06-24 15:09:10 -04:00