trigger elastix by inbound email?

Discussion in 'General' started by Patrick_elx, Feb 1, 2009.

  1. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    Is there a FAQ or how to for dummies to trigger some action/context with an email sent to elastix.


    I would like to avoid opening the https port to the outside also I would like to be able to link embedded email capable applications to elastix.

    Example: send a voice message when my burglar alarm has some issues or if my backup server has a hard drive failure.
     
  2. telecomtechnician

    Joined:
    Jan 8, 2008
    Messages:
    422
    Likes Received:
    0
    Hi there

    This is absolutly possible, but there is some programming and modification of the elastix interface involved. That means, PHP, MYSQL and other programs to touch.

    Take a look at the agenda TAB and start playing with it.

    Waiting for your comments

    David Medina
     
  3. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
    Patrick, if you want to send a mail on each event (alarm, ...Etc). I don't think that it's Elastix, but Linux, no?
    With Elastix, it's possible to send a message (voice) to the phone on event, (A alarm -> send a phone number).
    It's right?
    Like David say it, you can use the same way that Agenda. Leave a file into /var/spool/asterisk/outgoing/
     
  4. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    ok, now the question will be how can I execute a macro when postfix receive an email in a specific mailbox to be able to format a proper event message in the outgoing asterisk folder?
     
  5. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    I'm trying to play with the event.call files without success so far.

    I've tried to modify an event.call file that was created by the agenda by only changing the time on it (touch -t), but nothing is happening at the new specific time.

    Is there anything I'm missing? Or it there another file that need to be modified
     
  6. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    who owns the event.call file?
    does it "disappear" at the time it was touched to?
     
  7. wiseoldowl

    Joined:
    Aug 19, 2008
    Messages:
    251
    Likes Received:
    0
  8. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    the file is owned by asterisk:asterisk
    and the file will disappear after the initial time set up by the agenda module, not the one set up by touch -t
     
  9. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    by looking at the event_submit.php, the application is also adding the event in the sql database.

    is asterisk looking at the database in addition of the outgoing folder?

    still investigating.
     
  10. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    thanks to wiseoldowl I found the problem.

     

Share This Page