[asterisk-dev] [Code Review] Parsing of reg->username containing @domain

David Vossel dvossel at digium.com
Wed Apr 28 16:50:39 CDT 2010


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


This is a good improvement, thanks for submitting this!


trunk/channels/sip/config_parser.c
<https://reviewboard.asterisk.org/r/628/#comment4152>

    I noticed that the logic that determines whether or not regdomain or hostname should be used in the create_address function uses S_OR.  We should be checking strcmp(reg->regdomain, "") in every test case that a regdomain is not present. 


- David


On 2010-04-26 09:32:01, Nick Lewis wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/628/
> -----------------------------------------------------------
> 
> (Updated 2010-04-26 09:32:01)
> 
> 
> Review request for Asterisk Developers and David Vossel.
> 
> 
> Summary
> -------
> 
> reg->username is parsed for each registration refresh rather than once on sip reload. A previously committed change that addressed this was reverted because it did not cater for registration strings that contained a peer name in the host field. This change does. 
> 
> 
> This addresses bug 14331.
>     https://issues.asterisk.org/view.php?id=14331
> 
> 
> Diffs
> -----
> 
>   trunk/channels/chan_sip.c 258227 
>   trunk/channels/sip/config_parser.c 258227 
>   trunk/channels/sip/include/sip.h 258228 
> 
> Diff: https://reviewboard.asterisk.org/r/628/diff
> 
> 
> Testing
> -------
> 
> Passes a new unit test for parsing usernames containing domains. Passes existing unit tests. Passes peername functional test with sip.conf snippet
> 
> [general]
> register=nick at quirk
> [quirk]
> fromdomain=10.10.235.48
> 
> 
> Thanks,
> 
> Nick
> 
>




More information about the asterisk-dev mailing list