sono riuscito a farlo andare!!!
ma ho dovuto riconfigurare il mac anche sull'interfaccia "wanptm0"
questa è la mia config attuale:
config device 'wanptm0'
option vid '100'
option name 'wanptm0'
option ipv6 '0'
option macaddr 'A4:91:B1:XX:XX:XX' <- MAC WAN FASTGATE
option ifname 'ptm0'
option type '8021q'
config interface 'wan'
option keepalive_adaptive '0'
option reqopts '1 3 6 15 33 42 43 51 121 249 212'
option peerdns '1'
option ipv6 '0'
option dns_metric '0'
option demand '0'
option vendorid 'Technicolor_DGA4131FWB/dslforum.org'
option macaddr 'A4:91:B1:XX:XX:XX' <- MAC WAN FASTGATE
list dns '8.8.8.8'
list dns '1.1.1.1'
option proto 'dhcp'
option ifname 'wanptm0'
option auto '1'spero possa essere utile allo sviluppo e ad altri utenti.
grazie mille
@Ansuel per il supporto
edit
ciao a tutti,
voglio condividere con voi anche la mia configurazione funzionante per il voip fastweb.
Ho recuperato le configurazioni del voip direttamente da fastgate. (file /etc/config/mmpbxrvsipnet)
- TAB General:
Name SIP network
Primary Registrar 10.247.0.42
Domain Name
Realm
Primary RegistrarPort 5060
Primary Proxy 10.247.0.42
Primary ProxyPort 5060
Local Port 5060
Expire Time 3600
- Tab Phone Lines:
SIP Profile sip_profile_0
UserName (nr telefono senza +39)
URI (nr telefono senza +39)
Password (password)
DisplayName displayname
SIP Network SIP NetworkA questo punto ero riuscito ad ottenere la registrazione dell'account voip e la possibilità di effettuare chiamate verso l'esterno.
Ma non mi era possibile ricevere telefonate.
Ho quindi pensato fossero necessarie alcune regole firewall (file /etc/config/firewall)
config rule 'Allow_restricted_sip_1'
option name 'Allow-restricted-sip-from-wan-again-1'
option src 'wan'
option src_ip '30.253.253.68/24'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_2'
option name 'Allow-restricted-sip-from-wan-again-2'
option src 'wan'
option src_ip '10.252.47.36/24'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_3'
option name 'Allow-restricted-sip-from-wan-again-3'
option src 'wan'
option src_ip '10.247.5.196/24'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_4'
option name 'Allow-restricted-sip-from-wan-again-4'
option src 'wan'
option src_ip '10.247.1.132/24'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_5'
option name 'Allow-restricted-sip-from-wan-again-5'
option src 'wan'
option src_ip '10.247.0.100/24'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_6'
option name 'Allow-restricted-sip-from-wan-again-6'
option src 'wan'
option src_ip '10.247.30.52/24'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_7'
option name 'Allow-restricted-sip-from-wan-again-7'
option src 'wan'
option src_ip '10.247.0.0/26'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_8'
option name 'Allow-restricted-sip-from-wan-again-8'
option src 'wan'
option src_ip '10.247.1.0/27'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_9'
option name 'Allow-restricted-sip-from-wan-again-9'
option src 'wan'
option src_ip '10.247.48.0/26'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_10'
option name 'Allow-restricted-sip-from-wan-again-10'
option src 'wan'
option src_ip '10.247.48.64/27'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_11'
option name 'Allow-restricted-sip-from-wan-again-11'
option src 'wan'
option src_ip '10.247.30.96/27'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_12'
option name 'Allow-restricted-sip-from-wan-again-12'
option src 'wan'
option src_ip '10.247.30.128/26'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_13'
option name 'Allow-restricted-sip-from-wan-again-13'
option src 'wan'
option src_ip '10.247.49.0/26'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_14'
option name 'Allow-restricted-sip-from-wan-again-14'
option src 'wan'
option src_ip '10.247.49.64/26'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_15'
option name 'Allow-restricted-sip-from-wan-again-15'
option src 'wan'
option src_ip '10.247.30.96/27'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_16'
option name 'Allow-restricted-sip-from-wan-again-16'
option src 'wan'
option src_ip '10.247.30.128/26'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_17'
option name 'Allow-restricted-sip-from-wan-again-17'
option src 'wan'
option src_ip '10.247.49.0/26'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
config rule 'Allow_restricted_sip_18'
option name 'Allow-restricted-sip-from-wan-again-18'
option src 'wan'
option src_ip '10.247.49.64/27'
option target 'ACCEPT'
option family 'ipv4'
option _key 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
In questo modo riesco ad effettuare e ricevere telefonate