[asterisk-dev] Kill the user, kill the user!

Ryan Mitchell brak2718 at gmail.com
Thu Dec 6 16:04:49 CST 2007


To raise an issue that's come up a few times before, instead of checking
user then ip/port, why not check ip/port first then user?


On Dec 6, 2007 11:05 AM, Johansson Olle E <oej at edvina.net> wrote:

> Friends,
>
> For many years, I've been working to remove the "type=user" and
> "type=friend" from chan_sip. In 1.4 you can in fact
> do everything you can do with a user with a peer. The only difference
> is the way we match incoming calls.
>
> * For users, we match the user object name with the From: username
> (without the domain).
> * For peers, we match on IP for incoming calls.
>
> I've created a branch called "kill_the_user" that has no type=friend
> or type=user, only peers.
>
> Incoming calls are handled this way
>
> * First, we match on peer object name with the From username
> * Then we try to match on IP/Port
> * If we can't match, we send to the context defined in the "general"
> section in sip.conf or to "default".
>
>
> If you can find any way this may give you problems, please inform me
> now. Otherwise, I'm going
> to test this branch with all of you. I don't foresee any problems
> going ahead with this in trunk.
>
> For backwards compatibility, we will accept "type=friend" and
> "type=user" with a warning in 1.6,
> then remove it totally. Old configurations will still work.
>
> For realtime, realtime users will not be used any more.
>
> I hope this will make chan_sip easier to understand and use.
>
> Feedback is appreciated!
>
> /Olle
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
Ryan Mitchell <rjm at tcl.net>
Telecom Logic, LLC
http://www.tcl.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20071206/68c65d3e/attachment.htm 


More information about the asterisk-dev mailing list