FastAGI in VB.Net

Jul 28, 2014 at 7:14 AM
I have converted the Script Mapping code to vb.net but, it does not work. It tells me that the script 'customivr' is not registered. Does anyone know why?

This is the code
Namespace AsterNET.Test
    Class Program
        Shared Sub Main(ByVal args() As String)
            Dim agi As AsteriskFastAGI = New AsteriskFastAGI

            Dim mapping As List(Of ScriptMapping) = New List(Of ScriptMapping)()
            mapping.Add(New ScriptMapping With {.ScriptClass = "AsterNET.Test.CustomIVR", .ScriptName = "customivr"})
            agi.MappingStrategy = New GeneralMappingStrategy(mapping)

            agi.Start()
        End Sub
    End Class
End Namespace
This is what I have under CustomIVR

Namespace AsterNET.Test
    Public Class CustomIVR
        Inherits AGIScript
        Public Overrides Sub Service(request As AGIRequest, channel As AGIChannel)
            Answer()
        End Sub
    End Class
End Namespace