Difference between revisions of "Callback over Email"
Line 1: | Line 1: | ||
= Description = | |||
This function receives email and initiates callback using details in this email. | This function receives email and initiates callback using details in this email. | ||
Line 29: | Line 31: | ||
MOR_PARAM2 first_number | MOR_PARAM2 first_number | ||
MOR_PARAM3 second_number | MOR_PARAM3 second_number | ||
= Inner mechanics = | |||
1. SMS gateway sends email to specified address (example callback@hostname.com) in following format: | |||
CallerID change: | |||
* Email subject: change | |||
* Email body: '''old callerid'''\n'''new callerid''', (\n) means new line | |||
Callback inititation: | |||
* Email subject: callback | |||
* Email body: | |||
MOR_PARAM1 auth_callerid | |||
MOR_PARAM2 first_number | |||
MOR_PARAM3 second_number | |||
2. Postfix server gets email and sends to /usr/local/mor/mor_email2callback.sh script | |||
This is configured in /etc/aliases file: | |||
callback: "|/usr/local/mor/mor_email2callback.sh" | |||
3. /usr/local/mor/mor_email2callback.sh script parses email and sends everything to MOR | |||
4. MOR initiates callback | |||
<br><br> | <br><br> | ||
=See also= | |||
See also | |||
* [[Callback]] | * [[Callback]] | ||
* [http://193.138.191.205/trac/wiki/EmailCallbackSpecification Callback over Email technical specification] | * [http://193.138.191.205/trac/wiki/EmailCallbackSpecification Callback over Email technical specification] |
Revision as of 11:24, 19 October 2009
Description
This function receives email and initiates callback using details in this email.
Device can have one CallerID from which is able to initiate Callback.
Admin setups email box which should be monitored for callback execution.
SMS to initiate callback can look like:
For CallerID change: change*new_callerid
For callback inititation:
- first_number#second_number
- first_number - will ask destination
Then SMS gateway should send email to MOR to initiate callback in following format:
CallerID change:
- Email subject: change
- Email body: old callerid\nnew callerid, (\n) means new line
Callback inititation:
- Email subject: callback
- Email body:
MOR_PARAM1 auth_callerid MOR_PARAM2 first_number MOR_PARAM3 second_number
Inner mechanics
1. SMS gateway sends email to specified address (example callback@hostname.com) in following format:
CallerID change:
- Email subject: change
- Email body: old callerid\nnew callerid, (\n) means new line
Callback inititation:
- Email subject: callback
- Email body:
MOR_PARAM1 auth_callerid MOR_PARAM2 first_number MOR_PARAM3 second_number
2. Postfix server gets email and sends to /usr/local/mor/mor_email2callback.sh script
This is configured in /etc/aliases file:
callback: "|/usr/local/mor/mor_email2callback.sh"
3. /usr/local/mor/mor_email2callback.sh script parses email and sends everything to MOR
4. MOR initiates callback