2013/3/14 Puzankin Grigoriy <gpuzan...@gmail.com>: > Hi, > > I need to get type of called number (TON), which is displayed in pri debug > messages: > > Called Party Number (len=13) [ Ext: 1 TON: National Number (2) NPI: > ISDN/Telephony Numbering Plan (E.164/E.163) (1) 'xxxxxxxxxx' ] > > Does anyone know how to do it? > > According to documentation it is only possible for calling number. But I > need to make decision in dialplan upon the value of type of called number. > > BTW, I made a little research on source code and could not find anything > related to my question. Perhaps, it's not implemented. > > Best regards, > Grigoriy > > -- > С уважением, > Григорий Пузанкин > > > -- > _____________________________________________________________________ > -- 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
Hello Grigoriy, i think that you can access the information you need by using the dialplan function CALLERID(num-plan). It should contain the lower 7 bits of the Q.931 type-of-number/numbering-plan-identification octet. Best regards Gianluca -- _____________________________________________________________________ -- 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