验证电话号码 [英] Validating phone numbers

查看:129
本文介绍了验证电话号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个电话号码列表,其中一些是有效的,而有些却不是.我必须编写一个简单的程序,该程序将检查哪个电话号码有效和哪个电话号码无效.
我曾想为此使用SerialPort,但是如何在第一次发出哔声后(有人接听电话之前)或从运营商处收到电话号码无效的消息后直接断开连接?
还是有其他解决方法?

在此先感谢

I have a list of phone numbers, some of them are valid and some of them aren''t. I have to write a simple program, which will check which phone number is valid and which isn''t.
I thought to use SerialPort for this, but how can I disconnect directly after the first beep (before somebody answers the phone) or after I got message from the carrier that the phone number isn''t valid?
Or may be there is some other way to solve it?

Thanks in advance

推荐答案

我不认为此处应使用串行端口.最好使用语音调制解调器并使用电话api为您进行呼叫.这还可以为您提供有关您正在进行的呼叫状态的反馈.

祝你好运!
I don''t think the serial port is what should be used here. It would be better to use a voice modem and use the telephone api to do the calling for you. This can also provide you with feedback about the status of the call you''re making.

Good luck!


这篇关于验证电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