[asterisk-dev] Help needed for main/pbx.c

Tilghman Lesher tlesher at digium.com
Thu Nov 4 10:54:42 CDT 2010


On Wednesday 03 November 2010 15:22:58 Stefan Schmidt wrote:
> Am 03.11.2010 20:58, schrieb Russell Bryant:
> > In the case of processing state changes, I'm not sure how we could
> > make it any better.  Device state changes are always reported for a
> > single device, and a hint can be mapped to multiple devices.  So,
> > hashing on the device name isn't very useful.
> 
> thats what i have done by using a container for the devices which each
> has a link to its hint. By using a hash with the devicename i will get
> multiple objects but i want all of them cause i need every hint which
> links to this device.
> this solution also makes it possible to use very long devices names or
> many multiple devices in one hint.

So what happens when the hint is a pattern, and the devicename is an
expression?  These get resolved to a devicename on first reference, but just
using a pattern for the extension does not map well to a hash lookup.  Is
this behavior being handled correctly in your revised code?

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list