On Fri, Jun 10, 2011 at 6:27 AM, A J Stiles <asterisk_l...@earthshod.co.uk> wrote: > On Friday 10 Jun 2011, mahesh katta wrote: >> Hi, >> I have 44578900 to 44578999 DID's. and I have extensions(100) for this >> DID's. but problem is >> callerid Extensions >> 44578900 100 >> 44578901 101 >> 44578902 102 >> 44578902 103 >> 44578903 104 >> 44578905 200 >> 44578906 275 >> 44578907 277 >> 44578908 354 >> >> I need to setup the callerid with this extensions . for example whenever I >> am dial from 354 extension callerID will show 44578908. >> fro this scenarion I need logical dialplan because I have 100 extenstions , >> so 100 extentions should be have different extensions. > > Sounds like a case for either (1) a different context per originating > extension (or maybe, per group of originating extensions which all happen to > obey the same mathematical formula for determining outside callerID from > inside extension number); (2) an AGI script, accessing a database which > links internal extensions to external numbers; or (3) rethinking your > internal extension numbering scheme so there is a consistent mapping from > internal to external numbers, thus allowing you to do it all mathematically. > > -- > AJS > > Answers come *after* questions.
Why do programmers try to make solution so elegant when an entries for each phone in sip.conf is all that is needed. No need for mathematical formulas, AGIs, and databases. You just took over engineering to a new level. Thanks, Steve T -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users