Hi,
Try to get some debug logs from that route. Do:
timer_route[event_subscribe, 4] {
setdebug(4);
xlog("Subscribing from timer route....\n");
if (!subscribe_event("E_ACC_CDR", "rabbitmq:cdr:[email protected]/cdr1", 5))
{
xlog("L_INFO", "Can't connect to RabbitMQ \n");
}
setdebug();
}
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 02.06.2014 17:55, Kneeoh wrote:
After following the example here:
http://www.opensips.org/Documentation/Tutorials-EventInterface
Shouldn't this resubscribe every 4 seconds and expire in 5 (i.e. never)? in my
script it's not subscribing to rabbit at all. I'm running version: Server::
OpenSIPS (1.10.1-notls (x86_64/linux))
timer_route[event_subscribe, 4] {
if (!subscribe_event("E_ACC_CDR", "rabbitmq:cdr:[email protected]/cdr1",
5)) {
xlog("L_INFO", "Can't connect to RabbitMQ \n");
}
}
root@osips:/var/log# tcpdump -s0 -ni eth1 host 192.168.2.30
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users