Download MMS Toolkit    |     Visit the MMS Toolkit website

Index - Log in! - Sign up! - Visit website
How to create wap push sms with SMPP using ASP,Asp.net(vb)
 
ActiveXperts Software Forum Index -> SMS and MMS Toolkit -> Development platforms
 
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raviram17



Joined: 25 Mar 2008
Posts: 5

PostPosted: Tue Mar 25, 2008 6:38 am    Post subject: How to create wap push sms with SMPP using ASP,Asp.net(vb)

Hi friends,

i need to create a wap push sms using asp,asp.net(vb).

and i need to know the format to send the wap push mess.

if possible can i get any code or site related to this friends.

pls help me this

Thanks and regards,

Ravi
Back to top
Leon



Joined: 11 Jul 2007
Posts: 408

PostPosted: Tue Mar 25, 2008 8:19 am    Post subject:

Hello Ravi,

Please have a look at the following document:

http://www.activexperts.com/activsms/sms/wappushsi

Leon
Back to top
raviram17



Joined: 25 Mar 2008
Posts: 5

PostPosted: Tue Mar 25, 2008 10:59 am    Post subject: Wap push sms

hello sir,

i have tried that code but i am getting error and i cont get the sms in my mobile.

The code is:

<%
Dim objWap
Dim objSmpp
Dim objConstants

Dim i
Dim nNumDevices
Dim strDevices


' Create objects
Set objWap = CreateObject ( "ActiveXperts.WapPush" )
Set objSmpp = CreateObject ( "ActiveXperts.Smpp" )
Set objConstants = CreateObject ( "ActiveXperts.SmsConstants" )

response.Write "ActiveXperts SMS and Pager Toolkit " & objSmpp.Version & " demo."
response.Write "Expiration date: " & objSmpp.ExpirationDate & vbCrLf

' Set recipient
Do
objSmpp.MessageRecipient = "+919840055726"
Loop until objSmpp.MessageRecipient <> ""

' Encode Wap Message
objWap.ConnectionType = objConstants.asWAPPUSH_SERVICE_INDICATION
objWap.URL = "http://wap.yahoo.com"
objWap.Description = "WAP Push"
objWap.SignalReference = "6532"
objWap.SignalAction = objConstants.asWAPPUSHSIGNAL_MEDIUM
objWap.ConnectionType = 1

objSmpp.Server = "smpp.activexperts-labs.com"
objSmpp.ServerPort = 2775
objSmpp.SystemID = "614C77D1DC"
objSmpp.SystemPassword = "614C77D1DC"
objSmpp.SystemType = "SMPP"
objSmpp.ServerTimeout = 5000
objSmpp.SystemMode = objConstants.asSMPPMODE_TRANSMITTER


objSmpp.MessageType = objConstants.asMESSAGETYPE_DATA_UDH
objSmpp.LogFile = "c:\WapPushDemo.txt"

objSmpp.Connect

If ( objSmpp.LastError <> 0 ) Then
response.Write "Failed to connect to ActiveXperts SMPP Demo Server" & vbCrLf & "ERROR " & objSmpp.LastError & " : " & objSmpp.GetErrorDescription ( objSmpp.LastError )
' WScript.Quit
End If

objWap.Encode

If ( objWap.LastError <> 0 ) Then
response.Write "Sending WAP Push message failed, error = " & objWap.LastError & " ( " & objWap.GetErrorDescription ( objWap.LastError ) & " )"

Else
' Initialize SMS and Pager toolkit

objSmpp.MessageType = objConstants.asMESSAGETYPE_DATA_UDH ' Data + UDH messagetype
objSmpp.LogFile = "c:\WapPushDemo.txt" ' Logfile

' Send the message

objSmpp.MessageData = objWap.EncodedMessage
objSmpp.Send

If ( objSmpp.LastError <> 0 ) Then
response.Write ( "Error " & objSmpp.LastError & " : " & objSmpp.GetErrorDescription ( objSmpp.LastError ) )
' WScript.Quit
End If

response.Write "Message successfully submitted."

objSmpp.Disconnect
End If
%>

When i run the asp file i get this messages


ActiveXperts SMS and Pager Toolkit 4.1 demo.
Expiration date: 04/13/2008
Failed to connect to ActiveXperts SMPP Demo Server ERROR 23202 : Unable to bind, check credentials
Error 23203 : Not bound, connect first
Message successfully submitted.
Back to top
Leon



Joined: 11 Jul 2007
Posts: 408

PostPosted: Tue Mar 25, 2008 1:50 pm    Post subject:

