Menu

Creating 2 lines or 2 calls in the same line

Help
pezze
2008-02-27
2013-04-17
  • pezze

    pezze - 2008-02-27

    Hi. I've a problem. While trying to create 2 lines the library return "Failure".

    Here is the complete error:

    -----------------------
    SipXcli.SipxException: sipXcli returned error: Failure - Generic Failure
       in SipXcli.SipxLine.Provision(Int32 contactId)
       in SipXcli.SipxInstance.LineCreate(Int32 contactId)
       in SipXcli.SipxInstance.LineCreate()
       in testConsole.SIpClient1.Call() in D:\Lavoro\Sertea\Voip\Nuove librerie VOIP\TEstSiPXApi\testConsole\SIpClient1.cs:riga 50
       in testConsole.Program.Main(String[] args) in D:\Lavoro\Sertea\Voip\Nuove librerie VOIP\TEstSiPXApi\testConsole\Program.cs:riga 18
    All done press a key
    -----------------------

    and here is the code:

    -----------------------
    aSipxInstance = SipxInstance.Create(identity, 5060, 5060, 5061, 10000, 32, "0.0.0.0", false);
    aSipxInstance.Connect(true);

    int lineNumber = aSipxInstance.LineCreate();
    SipxLine line = aSipxInstance.Lines[lineNumber];
    line.AddCreditial("*********", "*******+", "sip.*******.it");

    int lineNumber2 = aSipxInstance.LineCreate(); // ERROR
    -----------------------

    Any suggestion?
    Thanks.

    Alessandro

     
    • Dad Pihto

      Dad Pihto - 2009-04-26

      Hi,

      This library supports only one line. It may be used to support more that one line but code is not completed to implement this future. You can modify it for your needs.

      Regards,
      Victor

       

Log in to post a comment.