[asterisk-dev] [Code Review] 2934: PJSIP: when identify by user doesn't match anything, add a debug log. When registration is received against an unidentifiable endpoint, add a notice log.

jrose reviewboard at asterisk.org
Fri Oct 18 14:04:35 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2934/
-----------------------------------------------------------

(Updated Oct. 18, 2013, 7:04 p.m.)


Review request for Asterisk Developers, Matt Jordan and Mark Michelson.


Changes
-------

Notice is now issued on all requests instead of just register


Bugs: ASTERISK-22552
    https://issues.asterisk.org/jira/browse/ASTERISK-22552


Repository: Asterisk


Description
-------

So currently, Asterisk displays nothing when a failed register happens against pjsip due to no endpoint matching the requesting user. That could be frustrating for people setting up new connections and chan_sip does issue messages of this nature.

This patch adds that along with some debug logging a specific endpoint identification method.


Diffs (updated)
-----

  /branches/12/res/res_pjsip/pjsip_distributor.c 401221 
  /branches/12/res/res_pjsip_endpoint_identifier_user.c 401221 

Diff: https://reviewboard.asterisk.org/r/2934/diff/


Testing
-------

Checked that information from failed registers would be received and that the debug messages would be written. Here's an example

res_pjsip_endpoint_identifier_user.c:106 username_identify: Could not identify endpoint by username '123'
res_pjsip/pjsip_distributor.c:258 log_unidentified_register: Registration from '10.24.18.246' failed for '123' - No matching endpoint found


Thanks,

jrose

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131018/6e445bf8/attachment.html>


More information about the asterisk-dev mailing list