Hi,

You cannot connect because the SystemID and Password you entered is the same. They should be different, please check this setting...

Leon
Back to top
raviram17



Joined: 25 Mar 2008
Posts: 5

PostPosted: Wed Mar 26, 2008 4:59 am    Post subject: WAP Push SMS

HI sir,

Thanks for the reply.

i got the sms in my mobile sir but the i am getting empty sms.

i need to change any settings sir or i need to contact my service provider.

and one more question sir,

i am not get the sent and receive messages detail in my Activexperts sms and pager toolkit sir

can u pls help me in this sir,

Thanks and with regards

Ravi
Back to top
Leon



Joined: 11 Jul 2007
Posts: 408

PostPosted: Wed Mar 26, 2008 8:05 am    Post subject:

Hello Ravi,

Can you post the SMPP log here ?
Are you using our smpp test gateway, or a commercial SMPP provider ?

Best regards,

Leon Steijger
ActiveXperts Software
Back to top
raviram17



Joined: 25 Mar 2008
Posts: 5

PostPosted: Wed Mar 26, 2008 9:00 am    Post subject: WAP PUSH SMS

hi sir,

This is my Log for last sent wap push sms:

[14:18:22] CONNECT [SMS and Pager Toolkit Build 4.1.7.1221], Server=[smpp.activexperts-labs.com:2775] , SystemID=[614C77D1DC], SourceTON=[1], SourceNPI=[1], AddressRange=[S], Result = [SUCCESS]


[14:18:22] BIND_TRANSCEIVER

PDU Length : 0x00000030
PDU Type : BIND_TRANSCEIVER
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000001
SystemID : 614C77D1DC
Password : 411A773AD4
System Type : SMPP
Interface Version : 0x34
TON : 0x01
NPI : 0x01
Address Range : S

[14:18:23] BIND_TRANSCEIVER_RESP

PDU Length : 0x00000017
PDU Type : BIND_TRANSCEIVER_RESP
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000001
System ID : AXSMPP

[14:18:23] Connected to server smpp.activexperts-labs.com

[14:19:23] ENQUIRE_LINK

PDU Length : 0x00000010
PDU Type : ENQUIRE_LINK
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000001

[14:19:23] ENQUIRE_LINK_RESP

PDU Length : 0x00000010
PDU Type : ENQUIRE_LINK_RESP
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000001

[14:20:23] ENQUIRE_LINK

PDU Length : 0x00000010
PDU Type : ENQUIRE_LINK
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000001

[14:20:23] ENQUIRE_LINK_RESP

PDU Length : 0x00000010
PDU Type : ENQUIRE_LINK_RESP
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000001

[14:21:02] Sending message...

[14:21:02] SUBMIT_SM

PDU Length : 0x0000007B
PDU Type : SUBMIT_SM
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000002
Service Type :
Source TON : 0x01
Source NPI : 0x01
Source Address : 31638740160
Destination TON : 0x01
Destination NPI : 0x01
Destination Address : 919444905964
ESM Flag : 0x40
Protocol ID : 0x00
Priority Flag : 0x00
Schedule Delivery Time :
Validity Period :
Registered Delivery : 0x00
Replace If Present : 0x00
Data Coding Scheme : 0xF5
Default Message ID : 0x00
Short Message Length : 67
User Data Header Len : 6
User Data Header : 05 04 0B 84 23 F0
Short Message Data :

0000 C1 06 01 AE 02 05 6A 00 45 C6 0C 03 77 77 77 2E ......j.E...www.
0010 61 63 74 69 76 65 78 70 65 72 74 73 2E 63 6F 6D activexperts.com
0020 00 07 01 03 41 63 74 69 76 65 58 70 65 72 74 73 ....ActiveXperts
0030 20 57 41 50 20 44 65 6D 6F 00 01 01 WAP Demo...


[14:21:02] SUBMIT_SM_RESP

PDU Length : 0x00000019
PDU Type : SUBMIT_SM_RESP
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000002
Message Reference : 00000221

[14:21:23] ENQUIRE_LINK

PDU Length : 0x00000010
PDU Type : ENQUIRE_LINK
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000002

[14:21:23] ENQUIRE_LINK_RESP

PDU Length : 0x00000010
PDU Type : ENQUIRE_LINK_RESP
PDU Result Code : ESME_ROK
PDU Sequence Number : 0x00000002


i am using ur smpp test gateway sir, and i am sending sms to sim cards providers like(Airtel,BSNL) sir.


Thanks and with regards,

RAVI
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum