olivluca / danube-voip Goto Github PK
View Code? Open in Web Editor NEWThis is a sip client using the 2 FXS ports available on routers based on the Infineon Danube and running openwrt.
This is a sip client using the 2 FXS ports available on routers based on the Infineon Danube and running openwrt.
Great work olivluca! :) I have it running on an Arcadyan ARV752DPW22 with Barrier Breaker.
There is one problem: the svd process shuts down after a while. Running svd again works, but than after some time, the process is gone again. After the process stopped, I get 'Collecting data...' at Voip/Status in Luci, and ps confirms the process doesn't run anymore.
Do you have a clue why this could be happening?
Fixed the one way only communication problem by editing svd.c around line 300: removed the comment tags to activate 'SOATAG_ADDRESS()' to use the manual 'local_ip' setting; otherwise the ip address for eth0 is used for outbound rtp/udp packets (easybox/wlan0 -> fritzbox:192.168.10.254). However this will break outgoing communication since eth0 is set to a separate (unused) address (in my case 192.168.3.1) from a different local network when using relayd to establish a software bridge between eth0 and the wlan interface (openwrt wireless bridge setup).
Before (log level 5):
soa_init_sdp_connection_with_session: selected IN IP4 192.168.3.1 (a local address)
...
o=- 2856140970662321986 2882795031805088096 IN IP4 192.168.3.1
After (with local_ip set 192.168.10.250):
soa_init_sdp_connection_with_session: using SOATAG_ADDRESS("192.168.10.250")
...
o=- 5558836881994820095 1424336700861334178 IN IP4 192.168.10.250
Now voip communication between the easybox (with a phone connected to a fxs port) and my fritzbox (acting as a local "ip phone" registrar for the easybox) works as expected. I can place internal calls (fritzbox with 3 DECT phones <-> easybox) and external calls to a voip number registered at 1&1 (as part of the fritzbox voip setup) are routed through the fritzbox to the easybox connected to local wireless network (192.168.10.0/24).
I'd like to thank Luca for sharing danube-voip with us.
Originally posted by @dosenflieger in #8 (comment)
It would be nice if the Caller-ID includes date and time.
Devices with CID display use to set the clock with this information.
Attached patch inserts current time to CID data.
Original issue reported on code.google.com by [email protected]
on 13 Apr 2014 at 9:33
Attachments:
svd logs recurring failure...
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: Event : nua_r_register
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: ---[ SIP ]---
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: 200 OK (CSeq 67751670 REGISTER)
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: From:
<sip:[email protected]>
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: To:
<sip:[email protected]>
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: ---[ === ]---
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: REGISTER: 200 OK
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: Contact:
<sip:[email protected]>;expires=600
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: outbound(0x47a568): FAILED to
validate <sip:[email protected]>
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: outbound(0x47a568): FAILED with
200 Alive
Sun Nov 16 23:08:07 2014 local5.info svd[1394]: Event : nua_i_outbound
Sun Nov 16 23:09:53 2014 local5.info svd[1394]: outbound(0x47a568): FAILED to
validate <sip:[email protected]>
Sun Nov 16 23:09:53 2014 local5.info svd[1394]: outbound(0x47a568): FAILED with
200 Alive
Sun Nov 16 23:09:53 2014 local5.info svd[1394]: Event : nua_i_outbound
Sun Nov 16 23:11:39 2014 local5.info svd[1394]: outbound(0x47a568): FAILED to
validate <sip:[email protected]>
Sun Nov 16 23:11:39 2014 local5.info svd[1394]: outbound(0x47a568): FAILED with
200 Alive
Sun Nov 16 23:11:39 2014 local5.info svd[1394]: Event : nua_i_outbound
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: Event : nua_r_register
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: ---[ SIP ]---
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: 401 Unauthorized (CSeq 67751671
REGISTER)
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: From:
<sip:[email protected]>
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: To:
<sip:[email protected]>
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: ---[ === ]---
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: REGISTER: 100 Request
Authorized by Cache
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: Event : nua_r_register
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: ---[ SIP ]---
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: 200 OK (CSeq 67751672 REGISTER)
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: From:
<sip:[email protected]>
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: To:
<sip:[email protected]>
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: ---[ === ]---
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: REGISTER: 200 OK
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: Contact:
<sip:[email protected]>;expires=600
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: outbound(0x47a568): FAILED to
validate <sip:[email protected]>
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: outbound(0x47a568): FAILED with
200 Alive
Sun Nov 16 23:12:51 2014 local5.info svd[1394]: Event : nua_i_outbound
Sun Nov 16 23:14:37 2014 local5.info svd[1394]: outbound(0x47a568): FAILED to
validate <sip:[email protected]>
Sun Nov 16 23:14:37 2014 local5.info svd[1394]: outbound(0x47a568): FAILED with
200 Alive
Sun Nov 16 23:14:37 2014 local5.info svd[1394]: Event : nua_i_outbound
"xx.xx.xx.xx" displays my current IP address on WAN
Device:
Model: Arcor 803
Firmware Version: OpenWrt Chaos Calmer r43224
Installed from "Downloads for danube-voip":
testing / sofia-sip_1.12.11-2_lantiq.ipk
barrier breaker / svd_1.8-2_lantiq.ipk
Original issue reported on code.google.com by [email protected]
on 16 Nov 2014 at 10:38
What steps will reproduce the problem?
1. Copy code on build-tree
2. Run: 'make menuconfig' and select involved packages
3. Run: 'make package/svd/compile V=99'
What is the expected output? What do you see instead?
libab, sofia-sip and svd packages were expected, but there is an error when
packaging sofia-sip:
Package sofia-sip is missing dependencies for the following libraries:
libpthread.so.0
make[2]: ***
[/home/pablo/Cacharreo/Openwrt/trunk/bin/lantiq/packages/sofia-sip_1.12.11-1_lan
tiq.ipk] Error 1
The error gets solved adding:
DEPENDS:=+libpthread
to sofia-sip package definition on Makefile.
Original issue reported on code.google.com by [email protected]
on 27 Jun 2012 at 11:17
Hi,
I configured the voip according to the indications:
http://openwrt.ebilan.co.uk/viewtopic.php?f=4&t=48
The voip works perfectly, but it stopped working on reboot. When I try to
reboot by LUCI interface, the router will not restart. To restart it I have to
disconnect and reconnect the power.
Leaving off the SVD service, reboot seems to work fine, but I still have to do
some testing.
Original issue reported on code.google.com by [email protected]
on 10 Nov 2014 at 11:46
Would it be possible to compile it for MIPS 34Kc or could someone provide precompiled binaries?
Thanks
G.722 is a wideband (7KHz, 16KHz sampling rate) codec which offers crispier
sound than A-Law.
This patch adds G.722 codec support, with top priority over rest of codecs.
Original issue reported on code.google.com by [email protected]
on 14 Apr 2014 at 5:37
Attachments:
Hello,
can I use an old rotary phone with pulse dialing? If not can someone implement it?
Thanks
Hi Luca,
first, a big thank you for this project! I've found it today after trying to get SIP/FXS to work on my Danube-based router with the OpenWRT supplied packages for days. Your project just works out of the box, perfect!
However I was wondering if it's possible to change the line tones from the American style to local ones? Here in Germany they are quite different, so maybe another option for that would be nice.
Best Regards,
luci-svd are not compiling in OpenVrt 18.06 and 19.07.
make[4]: Entering directory '/opt/build/EasyBox_803/openwrt/build_dir/hostpkg/luci-svd'
rm -f *.o parser.so
gcc -O2 --std=gnu99 -Wall -Werror -pedantic -fPIC -c -o template_parser.o template_parser.c
In file included from template_parser.c:19:0:
template_parser.h:33:10: fatal error: lua.h: No such file or directory
#include <lua.h>
^~~~~~~
compilation terminated.
Makefile:13: recipe for target 'template_parser.o' failed
make[4]: *** [template_parser.o] Error 1
How to fix it?
I successfully installed the precompiled binary package on a router running the latest stable OpenWrt release. Thank you very much for this project.
I'm now trying to build this package from source with a recent version of the OpenWrt master branch. I followed the instructions from #10 (comment) (not the git commands). But the build fails:
make[4]: Entering directory '/path/to/openwrt/build_dir/target-mips_24kc_musl/svd'
make all-recursive
make[5]: Entering directory '/path/to/openwrt/build_dir/target-mips_24kc_musl/svd'
Making all in src
make[6]: Entering directory '/path/to/openwrt/build_dir/target-mips_24kc_musl/svd/src'
mips-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -Wunused -I/path/to/openwrt/staging_dir/target-mips_24kc_musl/usr/include/sofia-sip-1.13 -I/path/to/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/usr/include -I/path/to/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include/fortify -I/path/to/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/path/to/openwrt/build_dir/target-mips_24kc_musl/svd=svd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/path/to/openwrt/staging_dir/target-mips_24kc_musl/usr/include/drv_tapi -I/path/to/openwrt/staging_dir/target-mips_24kc_musl/usr/include/libab -I/path/to/openwrt/staging_dir/target-mips_24kc_musl/usr/include/libconfig -DDONT_BIND_TO_DEVICE=1 -MT svd_cfg.o -MD -MP -MF .deps/svd_cfg.Tpo -c -o svd_cfg.o svd_cfg.c
In file included from svd.h:36,
from svd_cfg.c:9:
sofia.h:25:10: fatal error: sofia-sip/stun_tag.h: No such file or directory
#include <sofia-sip/stun_tag.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[6]: *** [Makefile:374: svd_cfg.o] Error 1
make[6]: Leaving directory '/path/to/openwrt/build_dir/target-mips_24kc_musl/svd/src'
make[5]: *** [Makefile:355: all-recursive] Error 1
make[5]: Leaving directory '/path/to/openwrt/build_dir/target-mips_24kc_musl/svd'
make[4]: *** [Makefile:296: all] Error 2
make[4]: Leaving directory '/path/to/openwrt/build_dir/target-mips_24kc_musl/svd'
make[3]: *** [Makefile:54: /path/to/openwrt/build_dir/target-mips_24kc_musl/svd/.built] Error 2
make[3]: Leaving directory '/path/to/danube-voip/svd'
time: package/feeds/custom/svd/compile#4.04#1.65#7.04
ERROR: package/feeds/custom/svd failed to build.
make[2]: *** [package/Makefile:116: package/feeds/custom/svd/compile] Error 1
make[2]: Leaving directory '/path/to/openwrt'
make[1]: *** [package/Makefile:110: /path/to/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/path/to/openwrt'
make: *** [/path/to/openwrt/include/toplevel.mk:230: world] Error 2
Some SIP applications don't get along with multiframe RTP packets.
It would be preferable to set up the number of frames per packet in config file.
Attached patch set up saner defaults.
Original issue reported on code.google.com by [email protected]
on 13 Apr 2014 at 9:53
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.