[OpenSIPS-Users] how to use gdb for opensips
fun_yang at foxmail.com
fun_yang at foxmail.com
Wed Dec 9 09:24:01 EST 2020
i use "gdb attach 28188" and then "b acc_logic.c:1302". (function w_do_acc_3)and i want to know how the acc module works.
and the log will show as follows,but the break won't work.i don't know why
These logs are printed in the acc_log_request function,so i "b acc.c:313",it also doesn't work,this confused me
log as follows:
Dec 9 17:00:17 vpns /usr/local/sbin/opensips[27851]: ACC: call missed: timestamp=1607504417;created=1607504415;setuptime=2;method=INVITE;from_tag=yQFr6v8m0apFm;to_tag=d420d25e;call_id=cb6ef2ba-b49f-1239-fa91-00163e005793;code=480;reason=Temporarily Unavailable
Dec 9 17:00:17 vpns /usr/local/sbin/opensips[27851]: ACC: transaction answered: timestamp=1607504417;method=INVITE;from_tag=yQFr6v8m0apFm;to_tag=d420d25e;call_id=cb6ef2ba-b49f-1239-fa91-00163e005793;code=480;reason=Temporarily Unavailable
Dec 9 17:00:17 vpns /usr/local/sbin/opensips[27849]: ACC: call missed: timestamp=1607504417;created=1607504415;setuptime=2;method=INVITE;from_tag=aVofdm52iUC8yk7zUTcpoqB0expNlRiU;to_tag=XepZ41QH31Zvr;call_id=akO1EsKzJ0UtXZqPb-rvXaQURDwKTCd8;code=480;reason=Temporarily Unavailable
Dec 9 17:00:17 vpns /usr/local/sbin/opensips[27849]: ACC: transaction answered: timestamp=1607504417;method=INVITE;from_tag=aVofdm52iUC8yk7zUTcpoqB0expNlRiU;to_tag=XepZ41QH31Zvr;call_id=akO1EsKzJ0UtXZqPb-rvXaQURDwKTCd8;code=480;reason=Temporarily Unavailable
The process information is as follows(use systemctl to start opensips):
ps -ef |grep opensips
root 27552 27336 0 11:48 pts/0 00:00:00 tail -f opensips.cdr
root 27863 27792 0 14:15 pts/4 00:00:00 vim opensips.log
root 28188 1 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28189 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28190 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28191 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28192 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28193 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28194 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28195 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28196 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28197 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28198 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28199 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28200 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28201 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28202 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28203 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28204 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
root 28205 28188 0 17:02 ? 00:00:00 /usr/local/sbin/opensips -P /run/opensips/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1000 -M 1000
fun_yang at foxmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201209/50ef512b/attachment.html>
More information about the Users
mailing list