I am having issue with the CID when I only get a number with no name. What I see is the name of the last caller with the correct number.
I modified the script that came with WAF and set the Ini file, but I am getting an error and need help.
This is the error message "Running script, script run or compile error in file: WAF-NetCallerID-CID-Processing.vbs1002:Syntax error in line 19 More info: Syntax error"
Line 19 is the Function "process_ncid_data(what_parameters)".
This is the script "
Sub main
'*********************************************************** *
'* Process the Caller ID data passed by the WAF-NetCallerID
'* script.
'*
'* Data is passed in 'what_parameters' in the following Format:
'* 5/23/2003 <tab character> David Kindred <tab character> 3015551212
'* (Date) (Name) (Number)
'*
'* This function splits the date, number and name components
'* of the CID data stream into their individual components
'* and then shows some samples of what can be done with it.
'*
'* By default, only the example (Exampe 3) performing custom
'* announcements from the external file is active. Feel free
'* to uncomment other examples to make them functional.
'*********************************************************** *
Function process_ncid_data(what_parameters)
Dim s_paramaters
Dim s_ncid_date
Dim s_ncid_name
Dim s_ncid_number
Dim s_phone_list_name
Dim s_phone_list_code
Dim current_time
Dim s_temp
On Error Resume Next
' Split incoming data into component parts of
' date, name and number.
s_paramaters = split(what_parameters,Chr(9))
s_ncid_date = s_paramaters(0)
s_ncid_name = s_paramaters(1)
s_ncid_number = s_paramaters(2)
'Added 3/11/06
If s_ncid_name = "Wireless Calle" Then
s_ncid_name = "None"
End If
'End add
end function
end Sub
I modified the script that came with WAF and set the Ini file, but I am getting an error and need help.
This is the error message "Running script, script run or compile error in file: WAF-NetCallerID-CID-Processing.vbs1002:Syntax error in line 19 More info: Syntax error"
Line 19 is the Function "process_ncid_data(what_parameters)".
This is the script "
Sub main
'*********************************************************** *
'* Process the Caller ID data passed by the WAF-NetCallerID
'* script.
'*
'* Data is passed in 'what_parameters' in the following Format:
'* 5/23/2003 <tab character> David Kindred <tab character> 3015551212
'* (Date) (Name) (Number)
'*
'* This function splits the date, number and name components
'* of the CID data stream into their individual components
'* and then shows some samples of what can be done with it.
'*
'* By default, only the example (Exampe 3) performing custom
'* announcements from the external file is active. Feel free
'* to uncomment other examples to make them functional.
'*********************************************************** *
Function process_ncid_data(what_parameters)
Dim s_paramaters
Dim s_ncid_date
Dim s_ncid_name
Dim s_ncid_number
Dim s_phone_list_name
Dim s_phone_list_code
Dim current_time
Dim s_temp
On Error Resume Next
' Split incoming data into component parts of
' date, name and number.
s_paramaters = split(what_parameters,Chr(9))
s_ncid_date = s_paramaters(0)
s_ncid_name = s_paramaters(1)
s_ncid_number = s_paramaters(2)
'Added 3/11/06
If s_ncid_name = "Wireless Calle" Then
s_ncid_name = "None"
End If
'End add
end function
end Sub
Comment