I need to pass content of SIP message body into C application. For example, I will have some SIP server (Kamailio or Asterisk or something like this). When I receive some sip message (e.g turn on PC) it will be passed to C application which will set GPIO value to 1 so the PC will turn on. The problem is to get the message from sip server into C application. I don't know if exists some module to Asterisk or to Kamailio which can do this.
Anyone any ideas? Thanks a lot!