[Asterisk-Dev] SIP peername==username equivalence

Brian Roy b.t.roy at brianandkelly.ws
Wed Nov 10 09:10:51 MST 2004


This HAS to go into CVS.

I'm going to download your patch and hopefully have it in production
early next week. I'll let you know if I find any issues in QA.

Thanks!

Brian Roy

On Wed, 2004-11-10 at 09:00, Matthew Costello wrote:
> I've gotten annoyed by the requirement in the sip_chan.c
> file that the username must match the peer name. Since
> the username is generally the same as the extension it leads
> to less than descriptive names in the asterisk configuration
> files.
> 
> I've fixed sip_chan.c to break this equivalence. With this
> change the sip.conf peer names are completely internal
> to asterisk. This decoupling allows the use of descriptive
> peer names in the asterisk configuration files.
> 
> My "sip show peers" now has
>    Name/username    Host            Dyn  ...
>    streak/44            192.168.1.19     D
>    cream/42            (Unspecified)    D  
>    albacore/41        192.168.1.65     D
>    gs02/34              192.168.1.55     D
>    gs01/33              192.168.1.54     D
>    spa01a/s1-pstn   192.168.1.51     D
>    spa01b/s1-32     192.168.1.51     D
> which is much clearer than just having "44/44".
> 
> The patch (against v1-0) is available at
>    http://www.ottix.com/~matthew/sip-username01.patch
> 
> I've not put it into the bug tracking system because I have
> not updated the MySQL code in chan_sip.c.  If this fix is
> wanted then I will update and test the MySQL code as well.
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list