See Below: > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of usedcanon > Sent: Saturday, May 29, 2004 7:01 PM > To: Asterisk users > Subject: [Spam] [SpamSA] [Asterisk-Users] extracting country code from a > number > > > Hi > > Does anyone know of an algorythm to extract the country code from > a number. > I understand that the country codes are of different length and > there is no > fixed length of local area code or phone numbers. > > I am sure there is a way, if not how to telephone switches handle them > > Umar. > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Umar, you must have a valid list of country codes to match against. This is the only way that I know to parse them out! Dave _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
