route from opensmppbox to internal API
Хиль Эдуард <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.user |
|---|---|
| Message-ID | <[email protected]> |
Hi there!
Let's imagine, that i have on my kannel one smsc and one sms-service with config:
group = sms-service
keyword = default
post-url = "http://127.0.0.1/sendsms.php?src=%P&dst=%p&time=%t&coding=%c&smsc=%n&charset=%C"
concatenation = true
max-messages = 0
In this case, when kannel calls this API, he used POST method and on this API (on PHP page) i have some code "file_get_contents('php://input')" where i can get text of SMS from html-body. All works correct and i'm satisfied.
But now, i have opensmppbox and i must somehow route sms from opensmppbox to this API. I have find 2 methods: with "smsc http" and "smsc http with system-type generic", but in this both cases kannel uses GET method, and i must use %b variable that put text in http link (for example: ...&smsc=%n&charset=%C%text=%b), but i can't, cuz there are length and charset troubles - i can't put on my link sms message with over 900 symbols with strange codepage :'(
So, maybe there are some other methods to route SMS from opensmppbox to kannel sms-service? Or maybe kannel can use POST method not only on sms-service group? --
Best regards,
Me.