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.
David Boyd
2004-May-29 19:19 UTC
[Spam] [SpamSA] [Asterisk-Users] extracting country code from a number
See Below:> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com]On 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 > Asterisk-Users@lists.digium.com > 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
brian k. west
2004-May-29 20:57 UTC
[Asterisk-Users] extracting country code from a number
search google... rgagon posted something to -dev that does just this a few months back. bkw ----- Original Message ----- From: "usedcanon" <usedcanon@yahoo.co.uk> To: "Asterisk users" <asterisk-users@lists.digium.com> Sent: Saturday, May 29, 2004 5:01 PM Subject: [Asterisk-Users] extracting country code from a number> Hi > > Does anyone know of an algorythm to extract the country code from anumber.> I understand that the country codes are of different length and there isno> 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 > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Hi I have searched google extensively. I try not to post stuff unless I have exhausted efforts through the wiki and google. Obviously if there is something there I am not entering the right search criteria. Further help will be appreciated. Umar -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of brian k. west Sent: 30 May 2004 04:57 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] extracting country code from a number search google... rgagon posted something to -dev that does just this a few months back. bkw ----- Original Message ----- From: "usedcanon" <usedcanon@yahoo.co.uk> To: "Asterisk users" <asterisk-users@lists.digium.com> Sent: Saturday, May 29, 2004 5:01 PM Subject: [Asterisk-Users] extracting country code from a number> Hi > > Does anyone know of an algorythm to extract the country code from anumber.> I understand that the country codes are of different length and there isno> 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 > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Sun, 2004-05-30 at 10:00, usedcanon wrote:> Obviously if there is something there I am not entering the right search > criteria. Further help will be appreciated.May 10th asterisk-dev archives. Post by Rob Gagnon: "Algorithm to parse country code" F
Thank you very much indeed. Help s appreciated. (I found what I was looking for) Umar -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Fran Boon Sent: 30 May 2004 10:40 To: asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] extracting country code from a number On Sun, 2004-05-30 at 10:00, usedcanon wrote:> Obviously if there is something there I am not entering the right search > criteria. Further help will be appreciated.May 10th asterisk-dev archives. Post by Rob Gagnon: "Algorithm to parse country code" F _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users