Sending SMS

Feb 2, 2010 at 9:01 AM

Hi I am from Switzerland

It's a very nice project. I saw a few implementations until now and this a real good one for someone who's only  an inthusiast in ISDN-Programming.

My question is:

Do you know how to send SMS via given SMSC? I think it's easy after the big work you've done in this project. These are only some CAPI-Commands but which?

Thanks for your Interest.

Balaban_s

Coordinator
Feb 3, 2010 at 7:23 AM
Hi BalabanS,
I need to check and may plan for next release.


On 2/2/10 12:01 PM, "BalabanS" <notifications@codeplex.com> wrote:



From: BalabanS

Hi I am from Switzerland

It's a very nice project. I saw a few implementations until now and this a real good one for someone who's only an inthusiast in ISDN-Programming.

My question is:

Do you know how to send SMS via given SMSC? I think it's easy after the big work you've done in this project. These are only some CAPI-Commands but which?

Thanks for your Interest.

Balaban_s



Read the full discussion online <http://capi.codeplex.com/Thread/View.aspx?ThreadId=82840&ANCHOR#Post284634> .


To add a post to this discussion, reply to this email (CAPI@discussions.codeplex.com <mailto:CAPI@discussions.codeplex.com?subject=[CAPI:82840]> )


To start a new discussion for this project, email CAPI@discussions.codeplex.com


You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings <https://capi.codeplex.com/subscriptions/thread/project/edit> on codePlex.com.


Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Feb 5, 2010 at 6:38 PM

Hi

thanks for your interest. I Tried this:

		private static void SendSMSText(object o)
		{
			Connection c = (Connection)o;
			ConnectionStream stream = new ConnectionStream(c);
			string sms = "0001000AA1704636191300083800540065007300740046007200650069007400610067002C00200035002E0020004600650062007200750061007200200032003000310030";
			 int len = sms.Length;
				byte[] buffer = new byte[len];

				for (int i = 0; i < len; i++)
				{
					buffer[i] = Convert.ToByte(sms[i]);
				}
					using (ConnectionWriter writer = new ConnectionWriter(stream))
					{
						using (MemoryStream ms = new MemoryStream(buffer))
						{
							writer.Write(ms);
						}
					}
					Thread.Sleep(25);

				


		}

 

but it didn't work.

I used this tools for generating the Message:http://www.codeproject.com/KB/mobile/smspdulib.aspx

And I am not sure that this encoding is right. especially for my SMSC.

 

sincerely

Balaban_s

Coordinator
Feb 6, 2010 at 5:49 AM
Hi BalabanS,
Will check it and will come back to you.

Regards
Michail


On 2/5/10 9:38 PM, "BalabanS" <notifications@codeplex.com> wrote:



From: BalabanS

Hi

thanks for your interest. I Tried this:

private static void SendSMSText(object o)
{
Connection c = (Connection)o;
ConnectionStream stream = new ConnectionStream(c);
string sms = "0001000AA1704636191300083800540065007300740046007200650069007400610067002C00200035002E0020004600650062007200750061007200200032003000310030";
int len = sms.Length;
byte[] buffer = new byte[len];

for (int i = 0; i < len; i++)
{
buffer[i] = Convert.ToByte(sms[i]);
}
using (ConnectionWriter writer = new ConnectionWriter(stream))
{
using (MemoryStream ms = new MemoryStream(buffer))
{
writer.Write(ms);
}
}
Thread.Sleep(25);




}


but it didn't work.

I used this tools for generating the Message:http://www.codeproject.com/KB/mobile/smspdulib.aspx

And I am not sure that this encoding is right. especially for my SMSC.



sincerely

Balaban_s



Read the full discussion online <http://capi.codeplex.com/Thread/View.aspx?ThreadId=82840&ANCHOR#Post286371> .


To add a post to this discussion, reply to this email (CAPI@discussions.codeplex.com <mailto:CAPI@discussions.codeplex.com?subject=[CAPI:82840]> )


To start a new discussion for this project, email CAPI@discussions.codeplex.com


You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings <https://capi.codeplex.com/subscriptions/thread/project/edit> on codePlex.com.


Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Coordinator
Feb 6, 2010 at 6:42 AM
Hi BalabanS,
SMS service depends from the provider. Standard is
ES 201 912. I will contact you via PM for more info.





On 2/5/10 9:38 PM, "BalabanS" <notifications@codeplex.com> wrote:



From: BalabanS

Hi

thanks for your interest. I Tried this:

private static void SendSMSText(object o)
{
Connection c = (Connection)o;
ConnectionStream stream = new ConnectionStream(c);
string sms = "0001000AA1704636191300083800540065007300740046007200650069007400610067002C00200035002E0020004600650062007200750061007200200032003000310030";
int len = sms.Length;
byte[] buffer = new byte[len];

for (int i = 0; i < len; i++)
{
buffer[i] = Convert.ToByte(sms[i]);
}
using (ConnectionWriter writer = new ConnectionWriter(stream))
{
using (MemoryStream ms = new MemoryStream(buffer))
{
writer.Write(ms);
}
}
Thread.Sleep(25);




}


but it didn't work.

I used this tools for generating the Message:http://www.codeproject.com/KB/mobile/smspdulib.aspx

And I am not sure that this encoding is right. especially for my SMSC.



sincerely

Balaban_s



Read the full discussion online <http://capi.codeplex.com/Thread/View.aspx?ThreadId=82840&ANCHOR#Post286371> .


To add a post to this discussion, reply to this email (CAPI@discussions.codeplex.com <mailto:CAPI@discussions.codeplex.com?subject=[CAPI:82840]> )


To start a new discussion for this project, email CAPI@discussions.codeplex.com


You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings <https://capi.codeplex.com/subscriptions/thread/project/edit> on codePlex.com.


Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Coordinator
Feb 8, 2010 at 6:28 AM

Hi Balaban,

How you setup the connection? Can you post parameters?

 

Regards

Michail

Feb 8, 2010 at 8:45 AM

Hi Michail
I use the default Parameters:
textBoxCalledNumber.Text = SMSCNumber

c.Connect(string.Empty,

textBoxCalledNumber.Text , CIPServices.Telephony, B1Protocol.HDLC64BFN, B2Protocol.Transparent, B3Protocol.Transparent);

regards

Balaban Senol

----- Original Message -----
From: [email removed]
To: [email removed]
Sent: Monday, February 08, 2010 8:28 AM
Subject: Re: Sending SMS [CAPI:82840]

From: michail

Hi Balaban,

How you setup the connection? Can you post parameters?

Regards

Michail

Feb 8, 2010 at 10:26 AM
Edited Feb 8, 2010 at 10:27 AM

I do it this way

ETSI ES 201 912 page 12:

5.2.1 SM Submission from SM-TE to SM-SC

 

To establish a circuit-switched connection to the SM-SC, the SM-TE seizes the line and dials the number of the SM-SC.

If the SM-TE is connected to a PSTN, it uses the pulse or tone (DTMF) dialling method. In case of ISDN access, the

dialling information is transmitted to the network via D-Channel messages

 

regards

Senol