Receiving SMS and routing to an email: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
</pre>
</pre>


Add if not and reload sip module
Add if not, then add this to the [general] section of sip.conf and reload the sip module


== API ==
In your DID, configure the protocol SIP MESSAGE and its destinations


In your Provider, configure the URL https://.../pbx/receivesms.php
[[file:didsipmessage.png|400px]]
 
== Custom API ==
 
In your SMS Provider, configure the URL https://.../pbx/receivesms.php


[[file:twilioincomingdid.png|400px]]
[[file:twilioincomingdid.png|400px]]
So when your provider needs to deliver you a SMS, it will call your URL and provide all data.
In your DID you need to configure which fields are mapped with each info:
[[file:didscustoapi.png|400px]]
If you provider is twilio, you can use their protocol, in this case the fields are already mapped and there is no other need.
[[file:didstwilio.png|400px]]

Latest revision as of 08:54, 16 October 2016

There are two ways to receive SMS. You can receive them as SIP MESSAGE, or you can have them delivered from your provider using an API.

SIP MESSAGE

As first step, please check if your system can receive messages using SIP protocol. In sip.conf check if you have the following rows:

accept_outofcall_message=yes
outofcall_message_context=astsms
auth_message_requests = yes

Add if not, then add this to the [general] section of sip.conf and reload the sip module

In your DID, configure the protocol SIP MESSAGE and its destinations

Didsipmessage.png

Custom API

In your SMS Provider, configure the URL https://.../pbx/receivesms.php

Twilioincomingdid.png

So when your provider needs to deliver you a SMS, it will call your URL and provide all data.

In your DID you need to configure which fields are mapped with each info:

Didscustoapi.png

If you provider is twilio, you can use their protocol, in this case the fields are already mapped and there is no other need.

Didstwilio.png