Skip to content

Dockerfile for building pjsip. Also includes sip2mqtt to publish MQTT payloads on incoming calls

License

Notifications You must be signed in to change notification settings

MartyTremblay/pjsip-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pjsip-docker

Dockerfile for building pjsip and python_pjsip as a base for SIP applications.

This Dockerfile currently builds Debian "jessie" release with pjsip pre-compiled. We apply a slight customization to the pjsip build to better support chan_respoke and WebRTC in general by increasing the maximum number of ice candidates that pjsip allows.

usage

A bundled python script sip2mqtt.py allows the monitoring of SIP connections and publishes the CallerID payload to an MQTT channel. The entrypoint command requires the following parametters:

-a MQTT_ADDRESS, --mqtt_address MQTT_ADDRESS
                    the MQTT broker address string
-t MQTT_PORT,    --mqtt_port MQTT_PORT
                    the MQTT broker port number
-u MQTT_USERNAME, --mqtt_username MQTT_USERNAME
                    the MQTT broker username
-p MQTT_PASSWORD, --mqtt_password MQTT_PASSWORD
                    the MQTT broker password
-d SIP_DOMAIN,    --sip_domain SIP_DOMAIN
                    the SIP domain
-n SIP_USERNAME,  --sip_username SIP_USERNAME
                    the SIP username
-s SIP_PASSWORD,  --sip_password SIP_PASSWORD
                    the SIP password

Example entrypoint cmd:

python /opt/sip2mqtt/sip2mqtt.py -t16491 -afoo.cloudmqtt.com -uSip2Mqtt -pSECRET -dfoo.voip.ms -nSUB_DID -sSECRET -vvv

More optional parametters can be provided and referenced by running python sip2mqtt.py -h

license

MIT

About

Dockerfile for building pjsip. Also includes sip2mqtt to publish MQTT payloads on incoming calls

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%