How do I configure Transport Layer

Feb 27, 2016 at 12:19 AM
Edited Feb 27, 2016 at 12:48 AM
// Configure the SIP transport layer.
        m_sipTransport = new SIPTransport(SIPDNSManager.ResolveSIPService, new SIPTransactionEngine());
SIPDNSManager.ResolveSIPService expects SIPURI and a boolean parameter and returns SIPDNSLookupResult whereas SIPTransport expects ResolveSIPEndPointDelagate

Error BC30311 Value of type 'SIPDNSLookupResult' cannot be converted to 'ResolveSIPEndPointDelegate'.
Coordinator
Feb 27, 2016 at 7:59 AM
That line of code is correct and compiles, where are you getting the error?

The SIPDNSManager.ResolveSIPService is a function delegate that allows the SIP transport layer you are creating to do DNS lookups. If you knew you were going to all your SIP addressing using only IP addresses you could set that parameter of the SIPTransport constructor to null.
Feb 27, 2016 at 5:02 PM
It is working fine in C#. I was trying to use the library in one of my vb.net application. There were other issues too in vb.net.
Coordinator
Feb 29, 2016 at 8:09 AM
Sorry I don't know how function delegates work in VB.Net. If you've got a suggestion for a new SIPTransport constructor that's more suitable for VB.Net I'm happy to consider it.