📄 mainform.frm
字号:
Width = 3015
_ExtentX = 5318
_ExtentY = 450
_Version = 327682
TickStyle = 3
TickFrequency = 10
End
Begin VB.Label LabelSpeakerVol
Caption = "Speaker:"
Height = 255
Left = 120
TabIndex = 32
Top = 240
Width = 855
End
Begin VB.Label LabelMicVol
Caption = "Microphone:"
Height = 255
Left = 120
TabIndex = 31
Top = 1200
Width = 1215
End
End
Begin VB.Frame Frame3
Caption = " Status Log "
Height = 3615
Left = 8400
TabIndex = 26
Top = 2040
Width = 3375
Begin VB.CommandButton BtnClearLog
Caption = "Clear"
Height = 465
Left = 2040
TabIndex = 45
Top = 3000
Width = 1215
End
Begin VB.ListBox ListStatusLog
Height = 2595
Left = 120
TabIndex = 44
Top = 240
Width = 3135
End
End
Begin VB.Frame Frame2
Caption = " Incoming Call(s) "
Height = 3855
Left = 2520
TabIndex = 25
Top = 3960
Width = 2535
Begin VB.CheckBox CheckPlayRingTone
Caption = "Play ringtone"
Height = 255
Left = 120
TabIndex = 72
Top = 2880
Value = 1 'Checked
Width = 1455
End
Begin VB.ListBox ListIncomingCallIds
Enabled = 0 'False
Height = 255
Left = 2040
TabIndex = 71
Top = 2880
Visible = 0 'False
Width = 270
End
Begin VB.ListBox ListIncomingCall
Height = 2595
Left = 120
TabIndex = 70
Top = 240
Width = 2295
End
Begin VB.CommandButton BtnReject
Caption = "Reject"
Height = 465
Left = 1320
TabIndex = 43
Top = 3240
Width = 1095
End
Begin VB.CommandButton BtnAccept
Caption = "Accept"
Height = 465
Left = 120
TabIndex = 42
Top = 3240
Width = 1095
End
End
Begin VB.CommandButton BtnHangUp
Caption = "HangUp"
Height = 465
Left = 1320
TabIndex = 24
Top = 7200
Width = 975
End
Begin VB.CommandButton BtnDial
Caption = "Dial"
Height = 465
Left = 240
TabIndex = 23
Top = 7200
Width = 975
End
Begin VB.CommandButton BtnDialPadNo
Caption = "#"
Height = 495
Left = 1680
TabIndex = 22
Top = 6600
Width = 615
End
Begin VB.CommandButton BtnDialPad0
Caption = "0"
Height = 495
Left = 960
TabIndex = 21
Top = 6600
Width = 615
End
Begin VB.CommandButton BtnDialPadStar
Caption = "*"
Height = 495
Left = 240
TabIndex = 20
Top = 6600
Width = 615
End
Begin VB.CommandButton BtnDialPad9
Caption = "9"
Height = 495
Left = 1680
TabIndex = 19
Top = 6000
Width = 615
End
Begin VB.CommandButton BtnDialPad8
Caption = "8"
Height = 495
Left = 960
TabIndex = 18
Top = 6000
Width = 615
End
Begin VB.CommandButton BtnDialPad7
Caption = "7"
Height = 495
Left = 240
TabIndex = 17
Top = 6000
Width = 615
End
Begin VB.CommandButton BtnDialPad6
Caption = "6"
Height = 495
Left = 1680
TabIndex = 16
Top = 5400
Width = 615
End
Begin VB.CommandButton BtnDialPad5
Caption = "5"
Height = 495
Left = 960
TabIndex = 15
Top = 5400
Width = 615
End
Begin VB.CommandButton BtnDialPad4
Caption = "4"
Height = 495
Left = 240
TabIndex = 14
Top = 5400
Width = 615
End
Begin VB.CommandButton BtnDialPad3
Caption = "3"
Height = 495
Left = 1680
TabIndex = 13
Top = 4800
Width = 615
End
Begin VB.CommandButton BtnDialPad2
Caption = "2"
Height = 495
Left = 960
TabIndex = 12
Top = 4800
Width = 615
End
Begin VB.CommandButton BtnDialPad1
Caption = "1"
Height = 495
Left = 240
TabIndex = 11
Top = 4800
Width = 615
End
Begin VB.TextBox EditPhoneNo
Height = 315
Left = 240
TabIndex = 10
Top = 4440
Width = 2055
End
Begin VB.Frame Frame1
Caption = " SIP Proxy Settings "
Height = 1935
Left = 120
TabIndex = 0
Top = 120
Width = 4935
Begin VB.CheckBox CheckRegisterToProxy
Caption = "Register to SIP Proxy"
Height = 210
Left = 120
TabIndex = 81
Top = 1560
Value = 1 'Checked
Width = 2295
End
Begin VB.TextBox EditDisplayName
Height = 315
Left = 120
TabIndex = 75
Top = 1080
Width = 1455
End
Begin VB.CommandButton BtnOnline
Caption = "Online"
Height = 405
Left = 3240
TabIndex = 9
Top = 960
Width = 1455
End
Begin VB.TextBox EditOutBoundProxy
Height = 315
Left = 1680
TabIndex = 8
Top = 1080
Width = 1455
End
Begin VB.TextBox EditSIPProxy
Height = 315
Left = 3240
TabIndex = 7
Top = 480
Width = 1455
End
Begin VB.TextBox EditLoginPwd
Height = 315
Left = 1680
TabIndex = 6
Top = 480
Width = 1455
End
Begin VB.TextBox EditLoginId
Height = 315
Left = 120
TabIndex = 5
Top = 480
Width = 1455
End
Begin VB.Label Label18
Caption = "Display-Name"
Height = 255
Left = 120
TabIndex = 76
Top = 840
Width = 1335
End
Begin VB.Label Label4
Caption = "Outbound-Proxy"
Height = 255
Left = 1680
TabIndex = 4
Top = 840
Width = 1455
End
Begin VB.Label Label3
Caption = "SIP Proxy"
Height = 255
Left = 3240
TabIndex = 3
Top = 240
Width = 1095
End
Begin VB.Label Label2
Caption = "Password"
Height = 255
Left = 1680
TabIndex = 2
Top = 240
Width = 975
End
Begin VB.Label Label1
Caption = "Login"
Height = 255
Left = 120
TabIndex = 1
Top = 240
Width = 855
End
End
Begin VAXSIPUSERAGENTOCXLib.VaxSIPUserAgentOCX VaxSIPUserAgentOCX
Height = 375
Left = 4440
TabIndex = 89
Top = 2160
Visible = 0 'False
Width = 615
_Version = 65536
_ExtentX = 1085
_ExtentY = 661
_StockProps = 0
End
End
Attribute VB_Name = "MainForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Const SND_FILENAME = &H20000
Private Const SND_LOOP = &H8
Private Const SND_ASYNC = &H1
Private Const SND_NODEFAULT = &H2
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" _
(lpszName As Any, ByVal hModule As Long, ByVal dwFlags As Long) As Boolean
Private Sub BtnClearLog_Click()
ListStatusLog.Clear
End Sub
Private Sub BtnDialPad0_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "0"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "0")
End Sub
Private Sub BtnDialPad1_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "1"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "1")
End Sub
Private Sub BtnDialPad2_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "2"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "2")
End Sub
Private Sub BtnDialPad3_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "3"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "3")
End Sub
Private Sub BtnDialPad4_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "4"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "4")
End Sub
Private Sub BtnDialPad5_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "5"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "5")
End Sub
Private Sub BtnDialPad6_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "6"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "6")
End Sub
Private Sub BtnDialPad7_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "7"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "7")
End Sub
Private Sub BtnDialPad8_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "8"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "8")
End Sub
Private Sub BtnDialPad9_Click()
EditPhoneNo.Text = EditPhoneNo.Text + "9"
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "9")
End Sub
Private Sub BtnDialPadStar_Click()
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "*")
End Sub
Private Sub BtnDialPadNo_Click()
Result = VaxSIPUserAgentOCX.DigitDTMF(ListLines.ListIndex, "#")
End Sub
Private Sub BtnHelpMore_Click()
HelpForm.Show vbModal
End Sub
Private Sub BtnPlayForward_Click()
LineNo = ListLines.ListIndex
Result = VaxSIPUserAgentOCX.PlayWaveSkipTo(LineNo, VaxSIPUserAgentOCX.PlayWavePosition(LineNo) + 2)
If Result = False Then
ErrorMessages
End If
End Sub
Private Sub BtnPlayPause_Click()
LineNo = ListLines.ListIndex
Result = VaxSIPUserAgentOCX.PlayWavePause(LineNo)
If Result = False Then
ErrorMessages
End If
End Sub
Private Sub BtnPlayRewind_Click()
LineNo = ListLines.ListIndex
Result = VaxSIPUserAgentOCX.PlayWaveSkipTo(LineNo, VaxSIPUserAgentOCX.PlayWavePosition(LineNo) - 2)
If Result = False Then
ErrorMessages
End If
End Sub
Private Sub BtnPlayStop_Click()
LineNo = ListLines.ListIndex
Result = VaxSIPUserAgentOCX.PlayWaveStop(LineNo)
If Result = False Then
ErrorMessages
End If
End Sub
Private Sub BtnSetPlayFile_Click()
LineNo = ListLines.ListIndex
Result = VaxSIPUserAgentOCX.PlayWaveOpen(LineNo, EditPlayFileName.Text)
If Result = False Then
ErrorMessages
End If
End Sub
Private Sub BtnStartPlay_Click()
LineNo = ListLines.ListIndex
Result = VaxSIPUserAgentOCX.PlayWaveStart(LineNo, CheckPlayListen.Value)
If Result = False Then
ErrorMessages
End If
End Sub
Private Sub BtnTransferCall_Click()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -