Skip to content

Commit

Permalink
Patch SP to provide correct configuration OOB.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jul 26, 2024
1 parent d668b3c commit be6578c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ jobs:
path: docker/b2bua
ref: wip

- name: Build SIP.js
run: sh -x build/SIP.js.sh
- name: Build SIP.js & SaraPhone
run: |
sh -x build/SIP.js.sh
sh -x build/saraphone.sh
- name: Set up QEMU
id: qemu
Expand Down
8 changes: 8 additions & 0 deletions build/saraphone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

set -x
set -e

SPDIR="docker/SIP.js/demo/saraphone"

git -C "${SPDIR}" apply "`pwd`/patches/saraphone.diff"
18 changes: 18 additions & 0 deletions patches/saraphone.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/saraphone.html b/saraphone.html
index 7c8de2a..6024c5a 100644
--- a/saraphone.html
+++ b/saraphone.html
@@ -93,8 +93,12 @@ var audio_silence = new Audio("wav/silence.wav");
<tr>
<td> <input style="background-color: black;" size=25 id="proxy" value="fusion03-pkg.opentelecom.it" /></td><td>&nbsp;WSS&nbsp;Proxy&nbsp;Name&nbsp;</td>
</tr>
+ <script>
+ document.getElementById('domain').value = window.location.hostname;
+ document.getElementById('proxy').value = window.location.hostname;
+ <script>
<tr>
- <td> <input style="background-color: black;" size=25 id="port" value="7443" /></td><td>&nbsp;WSS&nbsp;Proxy&nbsp;Port&nbsp;</td>
+ <td> <input style="background-color: black;" size=25 id="port" value="9876" /></td><td>&nbsp;WSS&nbsp;Proxy&nbsp;Port&nbsp;</td>
</tr>
<tr>
<td> <input style="background-color: black;" size=25 id="pres1" value="1011" /></td><td>&nbsp;BLF1&nbsp;</td>

0 comments on commit be6578c

Please sign in to comment.