summaryrefslogtreecommitdiff
path: root/package/tapi_sip/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-02-07 21:47:54 +0000
committerJohn Crispin <john@openwrt.org>2011-02-07 21:47:54 +0000
commite651a9341a241ef5cefc1711d42e3f638aaba9b8 (patch)
tree6597330d9c4e70a48df28970d1b882986961e618 /package/tapi_sip/files
parent0cd254bdee1f2575502e0c4c71e1ca2b7dfc5259 (diff)
downloadmtk-20170518-e651a9341a241ef5cefc1711d42e3f638aaba9b8.zip
mtk-20170518-e651a9341a241ef5cefc1711d42e3f638aaba9b8.tar.gz
mtk-20170518-e651a9341a241ef5cefc1711d42e3f638aaba9b8.tar.bz2
* drop libtapi and tapi_sip (moved to external git) * add build variants to pjsip * split tapi_dev audio driver out of patch into src/
SVN-Revision: 25412
Diffstat (limited to 'package/tapi_sip/files')
-rw-r--r--package/tapi_sip/files/telephony.conf28
-rwxr-xr-xpackage/tapi_sip/files/telephony.init50
2 files changed, 0 insertions, 78 deletions
diff --git a/package/tapi_sip/files/telephony.conf b/package/tapi_sip/files/telephony.conf
deleted file mode 100644
index 6d87f45..0000000
--- a/package/tapi_sip/files/telephony.conf
+++ /dev/null
@@ -1,28 +0,0 @@
-config 'config' 'config'
-# option 'fw_url' 'http://192.168.1.100/danube_firmware.bin'
- option 'fw_file' 'danube_firmware.bin'
- option 'netdev' 'pppoe-wan'
- option 'disable' '1'
-
-config 'account' 'account'
- option 'realm' 'example.com'
- option 'username' 'user'
- option 'password' 'password'
- option 'stun_host' 'stun.example.com'
- option 'stun_port' '3478'
- option 'sip_port' '5600'
-
-config 'contact'
- option 'name' 'sip example'
- option 'identifier' 'sip:user@example.net'
- option 'number' '123'
-
-config 'contact'
- option 'name' 'local1'
- option 'identifier' 'tel:1'
- option 'number' '01'
-
-config 'contact'
- option 'name' 'local2'
- option 'identifier' 'tel:2'
- option 'number' '02'
diff --git a/package/tapi_sip/files/telephony.init b/package/tapi_sip/files/telephony.init
deleted file mode 100755
index 082024c..0000000
--- a/package/tapi_sip/files/telephony.init
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=80
-
-download_fw()
-{
- config_load telephony
- config_get fw_url config fw_url
- config_get fw_file config fw_file
- wget $fw_url -O /tmp/$fw_file || {
- echo "failed to load $fw_url"
- exit 1
- }
-}
-
-load_module()
-{
- M=`lsmod | grep vmmc`
- [ -z "$M" ] || return
- config_load telephony
- config_get fw_file config fw_file
- [ -z "fw_file" ] && exit 1
- F=/lib/firmware/$fw_file
- [ ! -f "$F" -a ! -L "$F" ] && {
- echo "missing firmware file"
- exit 1
- }
- [ -L "$F" -a -f /tmp/$fw_file ] && F=/tmp/$fw_file
- insmod vmmc
- sleep 3
-}
-
-stop()
-{
- killall tapi-sip 2>/dev/null
-}
-
-start()
-{
- stop
- config_load telephony
- config_get fw_url config fw_url
- config_get fw_file config fw_file
- config_get netdev config netdev
- config_get disable config disable
- [ "$disable" != "1" ] && {
- [ ! -z "$fw_url" -a ! -f "/tmp/$fw_file" ] && download_fw
- load_module
- /usr/bin/tapi-sip $netdev &
- }
-}