[asterisk-dev] [Code Review] 2614: chan_pjsip: Anonymous Support

Mark Michelson reviewboard at asterisk.org
Thu Jun 13 16:23:16 CDT 2013


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

Ship it!


Looks good!

I'm noticing some repeated patterns in SIP code, such as
* Finding an endpoint based on name at domain and falling back to just name
* Finding a transport based on the rdata
It may be worth making some helper functions in res_sip that do these tasks centrally. No need to address that in this review though.

- Mark Michelson


On June 11, 2013, 11:03 a.m., Joshua Colp wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2614/
> -----------------------------------------------------------
> 
> (Updated June 11, 2013, 11:03 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-21434
>     https://issues.asterisk.org/jira/browse/ASTERISK-21434
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> This change adds an anonymous endpoint identifier which is loaded after all other endpoints, allowing anonymous calling (if configured).
> 
> The module works by initially searching for an endpoint named anonymous at domain, followed by anonymous. If either endpoint exists the endpoint is returned. If neither endpoint exists no endpoint is returned and anonymous calling is not permitted. The module can also be unloaded to allow no possibility of anonymous calling.
> 
> 
> Diffs
> -----
> 
>   /team/group/pimp_my_sip/res/res_sip.c 391193 
>   /team/group/pimp_my_sip/res/res_sip_endpoint_identifier_anonymous.c PRE-CREATION 
> 
> Diff: https://reviewboard.asterisk.org/r/2614/diff/
> 
> 
> Testing
> -------
> 
> Configured a softphone with a dummy username, placed call to chan_pjsip, confirmed anonymous used.
> Called from phone using valid username, confirmed valid endpoint used.
> Unloaded anonymous endpoint identifier, confirmed call rejected.
> 
> 
> Thanks,
> 
> Joshua Colp
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130613/ddd5dc49/attachment.htm>


More information about the asterisk-dev mailing list