Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Send SMS: FROM Parameter
sp_NewPost Add Reply sp_NewTopic Add Topic
July 3, 2013
8:33 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

If you send the configuration file (menu options File-Export-Configuration) and the complete gateway script that you use to dms@diafaan.com I will have a look to see what is missing.

Regards, Henk

July 3, 2013
1:57 pm
emman
Guest
Guests

Yes, Henk that's what I did. I sent the message via the scripting connector. But the message did not place the company name.

July 3, 2013
1:30 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Changing the From Address does not work with GSM modems. Messages sent with a mobile phone or GSM modem always have the mobile phone number as their sender id, this cannot be changed.

The following code for the "OnMessageToSend" function changes the message with the company name prefix and dispatches it to the GSM Modem Gateway, You have to set the message routing of the connectors to the Scripting Gateway only:

private void OnMessageToSend(string recordId, string toAddress, string fromAddress,
string message, string messageType)
{
PostDispatchMessage(recordId, toAddress, fromAddress, "[Company name] " + message,
messageType, "GSM Modem Gateway", "");
}

Regards, Henk

July 3, 2013
12:52 pm
emman
Guest
Guests

Hello Henk, have repaired the font error. I was able to access C# editing. Here's the code:

}
private void PostSendMessage(string toAddress, string fromAddress, string messageText,
string messageType, string gateway, string userId, string userInfo, int priority)
{
Hashtable messagePacket = new Hashtable();

messagePacket.Add("PacketName", "MessageOut");
messagePacket.Add("To", toAddress);
messagePacket.Add("From", "EC Mobile");
messagePacket.Add("Message", messageText);
messagePacket.Add("MessageType", messageType);
messagePacket.Add("Gateway", gateway);
messagePacket.Add("UserId", userId);
messagePacket.Add("UserInfo", userInfo);
messagePacket.Add("Priority", priority.ToString());
host.PostMessagePacket(messagePacket);
}

But the From is not showing in the text message. There is no compilation error. Thanks for your help.

regards,
emman

July 3, 2013
11:47 am
emman
Guest
Guests

My Windows is Vista Home

July 3, 2013
11:35 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

This error is an indication that there is something wrong with the installation of the Windows 'Courier New' font in your computer. It might be necessary to re-install the Windows fonts again to solve this problem.

We have tested Diafaan SMS Server on all current versions of Windows and never ran into this problem, can you tell me which Windows version do you use?

Regards, Henk

July 3, 2013
10:58 am
emman
Guest
Guests

Thanks, Henk. I installed a scripting gateway. When I click the Edit Script, I receive a message something like this:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Font 'Courier New' does not support style 'Regular'.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)
at (String , Single , FontStyle , GraphicsUnit , Byte )
at A.AJB.A(String , Single , FontStyle , GraphicsUnit , Byte )
at A.KT.B()
at A.KT..ctor()
at A.YT.A()
at A.YT..ctor()
at A.ZT.A(Object , LinkLabelLinkClickedEventArgs )
at System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e)
at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.LinkLabel.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&

How to solve this?

Regards,
emman

July 3, 2013
10:27 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Emman,

The basic- and full edition of Diafaan SMS Server supports gateway scripting which can be used to change the message before it is sent. With a simple script, the company name can be automatically added to each message. There is some basic information about the Scripting Gateway in the advanced routing page of the online manual:

http://www.diafaan.com/manuals/diafaansmsserver/index.htm?route_messages.htm

Example code:

private void OnMessageToSend(string recordId, string toAddress, string fromAddress,
string message, string messageType)
{
PostDispatchMessage(recordId, toAddress, fromAddress, "[Company name] " + message,
messageType, "GSM Modem Gateway", "");
}

Regards, Henk

July 3, 2013
9:42 am
emman
Guest
Guests

hello, Henk. OK assuming the SIM number is OK as the sender ID, is it possible to place a standard from: [Company Name] for every message sent to through Diafaan? Thanks...

July 7, 2011
10:33 pm
Henk Helmantel
Guest
Guests

Hi Tom,

SMS messages sent from a GSM phone or GSM modem always have the phone number from the SIM card as the sender address. Only SMS messages sent through an SMS provider with direct access to an SMS Central can have an alternative sender address.

Clickatell is an SMS provider based in South Africa, Diafaan SMS Server can use the Clickatell internet service to send SMS messages with a different sender address and even with a text as the sender address. However, to prevent abuse, Clickatell has to pre-approve the sender address(es) you want to use.

Regards,
Henk

July 7, 2011
8:53 pm
Tom
Guest
Guests

Hi, what is clickatel gateway ? I'd would like to send text-messages using my usb-connected phone or 3g usb moded with sim card.. but... i do not want sender to be the SIM card number, can i change the sender name ? so users will get from "ANYTHING" without an option to reply to that message ?

April 1, 2011
9:26 am
Henk Helmantel
Guest
Guests

Hi Ricardo,

GSM modems do not have the ability to send messages with a modified sender address. When you send a message with a GSM modem using Diafaan SMS Server, the from field is ignored.

The from field can be used by the Clickatell Gateway and some of the protocols in the Paging Gateway. Clickatell requires you to pre-approve the sender id's you want to use in order to prevent id spoofing.

Regards, Henk

March 31, 2011
10:07 pm
Ricardo Ribeiro
Guest
Guests

Hi.

We are interested in buying the Diafaan SMS Server.

We are testing using HTTP API COMMANDS.

The messages are successfully sent by the software, and received the phone.

However, even adding the parameter from, the submission form continues to appear as the sender the GSM number of CHIP.

Is there anything we can do to send SMS with Sender ID?

Thanks.

Ricardo

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 672

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1141

Posts: 3899

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1488