17

Oct

twiliofaces new release 1.2.4

Hightlights of this version:
- reorganization of code to better describe what the code does:
[twiliofaces doers]
    org.twiliofaces.cdi.doers
    org.twiliofaces.cdi.doers.simple
[twiliofaces events to track the twiml code generated and to track the callback event]
    org.twiliofaces.cdi.event
[twiliofaces cdi extensions for controll the @twilioscope and for read after the application startup the twilio account properties]
    org.twiliofaces.cdi.extension
    org.twiliofaces.cdi.extension.util
[twiliofaces cdi producer that valorizes all @inject instances in your code]
    org.twiliofaces.cdi.producer
    org.twiliofaces.cdi.producer.util
[twiliofaces components to generate jsf tags]
    org.twiliofaces.faces.component
    org.twiliofaces.faces.component.api
    org.twiliofaces.faces.component.api.util
[twiliofaces cdi annotations]
    org.twiliofaces.inject.configuration
    org.twiliofaces.inject.configuration.qualifier
    org.twiliofaces.inject.context
    org.twiliofaces.inject.notification
    org.twiliofaces.inject.notification.sip
[twiliofaces web filter to read the twiml code generated from jsf tags]
    org.twiliofaces.web.callback
    org.twiliofaces.web.filter
    org.twiliofaces.web.filter.util
[twiliofaces web listener to read the account parameters inserted in web.xml (deprecated way)]
    org.twiliofaces.web.listener
    org.twiliofaces.web.listener.util

- created twiliofaces doers - java controllers to wrap the twilio-sdk rest activities, divided in different areas:
    Caller (to make new calls)
    CallReporter (to read history of calls)
    Client (to generate twilio javascript token)
    MsgReporter (to read the history of messages)
    NotificationReporter (to read the history of messages)
    RecordingReporter (to manage the recordings)
    Sender (to send messages)
    TranscriptionReporter  (to manage the trascriptions)
    Triggerator (to manage the triggers)
    UsageReporter (to read the usage)

- deprecated the use of  context parameters in web.xml:

        TWILIO_SID,  TWILIO_TOKEN , TWILIO_NUMBER ,APPLICATION_SID
   
YOU MUST USE the accounts.properties file!!

- use of accounts.properties (it's a simple properties file that you must insert in the classpath of the application - WEB-INF/classes path) to configure one or more accounts, below the syntax of this files:
twilio.accounts=default,primo
# default account
account.default.twilioSid=1111
account.default.twilioToken=222
account.default.twilioNumber=333
account.default.applicationSid=444
#primo account
account.primo.twilioSid=5555
account.primo.twilioToken=666
account.primo.twilioNumber=777
account.primo.applicationSid=888

- added a new java cdi extension (TwilioConfigExtension) to read the accounts.properties file at startup of application (replacing the web.xml configuration parameters).

comments powered by Disqus

Contact

Do you want collaborate with us?
Do you like this project?
Questions?
Please send me an email!

fiorenzo.pizza@gmail.com

Github code

Fork the twiliofaces repository on GitHub
and clone it to your local PC.

Get Started

Copy the Twiliofaces JAR file into your /WEB-INF/lib directory, or include all required Maven dependencies in your pom.xml!