Commit Graph
16 Commits
Author SHA1 Message Date
Sam Machin ba5ce5269d get correct expiry for multi-contact registraitons (#149) 2026-08-20 17:33:23 -04:00
Sam Machin 3122de4316 Feat/auth trunk register (#141)
* allow REGISTER for auth trunks

* use db-helpers

* bump db-helpers
2026-07-14 09:17:31 -04:00
Sam Machin a8455ad9f1 Bump drachtio-srf to 5.0.27 (#143)
Brings in fix for case-insensitve Digest header
2026-07-10 10:43:48 -04:00
Sam Machin 1841110ef7 add server discovery to options (#142) 2026-07-09 10:30:50 -04:00
Sam Machin c61eb8523d only accept fs/rtp options from internal CIDR (#140) 2026-07-07 08:20:09 -04:00
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
2026-02-19 08:14:04 -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
Sam Machin 56df3a6b34 Fix/regtrunks (#118)
* restore only use port if proxy is IPv4 address

broke in this commit https://github.com/jambonz/sbc-sip-sidecar/commit/543f52d3dd6fb2070fb06b94d5c3ca70e649fb1f

* use sip gateway host for DNS lookup of ephemeral gw and only if not  an IP address
2025-11-06 18:19:24 -05:00
Sam Machin d08496840e bump dbhelpers for cache change (#114) 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
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
2025-09-01 14:02:51 -04:00
Sam Machin 1ef25e2c7f add user-agent to regbot (#106)
* add user-agent to regbot

* lint

* remove regbot from string
2025-06-11 17:08:58 +02: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
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
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