Hi<div><br></div><div>I am using opensips 1.7 and would like to raise an event when I see a BYE, however I am struggling with the documentation as it stands. This is what I am doing:</div><div><br></div><div>In the script:</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>if(is_method("BYE")) {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>xlog("BYE seen, raising event");</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>$avp(s:attr) = "number";</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>$avp(s:val) = 0;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>$avp(s:attr) = "string";</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>$avp(s:val) = "dummy value";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>raise_event("E_DUMMY", $avp(s:attr), $avp(s:val));</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>}</div></div><div>
<br></div><div><br></div><div>When opensips is started I am issuing this FIFO:</div><div><br></div><div>opensipsctl fifo event_subscribe E_DUMMY unix:/tmp/opensips_event.sock 1800</div><div><br></div><div><br></div><div>and I see this in the logs (debug=6)</div>
<div><br></div><div><div>Nov 30 12:57:00 pk-lenny /usr/local/opensips/sbin/opensips[4561]: DBG:mi_fifo:mi_parse_tree: adding node <> ; val <E_DUMMY></div><div>Nov 30 12:57:00 pk-lenny /usr/local/opensips/sbin/opensips[4561]: DBG:mi_fifo:mi_parse_tree: adding node <> ; val <unix:/tmp/opensips_event.sock></div>
<div>Nov 30 12:57:00 pk-lenny /usr/local/opensips/sbin/opensips[4561]: DBG:mi_fifo:mi_parse_tree: adding node <> ; val <1800></div><div>Nov 30 12:57:00 pk-lenny /usr/local/opensips/sbin/opensips[4561]: DBG:mi_fifo:mi_parse_node: end of input tree</div>
<div>Nov 30 12:57:00 pk-lenny /usr/local/opensips/sbin/opensips[4561]: DBG:mi_fifo:mi_fifo_server: done parsing the mi tree</div><div>Nov 30 12:57:00 pk-lenny /usr/local/opensips/sbin/opensips[4561]: DBG:event_datagram:datagram_parse: address is </tmp/opensips_event.sock></div>
<div>Nov 30 12:57:00 pk-lenny /usr/local/opensips/sbin/opensips[4561]: DBG:event_datagram:datagram_match: socket matched /tmp/opensips_event.sock:0</div></div><div><br></div><div><br></div><div>However the file /tmp/opensips_event.sock is not created at all, even when the raise_event function is called. </div>
<div><br></div><div>Am I doing something wrong?</div>