Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Add command for g711 codes, but PCMA is prioritized (#30)
Browse files Browse the repository at this point in the history
* Add command for g711 codes, but PCMA is prioritized

* update gitignore

* update command

* Apply suggestions from PR review

---------

Co-authored-by: Markus Frindt <m.frindt@cognigy.com>
  • Loading branch information
Catharsis68 and Markus Frindt authored Jul 17, 2024
1 parent 7165076 commit c8227e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store

.vscode
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ while :; do
shift
;;

--g711-only-alaw-preferred)
sed -i -e "s/global_codec_prefs=.*\"/global_codec_prefs=PCMA,PCMU\"/g" /usr/local/freeswitch/conf/vars.xml
sed -i -e "s/outbound_codec_prefs=.*\"/outbound_codec_prefs=PCMA,PCMU\"/g" /usr/local/freeswitch/conf/vars.xml
shift
;;

-s|--sip-port)
if [ -n "$2" ]; then
sed -i -e "s/sip_port=[[:digit:]]\+/sip_port=$2/g" /usr/local/freeswitch/conf/vars_diff.xml
Expand Down

0 comments on commit c8227e4

Please sign in to comment.