!
! APOS(tm) configuration saved from vty
! 2015/06/27 11:11:39
!
version 8.51.010
!
hostname GS1002
!
username root password router administrator
username guest password guest user
!
!
script ntpdate default
server ip time.nist.gov
server ip time.windows.com
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address 192.168.11.231 255.255.0.0
speed auto
no qos-control
!
interface FastEthernet0/1
no ip address
shutdown
speed auto
no qos-control
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1 10
!
!
!
!
http server
!
logging command
logging event 4-warning
logging on
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
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 89289783894
dial-tone-generate
caller-id enable
!
!
! GSM
voice-port 0/1
dial-tone-generate
no caller-id enable
shutdown
!
!
!
!
! service port group configuration.
!
!
!
! Pots peer configuration.
!
dial-peer voice 1000 pots
destination-pattern T
port 0/0
call-waiting
user-name addpac
user-password sip-secret
!
!
!
! Voip peer configuration.
!
dial-peer voice 2000 voip
destination-pattern 89289783894
session target ip 192.168.11.221 5060
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
description asterisk
!
!
!
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.11.231
no ignore-msg-from-other-gk
!
!
! Codec classes configuration.
!
voice class codec 0
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729
!
!
!
! SIP UA configuration.
!
sip-ua
sip-username addpac
sip-password sip-secret
sip-server 192.168.11.221
!
!
! Tones
!
!
! SMS delivery configuration
!
sms-delivery
!
!
!
!
voip-interface ip FastEthernet0/0
!
line console
!
line vty
!
mobile dev-restart-by-unreg 300
mobile dev-restart-by-unknown-error
mobile cell-monitor 30
!
mobile 0/0
gsm sms-language utf8
!
mobile 0/1
gsm sms-language utf8
!
public class MainActivity extends Activity {
private WebView mWeb;
private class WebViewer extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading (WebView view, String url)
{
view.loadUrl(url);
return true;
}
}
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mWeb=(WebView)findViewById(R.id.web);
mWeb.getSettings().setJavaScriptEnabled(true);
mWeb.loadUrl("http://randevu05.ru/");
mWeb.setWebViewClient(new WebViewer());
ProgressDialog.show(MainActivity.this, "", "Загрузка. Пожалуйста подождите...", true);
}
@Override
public void onBackPressed() {
if (mWeb.canGoBack()) {
mWeb.goBack();}
else {
super.onBackPressed();
}
}
}