Author Topic: How to route SMS to external PHP/Python module ?  (Read 162 times)

rhsy

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to route SMS to external PHP/Python module ?
« 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.

cc08

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: How to route SMS to external PHP/Python module ?
« Reply #1 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
« Last Edit: December 28, 2020, 12:32:54 PM by cc08 »