Addpac GS-1002
asterisk - 192.168.0.12
addpac gs1002 - 192.168.0.14
interface FastEthernet 0/0
ip address 192.168.0.14/16
ip route 0.0.0.0 0.0.0.0 192.168.0.1
show mobile sim-card
telnet 192.168.0.14
Login: root Password: GS1002> en GS1002# conf ter GS1002# show st GS1002# show startup-config
voice service voip protocol sip dtmf-relay rfc-2833 fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable no call-barring unconfigured-ip-address no voip-inbound-call-barring enable ! ! Voice port configuration. ! ! GSM voice-port 0/0 connection plar 000771 caller-id enable ! ! ! GSM voice-port 0/1 connection plar 000772 caller-id enable ! ! service port group configuration. ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern T port 0/0 ! dial-peer voice 2 pots destination-pattern T port 0/1 ! ! Voip peer configuration. ! dial-peer voice 0 voip destination-pattern T session target ip 192.168.0.12 session protocol sip voice-class codec 0 no vad dtmf-relay rtp-2833 ! gatekeeper ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.0.14 no ignore-msg-from-other-gk ! ! Codec classes configuration. ! voice class codec 0 codec preference 1 g711alaw codec preference 2 g711ulaw ! ! SIP UA configuration. ! sip-ua user-register sip-server 192.168.0.12 timeout treg 3600 timeout tregtry 600 remote-party-id register e164
Asterisk
sip.conf
[gsm1] type=friend host=192.168.0.14 qualify=yes trustrpid=yes context=from-gsm disallow=all allow=alaw allow=ulaw insecure=port,invite nat=no
extensions<_custom>.conf
[from-gsm] exten => _000771,1,Goto(from-trunk,000771,1) exten => _000772,1,Goto(from-trunk,000772,1)
FreePBX
<spoiler>
Login: root Password: GS1002> en GS1002# show st GS1002# show startup-config ! ! APOS(tm) configuration saved from vty ! 2011/11/08 18:32:41 ! version 8.51.002 ! hostname GS1002 ! username root password router administrator username guest password guest user ! ! interface Loopback0 ip address 127.0.0.1 255.0.0.0 ! interface FastEthernet0/0 ip address dhcp no ip dhcp unicast speed auto no qos-control ! interface FastEthernet0/1 ip address 192.168.10.1 255.255.255.0 speed auto no qos-control ! ! ip route 0.0.0.0 0.0.0.0 192.168.0.210 via dhcp ! ! ! ! http server ! ! dns name-server 192.168.0.253 via dhcp ! ! logging command logging event 4-warning logging on ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip protocol sip dtmf-relay out-of-band fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable no call-barring unconfigured-ip-address no voip-inbound-call-barring enable ! ! ! Voice port configuration. ! ! GSM voice-port 0/0 connection plar 103 no caller-id enable ! ! ! GSM voice-port 0/1 connection plar 103 no caller-id enable ! ! ! ! ! service port group configuration. ! ! ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern T port 0/0 user-name gsm1 user-password gsm1pass ! dial-peer voice 2 pots destination-pattern T port 0/1 user-name gsm2 user-password gsm2pass ! ! ! ! Voip peer configuration. ! dial-peer voice 0 voip destination-pattern T session target ip 192.168.0.231 session protocol sip voice-class codec 1 no vad dtmf-relay info ! ! ! ! ! ! gatekeeper ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.0.27 no ignore-msg-from-other-gk ! ! ! Codec classes configuration. ! voice class codec 1 codec preference 1 g711alaw ! ! ! ! SIP UA configuration. ! sip-ua user-register sip-server 192.168.0.231 ! ! ! Tones ! ! ! ! line console ! line vty ! gsm dev-restart-by-unreg 300 ! gsm 0/0 sms-language utf8 ! gsm 0/1 sms-language utf8 !
</spoiler>
factory reset
Телнетом после включения питания, в первые пять секунд, на порт 0/1 по адресу 192.168.10.1. Зайдете в boot режим.
Затем
conf t
erase a или erase s