02-21-2011 02:35 AM - edited 03-14-2019 07:26 AM
Hi,
I am trying to create an UCCX script which sends an email to the caller. Also i want to interact with my database using the http service. i don`t want to directly interact with my DB , i am using a web service which will interact and return the values.
Could anyone please help me to achive it. i have already created an sample script to send an email including attachment but its getting to unsuccessful.
the email server is reachable, but not able to find the exact cause.
Thanks ,
Veer Pratap Singh
02-21-2011 10:13 PM
Hi Veer,
You said the SMTP server is reachable, but maybe there could be a policy that not every IP address could relay an email, can you check that in the email server please?...also check if there is any attempt of the UCCX server to connect to the email server when triggering the script. Also try to telnet port 25 of the email server from the UCCX.
Gabriel.
02-21-2011 10:50 PM
Hi Gabriel,
My email server is behind a firewall and have allowed any any for the ips.. , still i am not able to see any request coming for the mail server from the UCCX.
Any other method from which i can check.
regards,
veer pratap
02-21-2011 11:09 PM
HI Veer,
I guess you already configure the IP address of the email server in the administration page of the UCCX, and you said the the firewall permits all the traffic from that subnet, that's ok, but are you sure that the email server itself permits the UCCX to relay emails with no problem?..as I said before, maybe there is a policy within the email server that doesn't permit the UCCX to connect ok.
Gabriel
02-25-2011 12:36 AM
Hi Gabriel,
I managed to send out the email, thanks for your support..
Is their any way to send out this email as an fax to the any fax no , do i need fax server for this .
Regards,
Veer Pratap Singh
02-25-2011 06:25 AM
Yes or you will need to use Unity integrated with Exchange server.
Gabriel.
12-01-2013 09:40 AM
Guys, with UCCX v9 For a script to be able to send Email, where do we have to configure our IP for the mail server
In OS Administraiton / Setting / SMTP ?
Thanks guys,
12-01-2013 12:29 PM
Hi,
no. You only need to fill out one form at the email subsystems page (SMTP server and default From: address).
G.
12-01-2013 01:24 PM
oups, CCX Enhanced doesnt have this
10-31-2014 12:46 PM
did you get the http service to work from the script. I am trying to do the same thing.
10-31-2014 01:32 PM
Yes, I wanted but I wasn't able to create a HTTP trigger because I have a CCX Standard which doesnt allow that feature.
my Customer wanted to have an external server who pull the stats from UCCX.
I finally used the wallboard user and find what I was looking for in the informix database
it shold'nt bee to too tough to do a http trigger to get info.. there is some object embed in script editor to do that
good luck,
10-31-2014 01:43 PM
true, but I need to collect several variables from the script and send to a http service.
basically get the account number and have them accept an agreement that is played to them.
based on the account number and a yes or no response i need to send this to a http service which will get recorded. In return when I send the request i will a success or error and this is just in html and can be seen if you do the request from a web browser. I believe I am making the request, but having issues with the response I receive and not being able to process it.
so my request would be something like this
http://www.mywebservice.org/oscar.png.v2/CAPAgreement.aspx?sid=123456789&capagreement=false
with the sid changing for the account number and capagreement either true or false.
when that is sent to the webservice, it will get successful or error.
I have the create url step, and then the create xml document step to do the http request. I just cannot figure how to process the response.
I have been also looking is when the create xml step is run how can you view what was created, and where can it be viewed.
Thanks for your help.
11-02-2014 11:05 PM
Hi,
could you please post a screenshot of your script (the relevant part)?
Also, if it is plain HTML the server is returning then the Create XML Document step is kind of useless here. What you can do is to use the Cache Document step with a reasonable amount of cache (not too little, not too much), that would issue the HTTP request as well.
Can you tell us more about the HTML returned by the server? Is it structured somehow logically?
G.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide