Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
Public Function BuildCallDetails(ByVal phone As String) As Integer
Dim OriginateActionAdapter As New AsteriskManagerDALTableAdapters.DataTable1TableAdapter
Dim DialerIP as string = '<-- IP Address of dialer
Dim actCmdLineB As String = "Channel: IAX2/Asterisk1/310" '<-- Customer Service Exten on primary PBX
Dim actCmdLineC As String = "Context: default"
Dim actCmdLineD As String = "Exten: 1" & phone
Dim actCmdLineE As String = "Priority: 1"
Dim actCmdLineF As String = "Callerid: < > " '<-- Set this to your CID
Dim rs As String
Try
rs = OriginateActionAdapter.OriginateActionQuery(Now(), DialerIP, actCmdLineB, actCmdLineC, actCmdLineD, actCmdLineE, actCmdLineF)
rs = Nothing
Return 1
Catch ex As Exception
Return 0
End Try
End Function
INSERT INTO vicidial_manager
(entry_date, status, response, server_ip, `action`, cmd_line_b, cmd_line_c, cmd_line_d, cmd_line_e, cmd_line_f)
VALUES (?, 'NEW', 'N', ?, 'Originate', ?, ?, ?, ?, ?)
Users browsing this forum: Majestic-12 [Bot] and 51 guests