Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SMS via VBA (Read 5889 times)
Michael Hoffmann
Guest


SMS via VBA
28. Aug 2004 at 19:48
Print Post  
Hallo,

habe Phoner neu im Einsatz und ich wollte gern darüber SMS-Nachrichten per VBA (aus Access) heraus versenden. Habe dazu folgende Funktion geschrieben:

public function sms(Nummer as string, Meldung as string) as string
Dim objphoner As Object, Number, Text
Set objphoner = CreateObject("Phoner.Cphoner")
sms = objphoner.SendSMS(Nummer, Meldung)
Set objphoner = Nothing
end function

Soweit so gut. Wenn ich jetzt eine SMS auslöse fängt Phoner auch an eine SMS zu versenden, allerdings wählt er immer die D1-Mobil Telefonummer an, egal welche Zielnummer (z. B. 01776442087) ich angebe. So kommt eine SMS bei ePlus also nie an. Die kommt nur an wenn ich in Phoner bei der D1-Mobil-Nummer die ePlus-Einwahlnummer eingebe. So ist es dann aber nicht mehr möglich SMS an andere Mobilfunkempfänger anderer Netze zu versenden. 

Hilfe, was mache ich falsch?

mfg

Michael
  
Back to top
 
IP Logged
 
Michael Hoffmann
Guest


Re: SMS via VBA
Reply #1 - 30. Aug 2004 at 16:30
Print Post  
Hallo,

hier noch das Debuglogfiles hierzu:

16:17:57,234: COM: SendSMS(01776442087, "Nur ein Test")
16:17:57,434: OpenDevice
16:17:57,434: AVM-GmbH: 2.0 (3.07-1)
16:17:57,434: Register: 1024 bytes blocksize
16:17:57,454: CAPI thread created: 0x0330
16:17:57,454: Listen Request
16:17:57,595: Sending SMS to 01776442087 (T-Mobile)
16:17:57,615: Connect Request:  to 001712521001
16:17:57,625: Listen Confirm
16:17:57,625: Connect Confirm
16:17:57,695: Info Indication: setup acknowledge
16:17:57,695: Info Response
16:17:57,695: Info Indication: B1
16:17:57,695: Info Response
16:17:59,788: Connect Active Indication: 
16:17:59,788: Connect Active Response
16:17:59,788: Connect B3 Request
16:17:59,798: Connect B3 Confirm
16:17:59,828: Connect B3 Active Indication
16:17:59,828: Connect B3 Active Response
16:17:59,828: TAP: InitialSync
16:17:59,878: TAP: InitialSync
16:17:59,878: TAP: Identification
16:17:59,918: TAP: Identification
16:18:00,429: TAP: GoOn
16:18:00,429: TAP: Transaction
16:18:01,580: TAP: TransactionAck
16:18:01,580: TAP: EOT
16:18:01,700: TAP: EOT
16:18:01,700: Disconnect B3 Request
16:18:01,700: Disconnect B3 Confirm
16:18:01,740: Disconnect B3 Indication
16:18:01,740: Disconnect B3 Response
16:18:01,740: Disconnect Request
16:18:01,740: Disconnect Confirm
16:18:01,841: Disconnect Indication: 
16:18:01,841: Disconnect Response
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11432
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: SMS via VBA
Reply #2 - 01. Sep 2004 at 08:02
Print Post  
Oops! Das ist tatsächlich ein Fehler. In der aktuellen 1.65er Beta von heute habe ich das geändert!
  
Back to top
WWW  
IP Logged
 
Michael Hoffmann
Guest


Re: SMS via VBA
Reply #3 - 01. Sep 2004 at 21:43
Print Post  
Hallo,

vielen Dank für die schnelle Hilfe, aber jetzt wird zwar richtig die ePlus-Einwahl angezeigt, aber jetzt kommt gar keine SMS mehr an. Auch nicht wenn ich es direkt über die Phoner-Oberfläche versuche.


Hier wieder das Logfile:

1:40:19,015: Listen Request
21:40:19,031: Listen Confirm
21:40:24,140: Sending SMS to 01776442087 (E-Plus)
21:40:24,140: Connect Request: 76471652 to 01771167
21:40:24,140: Connect Confirm
21:40:26,875: Info Indication: setup acknowledge
21:40:26,875: Info Response
21:40:26,875: Info Indication: B1
21:40:26,875: Info Response
21:40:30,156: Info Indication: call proceeding
21:40:30,156: Info Response
21:40:30,203: delivered connected party number: 1771167
21:40:30,203: Connect Active Indication: 01771167
21:40:30,203: Connect Active Response
21:40:30,203: Connect B3 Request
21:40:30,203: Connect B3 Confirm
21:40:30,265: Connect B3 Active Indication
21:40:30,265: Connect B3 Active Response
21:40:30,265: TAP: InitialSync
21:40:30,265: Info Indication: 1
21:40:30,265: Info Response
21:40:33,265: TAP: EOT
21:40:36,265: Disconnect B3 Request
21:40:36,265: Disconnect B3 Confirm
21:40:37,250: Info Indication: Normal call clearing
21:40:37,250: Info Response
21:40:37,250: Info Indication: 1
21:40:37,250: Info Response
21:40:37,250: Disconnect B3 Indication
21:40:37,250: Disconnect B3 Response
21:40:37,250: Disconnect Request
21:40:37,250: Disconnect Confirm
21:40:37,312: Disconnect Indication: Normal call clearing
21:40:37,312: Disconnect Response
21:40:45,000: CloseDevice
21:40:45,000: CAPI thread terminating: 0x0218
21:40:45,000: Release
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11432
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: SMS via VBA
Reply #4 - 02. Sep 2004 at 08:16
Print Post  
Es scheint tatsächlich ein Problem bei der Übermittlung zu EPlus zu bestehen.
Man kann jedoch Phoner so einstellen, dass immer das Vodafone-SMSC verwendet werden soll.  Das funktioniert dann auch bei Rufnummern zu EPlus.
Setz also mal das Häkchen bei den SMS-Einstellungen...
  
Back to top
WWW  
IP Logged
 
Michael Hoffmann
Guest


Re: SMS via VBA
Reply #5 - 02. Sep 2004 at 14:49
Print Post  
Hallo,

vielen Dank für die Info. Schein tatsächlich das zu funktionieren. Hat diese Einstellung andere Nachteile, d. h. kann ich damit auch D1/D2-Teilnehmer eine SMS zusenden?

Weiter wäre es schön, wenn man die Absender-SMS ebenfalls per Parameterübergabe vorgeben könnte, also sendsms(Zielnummer, SMSText,Absendenummer).

mfg

Michael Hoffmann

P.S. Das Programm läuft auf meinen System (wo andere Programme häufig hängen blieben. Super Leistung.
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11432
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: SMS via VBA
Reply #6 - 03. Sep 2004 at 08:12
Print Post  
Du kannst über das Vodafone-SMSC Nachrichten an T-Mobile, Vodafone, E-Plus und O2 senden - sogesehen macht die Einstellung Sinn, das auch zu nutzen.

Das Setzen der Absenderadresse per COM ist tatsächlich nicht implementiert - vielleicht schaffe ich das ja mal irgendwann  Wink
  
Back to top
WWW  
IP Logged
 
Michael Hoffmann
Guest


Re: SMS via VBA
Reply #7 - 03. Sep 2004 at 18:54
Print Post  
Funktioniert alles prima. 


Vielen Dank.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint