Hi guys:
I'm diving into the code of dial.c.
I'm don't understand for what dialcontext is intended for in the channel
structure.
I see that is used in the pickup logic. In source code of
app_directed_pickup.c, I can see that dialcotext is used to decide the
channel we want to pickup:
00099 if ((!strcasecmp(target->macroexten, exten) ||
!strcasecmp(target->exten, exten)) &&
00100 !strcasecmp(target->dialcontext, context) &&
00101 can_pickup(target)) {
do the pickup
}
But the definition of the dialcotext variable in channel structure is:
Dial: Extension context that we were called from
When 'dialcontext' and 'context' variable will differ?
_______________________________________________
Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/
--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