ladendirekt / pjsip4net

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

Make call and play sound and hangup. #124

Open Desync3 opened 7 months ago

Desync3 commented 7 months ago

How can i make a call from callerid to number via sip then play wav/mp3 file and hangup call? c# code examples would be nice. Thanks

siniypin commented 7 months ago

Hello,

you can find examples of what you want to achieve here:

Desync3 commented 7 months ago

Hello,

you can find examples of what you want to achieve here:

I'm not able to compile the project. I get Screenshot 2024-04-02 012504

heres the errors: Severity Code Description Project File Line Suppression State Error CS2001 Source file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Core\..\SolutionVersion.cs' could not be found. pjsip4net.Core C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Core\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Core\bin\Debug\pjsip4net.Core.dll' could not be found pjsip.Interop C:\Users\packw\source\repos\pjsip4net-master\pjsip.Interop\CSC 1 Active Error CS2001 Source file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net\..\SolutionVersion.cs' could not be found. pjsip4net C:\Users\packw\source\repos\pjsip4net-master\pjsip4net\CSC 1 Active Error CS2001 Source file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Container.Castle\..\SolutionVersion.cs' could not be found. pjsip4net.Container.Castle C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Container.Castle\CSC 1 Active Error CS2001 Source file 'C:\Users\packw\source\repos\pjsip4net-master\Tests\pjsip4net.Testing\..\..\SolutionVersion.cs' could not be found. pjsip4net.Testing C:\Users\packw\source\repos\pjsip4net-master\Tests\pjsip4net.Testing\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip.Interop\bin\Debug\pjsip.Interop.dll' could not be found pjsip4net.Console C:\Users\packw\source\repos\pjsip4net-master\Tests\Integration\pjsip4net.Console\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Container.Castle\bin\Debug\pjsip4net.Container.Castle.dll' could not be found pjsip4net.Console C:\Users\packw\source\repos\pjsip4net-master\Tests\Integration\pjsip4net.Console\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Core\bin\Debug\pjsip4net.Core.dll' could not be found pjsip4net.Console C:\Users\packw\source\repos\pjsip4net-master\Tests\Integration\pjsip4net.Console\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net\bin\Debug\pjsip4net.dll' could not be found pjsip4net.Console C:\Users\packw\source\repos\pjsip4net-master\Tests\Integration\pjsip4net.Console\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Container.Castle\bin\Debug\pjsip4net.Container.Castle.dll' could not be found pjsip4net.Tests C:\Users\packw\source\repos\pjsip4net-master\Tests\Unit\pjsip4net.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net.Core\bin\Debug\pjsip4net.Core.dll' could not be found pjsip4net.Tests C:\Users\packw\source\repos\pjsip4net-master\Tests\Unit\pjsip4net.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\pjsip4net\bin\Debug\pjsip4net.dll' could not be found pjsip4net.Tests C:\Users\packw\source\repos\pjsip4net-master\Tests\Unit\pjsip4net.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Users\packw\source\repos\pjsip4net-master\Tests\pjsip4net.Testing\bin\Debug\pjsip4net.Testing.dll' could not be found pjsip4net.Tests C:\Users\packw\source\repos\pjsip4net-master\Tests\Unit\pjsip4net.Tests\CSC 1 Active

siniypin commented 7 months ago

We have updated the docs to make it more explicit on how to build the solution: https://github.com/ladendirekt/pjsip4net/blob/master/README.md#building