Asterisk usageΒΆ
You can use this plugin with your existing Asterisk installation.
You need to :
- Create a dummy device with device = /dev/null as value for example.
- Don’t start the plugin! It would be useless.
- Configure Asterisk to send a xPL message when an inbound call is received. See the xPL message description for more informations about this message.
- Full sample here: https://madomotique.wordpress.com/2012/02/01/notification-dappels-sip-asteriskdomogik/
For exemple on two separatated machine one running asterisk that can ssh without password to one running domogik
in your asterisk/extensions.conf in the inbound call: [from-pstn] exten => s,1,Gosub(prevenir,s,1)
and add a new sub prevenir like this one:
[prevenir] exten => s,1,Wait(0) same => n, System(nohup ssh domogik@domogikIP ‘python /path/to/your/domogik/bin/send.py xpl-trig cid.basic “calltype=inbound,phone=${CALLERID(num)}”’ &) same => n, Return