cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5891
Views
5
Helpful
12
Replies
Highlighted
Beginner

Creating UCCX script to send email and interact with DB via HTTP request

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 

12 REPLIES 12
Highlighted
Rising star

Re: Creating UCCX script to send email and interact with DB via

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.

Highlighted
Beginner

Re: Creating UCCX script to send email and interact with DB via

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

Highlighted
Rising star

Re: Creating UCCX script to send email and interact with DB via

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

Beginner

Re: Creating UCCX script to send email and interact with DB via

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

Highlighted
Rising star

Re: Creating UCCX script to send email and interact with DB via

Yes or you will need to use Unity integrated with Exchange server.

Gabriel.

Highlighted

Creating UCCX script to send email and interact with DB via HTTP

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,

Highlighted
Advocate

Creating UCCX script to send email and interact with DB via HTTP

Hi,

no. You only need to fill out one form at the email subsystems page (SMTP server and default From: address).

G.

Highlighted

Creating UCCX script to send email and interact with DB via HTTP

oups, CCX Enhanced doesnt have this

Highlighted
Beginner

did you get the http service

did you get the http service to work from the script.  I am trying to do the same thing.

Highlighted

Yes, I wanted but I wasn't

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,

 

 

Highlighted
Beginner

true, but I need to collect

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.

Highlighted
Advocate

Hi,could you please post a

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.
 

CreatePlease to create content