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
Routing from web connector to smpp connector.
sp_NewPost Add Reply sp_NewTopic Add Topic
January 24, 2020
11:55 am
David Wylie
Guest
Guests

>> The connector list parameter can only limit the routing options,
>> it cannot route the messages to a connector that is not in the original routing table.

That would kind of work I think, as it's broadly the same thing in my use case, however ...

>> If you are interested I can send you a plugin for the Scripting Gateway and a script
>> that uses the option.

Yes please! Anything that furthers my understanding of what I can do in the scripts is always welcome, and that would, I think, be perfect for me.

Thank you.

January 24, 2020
11:49 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

At the moment the script in the Scripting Gateway does not offer a way to route the messages to a specific connector. It is possible to do this with an HTTP Callback script by returning the 'connector_list' parameter in the response to the 'message_in' HTTP callback call. The connector list parameter can only limit the routing options, it cannot route the messages to a connector that is not in the original routing table.

It is not difficult to add an option to the Scripting Gateway to be able to set the connector list in the script itself. If you are interested I can send you a plugin for the Scripting Gateway and a script that uses the option.

Regards, Henk

January 24, 2020
9:46 am
David Wylie
Guest
Guests

I might be over thinking this, but ...

Each customer that comes in to my scripting gateway may have to go over a different connector. I was wondering how I would choose a specific connector in the script, if that's even possible.

I could obviously start a new scripting gateway for each customer, but that just seems wasteful to me to start so many http servers. Maybe there's not much impact? I don't know.

Thanks,

January 24, 2020
9:33 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

In the 'Gateways' settings of each connector, you can specify from which gateways the connector receives inbound messages. You can see the routing in the status window of the gateways, the inbound messages are routed to all connectors with a blue arrow in the routing icon.

Regards, Henk

January 23, 2020
7:50 pm
David Wylie
Guest
Guests

How does this mechanism choose the connector to send the message over? I guess it uses the connector that has the scripting gateway in the "gateways" part of the config.

Is there any way to override this and choose the connector programatically in the script?

January 20, 2020
2:21 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Thanks for the notification, I have updated the script in the Scripting Pack to fix this issue.

Regards, Henk

January 18, 2020
7:26 pm
David Wylie
Guest
Guests

Just to say I put the word "redacted" in angle brackets for the http address, and they got stripped.

January 18, 2020
7:25 pm
David Wylie
Guest
Guests

This works great, apart from one thing.

If I do this, the first field is blank, whatever it is (in this example, "to") :
http://?to=1234567&message=Test&from=441234567

but if i do this - put a dummy first field in - then all is good :
http://?dummy=blah&to=1234567&message=Test&from=441234567

January 17, 2020
6:02 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello David,

The easiest way to do this is to use a Scripting Gateway with a script that starts an HTTP server and routes the messages back to an SMPP Connector. There is no need to use a Web Connector for this functionality.

The Scripting Pack that you can download from the download page of this website contains a script that starts an HTTP server. You can find it in the folder 'GatewayScripts\ClickatellCallbackScript' of the Diafaan_Scripting_Pack.zip file. The script is made for inbound messages from the Clickatell SMS service but you can use it without change for your application as well.

With this script, the SMS messages are forwarded to the SMPP Connector as inbound message and sent as 'deliver_sm' SMPP packets to the SMPP client.

Regards, Henk

January 17, 2020
4:27 pm
David Wylie
Guest
Guests

Actually, I assume I must connect the web conne3ctor to a scripting gateway to forward the message back to the smpp connector?

January 17, 2020
4:25 pm
David Wylie
Guest
Guests

I have a need to send inbound messages arriving on a Web connector to an SMPP customer who has to connect to me (via an SMPP connector).

I can only see options to send to a gateway. Is there a way to achieve this?

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
6 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