Skip to content

g3orgs/pjsip-ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

pjsip-ng

docker file to use pjsip2mqtt

you can use it to send an mqtt topic with caller ID to an local MQTT Broker. It makes sense to switch things in your home automation remotly

It based on ubuntu latest with PJSIP version 2.7.2 PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. It combines signaling protocol (SIP) with rich multimedia framework and NAT traversal functionality into high level API that is portable and suitable for almost any type of systems ranging from desktops, embedded systems, to mobile handsets.

pjsip-ng sip2mqtt working on synology https://hub.docker.com/r/g3org/pjsip-ng/

ENV MQTT_TOPIC sip2mqtt/softphone
ENV MQTT_DOMAIN 192.168.x.x
ENV MQTT_PORT 1830
ENV MQTT_USERNAME user
ENV MQTT_PASSWORD password
ENV SIP_DOMAIN sipgate.de
ENV SIP_USERNAME sipuser
ENV SIP_PASSWORD sippassword

You have to configure this values corectly,otherwise the container will not start

usage

To build this image, just clone this repo and build using docker:

git clone https://github.com/g3orgs/pjsip-ng.git
cd pjsip-ng
docker build -t pjsip-ng . 

for testing you can start the command like this.

python /opt/sip2mqtt/sip2mqtt.py -t1830 -a192.168.0.5 -uusername -pSECRET -dsipgate.de -nSUB_DID -sSECRET -vvv

please add an # before

CMD /bin/sh -c "python /opt/sip2mqtt/sip2mqtt.py --mqtt_topic $MQTT_TOPIC --mqtt_domain $MQTT_DOMAIN --mqtt_port $MQTT_PORT --mqtt_username $MQTT_USERNAME --mqtt_password $MQTT_PASSWORD --sip_domain $SIP_DOMAIN --sip_username $SIP_USERNAME --sip_password $SIP_PASSWORD"

it based on https://github.com/respoke/pjsip-docker and https://github.com/MartyTremblay/sip2mqtt

About

docker file to use pjsip2mqtt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages