[asterisk-dev] [Code Review] 4305: pjsip cli: Fix sorting of contacts for 'pjsip list contacts'

George Joseph reviewboard at asterisk.org
Wed Dec 31 17:18:01 CST 2014


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

Review request for Asterisk Developers.


Repository: Asterisk


Description
-------

For some reason I was using a hash container instead of a list to gather the contacts for 'pjsip list/show contacts' so even though I had a sort function, the output wasn't sorted.  This patch just changes the hash container to a list container and the contacts now appear sorted in the CLI.


Diffs
-----

  branches/13/res/res_pjsip/location.c 430163 

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


Testing
-------

Eyeballed contact list before and after to confirm they were now sorted.


Thanks,

George Joseph

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


More information about the asterisk-dev mailing list