${CALLERID(num)} should provide this information in both cases.
_____ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Michelle Dupuis Sent: Friday, July 24, 2009 4:43 PM To: 'Asterisk Users List' Subject: [asterisk-users] How determine extension of who initiated call I'm working on a script that needs to determine the extension (eg: 123) of the phone that initiated the call, or CALLERID number if an externall caller. Is there a simple way to do this?
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users