Use syslog line as input for Home-assistant

Hello,

I have a asterisk-like PBX system (Askozia) at home. It generates syslog rules with the CDR (Call Detail Record) data in it.

Jan 11 10:47:53 192.168.1.7 asterisk[166]: CDR[166]: ""+31123456789" <0123456789>","0123456789","0123123123","SIP-PROVIDER-95830527648b45cb1af6e0-incoming","SIP/0123123123-0321321321","SIP/1234-0123000","VoiceMail","1234|u|0123123123","2019-01-11 10:47:17","2019-01-11 10:47:48","2019-01-11 10:47:53","36","5","ANSWERED","DOCUMENTATION","","1547200037.2",""

I would like to filter out these lines and send the relevant data (who has called me?) to Home-Assistant. On the GUI I want to show this as a sensor/missed call.

Any ideas on how to accomplish this?

Kind regards,

Remco Hannink.

Did you happen to solve it? I’m looking for the same thing

Hello,
I needed it to get informed if I was called and who was calling.

I started out using syslogng which can trigger scripts based on the type of logmassages:

https://serverfault.com/questions/966111/syslog-ng-execute-script-on-syslog-pattern

But never got it working very good.

The I found something called sip2mqtt

This triggers a MQTT message with Some parameters.

I hope this helps.

Gr. Remco