ladendirekt / pjsip4net

A wrapper library exposing the pjsip library to the .NET world in a OO-friendly way.
71 stars 42 forks source link

Cant Make Call From PjSip4Net Console App, Error: Value was to large or too small for an Int 32 #93

Closed appgurung closed 5 years ago

appgurung commented 5 years ago

Have done all necessary steps but can make call from PjSip4Net console app. register command worked well and registeration was successful. But the make call command does not initate call to my cell phone. capture

Please see attached Image. Your fast response will be appreciated.

siniypin commented 5 years ago

Hello,

unfortunately the screenshot you've attached explains nothing. Kindly invest a bit more time into elaborating what exactly your setup is (config, errors/exceptions, your registrar's type, example of how you call to your mobile, etc), if you want me to help you.

R

appgurung commented 5 years ago

Have been able to make it work. I can now make a sip call from the console program. My next challenge it how to stream a wav file to the remote party. I noticed that the program records file/call by default using the WavRecord class. How do it changed that to streaming wav file.

appgurung commented 5 years ago

I can see StartRecording function been called in Call function under DefaultCallBuilder. I dont want to record a call but stream a file wav file which I already have. I will need your expert guidance on how to achieve this capture

appgurung commented 5 years ago

I went through this link https://gist.github.com/siniypin/47326a9fd78af95a3ff7 But went I copied that missing sample into my code am getting error. capture

siniypin commented 5 years ago

To disable recording, simply configure your user agent with AutoRecording=false. https://github.com/siniypin/pjsip4net/blob/master/pjsip4net.Core/Data/UaConfig.cs#L14

siniypin commented 5 years ago

Concerning you error - there isn't much I can help you with, you'll have to figure out your code yourself.

appgurung commented 5 years ago

Have solved it, thanks.