[asterisk-dev] Question/Suggestion for chan_sip

Russell Bryant russell at digium.com
Wed May 12 13:34:08 CDT 2010


On 05/12/2010 05:21 AM, Steve Davies wrote:
> Just thought I would check whether it made any sense before submitting
> it as a patch.
>
> In do_magic_pickup() in chan_sip.c, we try to grab a call from
> extension at context, usually using "subscribecontext " from sip.conf as
> the context.
>
> This got me thinking - Should do_magic_pickup() look for a "hint"
> extension in the specified @context, and try to pick up a call by
> device-list using PickupChan. This will give a more accurately
> directed pickup list, particularly as pickup by extension number may
> well pick up a call that was sent to a completely different,
> unmonitored device.

I don't think that will work.  If you do that, you're going to find the 
callee channels, not the caller channels.  It's the caller channels that 
you want to find and connect to.  If you get a hold of the callee 
channels, there is no way to know what has caused them to be ringing.

-- 
Russell Bryant
Digium, Inc.  |  Engineering Manager, Open Source Software
445 Jan Davis Drive NW   -    Huntsville, AL 35806  -  USA
jabber: rbryant at digium.com    -=-    skype: russell-bryant
www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org



More information about the asterisk-dev mailing list