HananKrasno / du-sip-client

Implements sip client based on pjsip project
3 stars 1 forks source link

help with command line pjsip client #1

Open davemcbride opened 5 months ago

davemcbride commented 5 months ago

Hi

I've been looking for a new command line sip client for testing having banged by head against the wall with sipp for some scenarios and thought about pjsip.

I've messed about the pjsip code a little but it's a steep learning curve. I found your project and thought it might provide a few shortcuts :-)

I understand if you don't have the time for this so don't worry about it if you can't get back to me.

du-sip-client/sip_client.py

this imports: import settings import log import endpoint

which aren't in your repo. I guess they are from the pjsip pygui src: https://github.com/chakrit/pjsip/tree/master/pjsip-apps/src/pygui

settings.py there is heavily involved with using tkinter to create a GUI, which I'm not interested in as I need a command-line driven client.

Did you create a command line pjsip client or am I barking up the wrong tree?

Thanks David

HananKrasno commented 5 months ago

Hi David, In general this repository is a part of some other project, so, the code is dedicated to particular scenarios and conditions. On the other hand you can use it as is for running a simple command line based sip client. Use build_docker.sh to build a docker and than you can run: _docker run -it --network host --privileged --device /dev/snd:/dev/snd du-sip-client:1.0.0 ./runclient.sh ... for example: _docker run -it --network host --privileged --device /dev/snd:/dev/snd du-sip-client:1.0.0 ./runclient.sh --help

My client is listening for PCM packets on down stream port and sends received PCM packets to the up stream port

davemcbride commented 5 months ago

Thanks for getting back to me! And thanks for the tip. I'll play around with the docker and hopefully it'll illuminate some of the concepts for me. Take care, David.