VOIP configuration for Asterisk13, PJSIP, chan_lantiq and Vodafone Germany

Hi Sebastian, hi Plonk,

Thank you for your excellent recipe. I succeeded in converting an 02 Box 6431 (Arcadyan VGV7510KW22) to a (mainly) OpenSource Alternative to a FritzBox (Router, DSL Modem with Vectoring, Analog telephony with asterisk13) in a single device. On LEDE 17.01.4 I installed asterisk from the official repositories with the relevant packages (+asterisk13-codec-g722) and added "chan-lantiq" from Plonk's repository. With your pjsip configuration outbound calls worked perfectly.

However, to enable successful inbound calls, I opened the respective TCP and UDP ports in LEDE's firewall:

root@LEDE:~# vi /etc/config/firewall

config rule                                  
        option target 'ACCEPT'                  
        option src 'wan'                        
        option dest_port '5060'              
        option name 'Allow VoIP Handling'       
        option dest_ip '192.168.1.1'            
        option proto 'tcp udp'               
                                                
config rule                                     
        option enabled '1'                   
        option target 'ACCEPT'                  
        option src 'wan'                        
        option proto 'udp'                   
        option name 'Allow VoIP Stream'         
        option dest_ip '192.168.1.1'            
        option dest_port '10000-20000'  

and additonally made my local vodafone sip server accessible from pjsip:

root@LEDE:~# vi /etc/asterisk/pjsip.conf

[acl]
type = acl
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1
permit = 178.15.xxx.xxx ;nslookup <area_code>.sip.arcor.de

[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
local_net = 127.0.0.1
local_net = 192.168.1.0/24
external_media_address = 178.15.xxx.xxx ; !!! Your <area_code>.sip.arcor.de IP
external_signaling_address = 178.15.xxx.xxx ; !!! Your <area_code>.sip.arcor.de IP

I just wanted to mention this extra to complete the successful usage of this nice router.

Best

So Di

1 Like