From 51446c03fa430fce1900df498fb4dcbb06dbb341 Mon Sep 17 00:00:00 2001 From: "zxzyzw@163.com" Date: Thu, 14 Feb 2008 06:37:48 +0000 Subject: [PATCH] =?UTF-8?q?1.27=20=E5=8F=B7=E7=A0=81=E4=BC=98=E5=85=88=20?= =?UTF-8?q?=E5=88=86=E7=A6=BB=E5=A4=96=E5=9B=BDIP=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MegaDial2/MegaDial.h | 1 + MegaDial2/config_datac.c | 5 ++++- MegaDial2/main.c | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/MegaDial2/MegaDial.h b/MegaDial2/MegaDial.h index bc8cb7ae..78255d94 100644 --- a/MegaDial2/MegaDial.h +++ b/MegaDial2/MegaDial.h @@ -39,6 +39,7 @@ extern const int smsn; extern const int smsc; extern const int voice; extern const int ipx2; +extern const int ip00; extern const int priority; extern const unsigned int volume; diff --git a/MegaDial2/config_datac.c b/MegaDial2/config_datac.c index f211c766..9f32085a 100644 --- a/MegaDial2/config_datac.c +++ b/MegaDial2/config_datac.c @@ -44,7 +44,10 @@ __root const int voice=0; __root const CFG_HDR cfghdr1_11 = {CFG_CHECKBOX,"IP扩展",0,0}; __root const int ipx2=0; - __root const CFG_HDR cfghdr1_12={CFG_CBOX, "优先号码", 0, 5}; +__root const CFG_HDR cfghdr1_12 = {CFG_CHECKBOX,"ip外国+00",0,0}; +__root const int ip00=0; + + __root const CFG_HDR cfghdr1_13={CFG_CBOX, "优先号码", 0, 5}; __root const int priority = 0; __root const CFG_CBOX_ITEM cfgcbox1[5]={"电话号码","公司号码","移动号码","传真号码","传真号码2"}; diff --git a/MegaDial2/main.c b/MegaDial2/main.c index 8bd6d381..74a23709 100644 --- a/MegaDial2/main.c +++ b/MegaDial2/main.c @@ -1728,7 +1728,10 @@ void VoiceOrSMS(const char *num) } else { + if(ip00) sprintf(buf,"%d00",cfg_ip_number3); + else + sprintf(buf,"%d",cfg_ip_number3); strcat(buf,num+1); }