Email Confirmation

Discussion in 'General' started by emenny81, Nov 11, 2009.

  1. emenny81

    Joined:
    Nov 5, 2009
    Messages:
    24
    Likes Received:
    0
    Hi guys Im having some weird problems and I wanted to check with you guys to see if my logic was correct, I want to start using Elastix as a fax server, just send and receive faxes all day long. Right now im using a Multitech analog fax server. I have about 250 different fax numbers that go to different people.

    with that said using the same logic I used with the multi tech I decided to start testing Elastix with CallWithus.

    I bought two dids to begin testing.

    from the tests that I've performed right now Im able to send and receive faxes no problem.

    Iam having some routing issues but I've opened up another thread on the newbie forum.

    Right now what I want to accomplish is be able to configure all my users to send out faxes using elastix.

    As of now I've only setup two fax users(virtual fax).

    What is happening is that when I setup Winprint the user credentials (VirtualFaxUser2) and I try to send out a fax using this user, it sends the job with VirtualFaxUser1, on the multitech if im sending a fax as VirtualFaxUser2 it sends the fax as VirtualFaxUser2. What's happening if I set a notify email on Winprint it always sends the confirmation email to the email address set on VirtualFaxUser1.

    I dont really care which VirtualFaxUser it uses as long as the confirmation email gets sent out to the correct person Im good.

    I dont want to get all fancy with avantfax because multitech uses a similar way of sending faxes, you print Select FAX, your receive your confirmation and you are done, I want to KISS (keep it simple stupid)

    Im running Elastix 1.6(64bit) I have not runned any updates on the box or anything. and this is what comes up on CLI

    Thanks for your help.


    [root@elastix ~]# asterisk -rvvvv
    asterisk -rvvvv
    Asterisk 1.4.26.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
    Created by Mark Spencer <markster@digium.com>
    Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
    This is free software, with components licensed under the GNU General Public
    License version 2 and other licenses; you are welcome to redistribute it under
    certain conditions. Type 'core show license' for details.
    =========================================================================
    == Parsing '/etc/asterisk/asterisk.conf': Found
    == Parsing '/etc/asterisk/extconfig.conf': Found
    Connected to Asterisk 1.4.26.1 currently running on elastix (pid = 3161)
    Verbosity is at least 4
    == Parsing '/etc/asterisk/manager.conf': Found
    == Parsing '/etc/asterisk/manager_additional.conf': Found
    == Parsing '/etc/asterisk/manager_custom.conf': Found
    == Manager 'admin' logged on from 127.0.0.1
    == Parsing '/etc/asterisk/manager.conf': Found
    == Parsing '/etc/asterisk/manager_additional.conf': Found
    == Parsing '/etc/asterisk/manager_custom.conf': Found
    == Manager 'admin' logged on from 127.0.0.1
    == Manager 'admin' logged off from 127.0.0.1
    == Manager 'admin' logged off from 127.0.0.1
    -- Accepting AUTHENTICATED call from 127.0.0.1:
    > requested format = slin,
    > requested prefs = (),
    > actual format = ulaw,
    > host prefs = (ulaw|alaw|gsm),
    > priority = mine
    -- Executing [918885331585@from-internal:1] Macro("IAX2/6101-11399", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("IAX2/6101-11399", "AMPUSER=6101") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("IAX2/6101-11399", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("IAX2/6101-11399", "0|Set|REALCALLERIDNUM=6101") in new stack
    -- Executing [s@macro-user-callerid:4] Set("IAX2/6101-11399", "AMPUSER=6101") in new stack
    -- Executing [s@macro-user-callerid:5] Set("IAX2/6101-11399", "AMPUSERCIDNAME=menriquez") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("IAX2/6101-11399", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("IAX2/6101-11399", "AMPUSERCID=6101") in new stack
    -- Executing [s@macro-user-callerid:8] Set("IAX2/6101-11399", "CALLERID(all)="menriquez" <6101>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("IAX2/6101-11399", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("IAX2/6101-11399", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("IAX2/6101-11399", "Using CallerID "menriquez" <6101>") in new stack
    -- Executing [918885331585@from-internal:2] Set("IAX2/6101-11399", "_NODEST=") in new stack
    -- Executing [918885331585@from-internal:3] Macro("IAX2/6101-11399", "record-enable|6101|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("IAX2/6101-11399", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("IAX2/6101-11399", "recordingcheck|20091110-185904|1257908344.41") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20091110-185904|1257908344.41: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("IAX2/6101-11399", "") in new stack
    -- Executing [918885331585@from-internal:4] Macro("IAX2/6101-11399", "dialout-trunk|1|18885331585||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("IAX2/6101-11399", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("IAX2/6101-11399", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("IAX2/6101-11399", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("IAX2/6101-11399", "DIAL_NUMBER=18885331585") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("IAX2/6101-11399", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("IAX2/6101-11399", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("IAX2/6101-11399", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("IAX2/6101-11399", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("IAX2/6101-11399", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("IAX2/6101-11399", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("IAX2/6101-11399", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("IAX2/6101-11399", "0|Set|REALCALLERIDNUM=6101") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("IAX2/6101-11399", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("IAX2/6101-11399", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("IAX2/6101-11399", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("IAX2/6101-11399", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("IAX2/6101-11399", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("IAX2/6101-11399", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("IAX2/6101-11399", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("IAX2/6101-11399", "0|SetCallerPres|prohib_passed_screen") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("IAX2/6101-11399", "0|AGI|fixlocalprefix") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("IAX2/6101-11399", "OUTNUM=18885331585") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("IAX2/6101-11399", "custom=SIP/MDOut") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("IAX2/6101-11399", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("IAX2/6101-11399", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("IAX2/6101-11399", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("IAX2/6101-11399", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("IAX2/6101-11399", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("IAX2/6101-11399", "SIP/MDOut/18885331585|300|") in new stack
    -- Called MDOut/18885331585
    -- SIP/MDOut-083d0660 is making progress passing it to IAX2/6101-11399
    -- SIP/MDOut-083d0660 answered IAX2/6101-11399
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Executing [h@macro-dialout-trunk:1] Macro("IAX2/6101-11399", "hangupcall|") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("IAX2/6101-11399", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("IAX2/6101-11399", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("IAX2/6101-11399", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("IAX2/6101-11399", "") in new stack
    == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'IAX2/6101-11399' in macro 'hangupcall'
    == Spawn h extension (macro-dialout-trunk, h, 1) exited non-zero on 'IAX2/6101-11399'
    == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'IAX2/6101-11399' in macro 'dialout-trunk'
    == Spawn extension (from-internal, 918885331585, 4) exited non-zero on 'IAX2/6101-11399'
    -- Hungup 'IAX2/6101-11399'
    elastix*CLI>
     
  2. speedy3k

    Joined:
    Feb 15, 2009
    Messages:
    48
    Likes Received:
    0
  3. kongar

    Joined:
    Oct 16, 2009
    Messages:
    3
    Likes Received:
    0
    Check
    bugs.elastix.org/view.php?id=162
     
  4. emenny81

    Joined:
    Nov 5, 2009
    Messages:
    24
    Likes Received:
    0
    Ok im going to do a new install with the latest iso, to check this. thanks.
     
  5. emenny81

    Joined:
    Nov 5, 2009
    Messages:
    24
    Likes Received:
    0
    Ok I finally got it the way I wanted it to work, if any of you run into this let me know.

    recap:

    I wanted to receive only hylafax confirmation but I also wanted the faxes to come up on the fax visor, since Im not a programer(only simple scripts) I went throught the notify-elastix.php and didn't find the code that added the successful faxes to the fax visor, so I did the follow, thanks to the the help from the the guys at the mantis(bugs) forum.

    I executed /bin/notify in the /bin/notify.php, this is how I did it.

    etc/config:
    NotifyCmd: bin/notify.php

    And add a section in notify.php to call hylafax's notify:
    -----------------
    if(file_exists("bin/notify"))
    echo `bin/notify $cmdLine`;
    -----------------

    ...Just before the ending "?>"

    This is nuno's code(I dont know who you are but thanks for your help).

    After I added that I tested and indeed I was receiving both elastix confirmation and hylafax confirmation, so to disable the elastix email confirmation I modified the code on /bin/notify-elastix.php

    I just modified the section where it sends the email and left everything else untouched. its section 3 "Envio email"

    once I did that it didn't send the elastix confirmation it sent the hylafax only and it add the sent fax to the fax visor, which is what I wanted.

    Thanks for all your help, now to work on the incoming part :)
     

Share This Page