Closed ismira closed 5 years ago
Hi,
You have to use SIP URI instend of just a destination number.
I using this:
// string desinationUri = "sip:0502147096@192.168.10.9:5160";
userAccount.CallManager.MakeCall(account, destinationUri);
In fact, CallManager.MakeCall(CallBuilder b)
method uses SipUriBuilder under the hood, so the resulting uri should have been equal. @ismira can you post a call stack of that exception, and your config?
` var cfg = Configure.Pjsip4Net().FromConfig(); userAccount = cfg.Build().Start(); userAccount.ImManager.NatDetected += OnNatDetected; userAccount.CallManager.CallRedirected += CallRedirected; userAccount.CallManager.IncomingDtmfDigit += IncomingDtmfDigit; userAccount.CallManager.IncomingCall += CallManager_IncomingCall; userAccount.CallManager.Ring += CallManager_Ring; userAccount.CallManager.CallStateChanged += CallManager_CallStateChanged; userAccount.AccountManager.AccountStateChanged += AccountManager_AccountStateChanged;
hi , userAccount.CallManager.MakeCall error invariant not true ?