Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

Need more detail in Voicemail XML File

Discussion in '3CX Phone System - General' started by abss1976, Jan 5, 2010.

Thread Status:
Not open for further replies.
  1. abss1976

    Joined:
    Jan 5, 2010
    Messages:
    1
    Likes Received:
    0
    Hello all,

    Been using 3CX for about a month now and find it to be a very capable solution. Here is the only scenario with 3CX I am struggling with and I hope someone out there can recommend a solution or point me in the right direction -

    I have a "catch-all" extension where any of over 500 phone numbers will route to, and this extension automatically goes to voicemail. The purpose of this is simple - when prospective customers call, we want them to hear a very brief intro (15 seconds) and then leave their information. Currently, this works perfectly and voicemails are left in the extension's voicemail folder. The challenge is that the voicemail only indicates the caller ID and not the phone number they originally dialed. The XML file looks like this:

    <?xml version="1.0" encoding="utf-8"?>
    <VOICEMSG>
    <FILE DURATION="18000" CALLER="+12125551212">vmail_+112125551212_10000_20100104223119.wav</FILE>
    <CREATED>20100104223119.71</CREATED>
    <FLAGS>0</FLAGS>
    </VOICEMSG>

    Now, assuming the customer called in to "+13475551212", I would like the voicemail XML to look like this:

    <?xml version="1.0" encoding="utf-8"?>
    <VOICEMSG>
    <FILE DURATION="18000" CALLER="+12125551212" CALLEDINNUMBER="+13475551212">vmail_+112125551212_10000_20100104223119.wav</FILE>
    <CREATED>20100104223119.71</CREATED>
    <FLAGS>0</FLAGS>
    </VOICEMSG>

    Even better would be some identifer that told me which call record in the CallHistory and CallDetail tables this voicemail corresponded to. For example, if the CallDetail ID was "12345", I would like the XML file to say:

    <?xml version="1.0" encoding="utf-8"?>
    <VOICEMSG>
    <FILE DURATION="18000" CALLER="+12125551212" CALLRECORDID="12345">vmail_+112125551212_10000_20100104223119.wav</FILE>
    <CREATED>20100104223119.71</CREATED>
    <FLAGS>0</FLAGS>
    </VOICEMSG>

    Alternatively, if there is somewhere in the database that indicates the filename of the voicemail that was left for a specific call, this would also be perfect.

    I have checked the database and while I notice an approximate offset of about 2 seconds between the voicemail being recorded and the endtime for the call record, this is not an exact method of correlating the voicemail to the caller record. Right now this is the only method I have for connecting the call record to the voicemail, and while it works for low volumes of calls, scalability is a concern when calls are happening in parallel.

    Any and all suggestions very much appreciated. I don't mind writing code to accomplish this, nor do I mind to share it with everyone once it is working. I just need some pointers as to the best way to proceed. Thanks all,

    Beau
    abss1976@gmail.com
     
Thread Status:
Not open for further replies.