Yate Community Forum

General Category => Yate users hangout place => Topic started by: rhsy on November 16, 2020, 02:58:35 AM

Title: How to route SMS to external PHP/Python module ?
Post by: rhsy on November 16, 2020, 02:58:35 AM
Hello

I want to route SMS to external module. but I don't find any information how to do.
Does anyone point me that ?

my expect use case is

1) User send SMS.
2) Yate received it.
3) Yate send it to external module
4) external module will be processed.
5) external module will be send SMS through Yate.
6) User received it.

for Step 5, there is example custom_sms.js / custom_sms.php.
but don't find any example / reference for step 3)

external module which I want to use is PHP or Python.
Title: Re: How to route SMS to external PHP/Python module ?
Post by: cc08 on December 28, 2020, 12:25:51 PM
An external module, if we are talking about the same thing, should track the cal.route message and filter by route_type == "msg".
In general, this is all described here: https://docs.yate.ro/wiki/Using_SIP_MESSAGE_or_how_to_enable_chat_messages_in_SIP