Commit Graph
54 Commits
Author SHA1 Message Date
Dave Horton 8663b03b41 initial changes for handling SIP INFO from webrtc clients 2022-08-11 11:08:39 +02:00
Dave Horton 4e961491a6 Feature/siprec server (#42)
* changes to handle siprec invites

* retain xml for sending

* send multipart body for siprec

* fixup sdp

* possibly trim xml string

* fix prev commit

* fix prev commit

* still tweaking sdp

* tweaks

* tweaking

* bit of refactoring

* refactor siprec client stuff into a library

* add direction in siprec metadata

* fix
2022-08-05 10:27:50 +01:00
Dave Horton 4e5f7ae908 bugfix: MS Teams warm transfer (invite w/replaces) 2022-08-01 14:49:28 +01:00
Dave Horton 2d350d4850 bugfix: regression - adding custom headers to refer caused preferred hostname on Refer-To to be lost 2022-07-27 11:31:29 +01:00
Dave Horton baad125924 when releasing media, use asymetric flag so that rtpengine does react to a spurious final packet from freeswitch by incorrectly sending rtp there 2022-07-26 12:26:17 +01:00
Dave Horton 73528f5ce2 bugfix #131: pass on custom headers in REFER 2022-07-18 14:58:12 +02:00
Dave Horton d2b5597571 initial support for siprec recording (#36)
* initial support for siprec recording

* handle pause/resume siprec recording
2022-06-23 16:23:09 -04:00
Dave Horton cc5c712a5b update deps 2022-06-11 11:40:44 -04:00
Dave Horton d8035c978e bugfix: error writing call counts 2022-04-01 15:09:46 -04:00
Dave Horton 91cd677ad8 write call_counts time series data tracking inbound call counts by account 2022-04-01 13:08:25 -04:00
Dave Horton 17b53438e2 track account level calls if env JAMBONES_TRACK_ACCOUNT_CALLS is set 2022-04-01 06:51:44 -04:00
Dave Horton f1e2f192b7 Bugfix/mem leak (#29)
* wait for 200 OK to BYE before closing connection to drachtio

* minor logging
2022-03-27 21:50:09 -04:00
Dave Horton 0af8bcc348 remove dlg event handlers on destroy 2022-03-27 20:23:30 -04:00
Dave Horton e067125974 de-link Dialogs so they can be GC'ed at call end 2022-03-27 19:43:39 -04:00
Dave Horton 2dadde64f4 write otel trace_id to call history 2022-03-23 09:29:22 -04:00
Dave Horton d5a1337811 bugfix: connection to drachtio was not closed on non-success response to invite (#27) 2022-03-18 14:04:52 -04:00
Dave Horton c08e35c261 Feature/incoming refer (#25)
* handle incoming REFER and send on to the FS

* clarity
2022-03-05 15:22:11 -05:00
Dave Horton 75d8381ebb Feature/rtpengine locate by dns (#22)
* initial changes to use udp and dns in K8s for rtpengine ng

* github actions

* logging

* remove port from service name before dns lookup

* query rtpengine dns immediately on startup

* bugfix prev checkin

* use dns.lookup instead of resolve4 (k8s does not appear to consult search patterns in resolve.conf with the latter)

* return all rtpengine endpoints in dns lookup

* bugfix: polling rtpengine endpoints

* fix prev commit

* catch error on rtpengine failure

* update deps

* require node 14 in gh action build

* specify node version in gh actions
2022-01-23 18:03:11 -05:00
Dave Horton 4a0aa79456 no need to reset rtpengine session when releasing media, and it was causing ICE to be reset which caused Teams to drop 2022-01-17 18:39:09 -05:00
Dave Horton a892a87eb5 K8s changes (#19)
* K8S changes

* k8s: test explicit dns lookup of service

* bugfix prev commit

* typo

* k8s: more dns

* k8s: more dns

* k8s: more dns fun

* k8s cleanup

* k8s: user service for rtpengine location

* k8s cleanup

* typo

* change env name for fs in k8s

* change k8s service name for feature server

* add support for outbound connection mode

* k8s change for outbound

* minor

* bugfix: drachtio connection was dropped after successful connect

* drop drachtio connection on call end

* Dockerfile

* k8s pre-stop hook

* actual hook committed

* make hjook executable

* dockerfile change

* time series fix

* bugfix: teams transfer using replaces
2022-01-06 12:37:49 -05:00
Dave Horton ea4f5ea0a8 bugfix: incoming call to accounts.sip_realm did not look for SP-level carriers 2021-12-20 09:54:21 -05:00
Dave Horton f16598e144 Feature/sip refer (#18)
* support for sip refer to transfer an incoming call

* when sending REFER for call transfer, format Refer-To with carrier trunk if applicable

* better handling of e164 on Refer-To header
2021-11-20 11:41:12 -05:00
Dave Horton 981788dc58 Feature/minimal media anchoring (#11)
* add support for sitting behind a sip proxy that adds X-Forwarded-For header

* feature: release media from freeswitch

* handle mute/unmute

* fix for relaying INFO

* support for relaying dtmf via SIP INFO to FS

* deps
2021-10-21 12:00:02 -04:00
Dave Horton 9b78a818b5 bugfix: reinvite handling mixed up the public-private direction in rtpengine offer 2021-08-09 15:44:23 -04:00
Dave Horton e6a90a32ad if we get re-invite with no SDP (looking at you, BT) just respond with current offer 2021-08-03 10:41:41 -04:00
Dave Horton fb21fd2333 brackets around From header 2021-07-28 16:16:47 -04:00
Dave Horton c324f0425b merge of features from hosted fork (#9)
major merge of features from the hosted branch that was created temporarily during the initial launch of jambonz.org
2021-06-17 16:49:37 -04:00
Dave Horton e3963bf057 bugfix: re-invite handling from UAC side now handled properly 2021-04-27 08:16:36 -04:00
Dave Horton f01d2140db dont pass Session-Expires header into feature server 2020-06-10 12:04:13 -04:00
Dave Horton 09a1386283 bugfix: rtpengine now generates internal IP on sdp for internal-facing streams 2020-06-07 14:51:37 -04:00
Dave Horton 958c34efbc add support for ms teams 2020-05-22 19:16:11 -04:00
Dave Horton d7df23bfc1 pass X-Retain-Call-Sid on REFER from feature server 2020-05-11 09:12:33 -04:00
Dave Horton 2914c9f356 reinvite changes 2020-04-26 09:58:14 -04:00
Dave Horton de64af278d simplify handling of reinvites from feature server 2020-04-24 16:20:20 -04:00
Dave Horton 1d1f3d5c10 attach X-Authenticated-User header for incoming calls from registered user 2020-04-19 10:27:58 -04:00
Dave Horton 1ad61dc7b2 bugfix: PAI header on incoming call was being put in From header of outbound call 2020-04-03 11:11:15 -04:00
Dave Horton 8db6fa9b81 update deps 2020-02-22 08:19:31 -05:00
Dave Horton 3a9dcb8ada logging 2020-02-19 14:29:36 -05:00
Dave Horton ef9ee30fdc more metrics 2020-02-18 20:19:20 -05:00
Dave Horton f5b8853581 add metrics 2020-02-18 16:35:09 -05:00
Dave Horton 8c95a5ceeb fixes for dynamic 2020-02-17 21:37:45 -05:00
Dave Horton 7a879a1b83 fix for OPTIONS ping 2020-02-17 21:20:29 -05:00
Dave Horton 520ebac5df dynamically recognize feature servers through their options pings 2020-02-17 18:01:03 -05:00
Dave Horton 22b645ed82 rtpengine function factored into package 2020-02-17 11:18:10 -05:00
Dave Horton fa60d8a3be add support for multiple rtpengines 2020-02-17 09:23:52 -05:00
Dave Horton a8561cba43 removed config in favor of env vars 2020-02-15 18:42:42 -05:00
Dave Horton 0e88982adc add X-Authenticated-User to inbound INVITEs from users 2020-02-15 14:46:35 -05:00
Dave Horton 40c3dcd759 pass application sid in custom header if provided during authentication 2020-02-14 13:23:14 -05:00
Dave Horton 7c5ef572c6 added support for customer PBX 2020-02-08 11:15:57 -05:00
Dave Horton 4a4fa485b8 add X=CID header to sip calls to allow homer to correlate legs 2020-01-25 13:26:27 -05:00