Sample code needed using libpri for making calls


I tried ‘pritest’ to receive calls with libri, but it is only for receiving calls.

It seems to me a very big task to extract a sample code from asterisk to write a simple demo code that can make calls.

So if anybody would share with me its own sample code that can make calls without asterisk that would be appreciated.

Thanks in advance
Tamas Patai