PCBEST NETWORK Robust SIP ActiveX PreConfig Reference

Click to open the SIP phone with pre-configured phone number and HTML buttons working.
Click to open an invisible SIP phone with HTML buttons working.

Sample(Auto Answer):

download this sample.

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Webphone</title>

<SCRIPT LANGUAGE="JavaScript" FOR="window" EVENT="onLoad()">
<!--
GTSIPPhoneObj.SetConfigValue("gtsrv.sip.callcontrol.auto.answercall", "1");
-->
</SCRIPT>

</head>
<body bgcolor=#ffffff>

<OBJECT id=GTSIPPhoneObj style="WIDTH: 187px; HEIGHT: 300px"
CODEBASE="http://www.pcbest.net/webphone/GTSIPPhone.cab#version=1,0,7,4"
classid=clsid:77342465-7794-44A8-87FC-FB7487C49EE0 >
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="9551">
<PARAM NAME="_ExtentY" VALUE="9181">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>

</body>
</html>

The method SetConfigValue can be used to preset configuration value. 
Click to open ActiveX Reference Manual.
The tags can be:

1. "gtphone.show.main.window"
If you want to show the phone. "1" = show the phone. "0" = hide the phone

2. "gtphone.background.color"
If you hide your phone, what kind of background color you want the phone be.

3. "gtphone.show.digit.buttons"
If you want to show the digital buttons on the phone.

4. "gtphone.show.options.button"
If you want to show options button  on the phone.

5. "gtphone.show.callhistory.button"
If you want to show call log button  on the phone.

6. "gtphone.show.dial.button"
If you want to show dial button  on the phone.

7. "gtphone.show.hungup.button"
If you want to show hungup button  on the phone.

8. "gtphone.show.hold.button"
If you want to show hungup button  on the phone.

9. "gtphone.show.transfer.button"
If you want to show hungup button  on the phone.

10. "gtphone.show.mic.and.speaker"
If you want to show microphone and speaker buttons on the phone.

11. "gtphone.show.line.buttons"
If you want to show phone line buttons on the phone.

12. "gtphone.show.audiorecord.button"
If you want to show audio recording button  on the phone.

The following tags are about SIP account.

13. "gtsrv.sip.reg.client.num"
How many SIP accounts the phone will register. It is "1" usually.

14. "gtsrv.sip.reg1.displayname"
The display name of first account. Sample: "Bob Wall"

15. "gtsrv.sip.reg1.username"
The user name of first account. Sample: "12345678"

16. "gtsrv.sip.reg1.domain"
The domain of first account. Sample: "pcbest.net"

17. "gtsrv.sip.reg1.proxy"
The proxy of first account. It is same as domain usually. Sample: "pcbest.net"

18. "gtsrv.sip.reg1.authorization"
The authorization code of first account. It is same as username usually. Sample: "12345678"

19. "gtsrv.sip.reg1.password"
The password of first account.

The following tags are SIP parameters.

20. "gtsrv.sip.ip.port"
The local port number of SIP. It can be any value from 1024 to 65535. Statndard port is 5060. The default value for ActiveX phone is 7720. 

21. "gtsrv.sip.rtpstartrange" and "gtsrv.sip.rtpendrange"
The local RTP port range.

22. "gtsrv.sip.use.nat.addr"
Set it to "1" if the SIP proxy server is in local network.

23. "gtsrv.sip.stun.server"
The stun server to be used to discover global IP address.

24. "gtsrv.sip.prefered.codec"
The order and prefered codecs.
        18 - G.729a/b, not supported yet because of patent. If you want this codec in your phone, please contact us.
        102 - Speex.
        101 - iLBC 30ms
        100 - iLBC 20ms
        3 - GSM
        98 - G.726-32
        0 - G.711 mulaw
        8 - G.711 alaw

        Sample that only have mulaw and alaw: "0,8".

25. "gtsrv.sip.callcontrol.auto.answercall"
If it answers incoming calls automatically.

26. "gtsrv.sip.callcontrol.auto.transfercall"
If trasnfering is allowed.

27. "gtsrv.sip.dxsound.device"
The key word of your sound capture and playback device. You don't need to set it usually if the default windows playback and capture device is the sound hardware your want to use with ActiveX phone.

28. "gtphone.audio.record.enabled"
If enable audio-record. "1" = enable audio-record. "0" = no audio-record

29. "gtphone.audio.record.rootdir"
Root folder for audio-record.

30. "gtphone.moh.enabled"
If enable music on hold. "1" = enable. "0" = no music-on-hold

31. "gtphone.moh.folder"
Root folder for music-on-hold music files. Music files must be wav files with 8K Mono 16Bit PCM, or 8Bit Mulaw, or 8Bit Alaw format.

32. "gtsrv.sip.vad.enabled"
If enable VAD(Voice Activity Detection). "1" = enable. "0" = no

33. "gtsrv.sip.dtmf.method"
Method for DTMF detection and generation. "0" = In audio. "1" = SIP INFO. "2" = "RTP(RFC2833)". "3" = "Auto(RFC2833 or in audio)"

34. "gtphone.preset.phonenum"
Set your pre-configured number here.

35. "gtsrv.sip.denoise.enabled"
If enable Denoise. "1" = enable. "0" = no

36. "gtsrv.sip.agc.enabled"
If enable automatic gain control. "1" = enable. "0" = no

 
Latest News
PCBest Network LiveTalk Service released.(Sep 25, 2007)

SIP Software Development Kit released.(Aug 28, 2007)

SIP PBX released.(Aug 10, 2007)

SIP ActiveX Control released.(Aug 1, 2007)

pcbest.net is launched.(July 20, 2007)
© Copyright 2007 Pcbest.net All Rights Reserved.