Adding a custom HTTP thrower

104 views
Skip to first unread message

Justin Jereza

unread,
Oct 19, 2016, 10:10:43 PM10/19/16
to Jasmin SMS Gateway
Hello.

I've been reading the documentation for the past few days and as I understand it, I'll need to implement a custom HTTP thrower to connect Jasmin to my telco using the HTTP API they gave me. My objective is to have Jasmin receive messages via SMPP and then forward it through the said HTTP API.

The problem is I don't know where to begin and the documentation seems unclear to me in this regard. It appears that jasmin.routing.throwers.deliverSmThrower.http_deliver_sm_callback implements building the URL for the HTTP request, making the request itself, and processing the response.

Does Jasmin have any facility where I can put a custom HTTP thrower in to extend jasmin.routing.throwers.deliverSmThrower or is modifying that class to suit my API requirements the only way? I'd appreciate any pointers on how to do this in as clean a manner as possible. TIA.

Bruno C

unread,
Oct 20, 2016, 1:21:16 PM10/20/16
to Jasmin SMS Gateway
Justin, throwers (for deliver and dlr) are meant to handle traffic going downstream (to your apps), they cant handle upstream traffic.

As Jasmin doesnt provide http upstream connector, it is possible to make a workaround and implement a consumer to catch messages and send them to provider, we do provide this integration in commercial model, please let me know if you are interested.

Justin J

unread,
Oct 21, 2016, 4:15:22 AM10/21/16
to Jasmin SMS Gateway
Hello Bruce.

Thank you for the response. We currently do not expect high throughput requirements so a hackish solution should be good enough. My telco's HTTP API seems kind of inefficient anyway so I expect I'd be limited by that. By consumer do you mean something that will consume messages off of AMQP and routing from smpps to a null connector? It seems there are many possible solutions from what I've seen reading the code.

I currently don't have a budget for commercial support on this but I am interested in at least learning how much it will cost. I'll send you an email regarding that.
Reply all
Reply to author
Forward
0 new messages