OnCallHangUp event

Talk with others about developing applications for Switchvox

Moderators: bmdhacks, dpodolsky, tristand, jwitt, joshuas

OnCallHangUp event

Postby TTLL » Thu Feb 16, 2012 8:00 pm

I've written some code to pass in variables when a hangup event is triggered. I have passed in the variables as part of the querystring to an aspx page.

My code is working fine but when I go to the Advanced Error Logs to see if any error occured, I can see errors resulting from calling my aspx. The error message I get is below...

Error in XML from remote url (process_xml_response): [http://XXX.XXX.XX.XX/voip/OnCallHangUp.aspx?cid=2004&cname=John%20Doe&e=2000&etype=user&evt=hangup&jid=1329442579.49894] line Fatal Error XMLin err=junk after document element at line 3, column 0, byte 49 , column %4.

What kind of response should I be returning?
TTLL
Newsterisk
 
Posts: 2
Joined: Thu Feb 16, 2012 7:52 pm

Re: OnCallHangUp event

Postby lorsungcu » Thu Feb 16, 2012 10:52 pm

I had similar issues using the URL/Event Manager, on the call hang up event. The goal was to move CDR off the system using events. It was not accurate enough to be used, unfortunately. Issues I found were URLs being called mulitple times for a single event, or sometimes not at all. It was so broken I ended up dumping the whole thing and using the API instead. You may want to check the logs on your webserver, as well.
lorsungcu
Oldsterisk
 
Posts: 116
Joined: Wed Mar 09, 2011 9:30 am

Re: OnCallHangUp event

Postby sterlingmarking » Tue Feb 21, 2012 7:59 am

Here is what we were sending:

Code: Select all
<response>
  <result>
    <call_info></call_info>
  </result>
</response>


Here is where it is documented:
http://developers.digium.com/switchvox/wiki/index.php/UrlManagerAPI_xml

You can also send back caller id, name, transfer, and url, but we just send back the empty response.
Jesse Carlton
Systems Administrator
Sterling Marking Products Inc.
sterlingmarking
Oldsterisk
 
Posts: 99
Joined: Mon Mar 22, 2010 9:42 am
Location: London, Ontario

Re: OnCallHangUp event

Postby dpodolsky » Thu Mar 01, 2012 11:02 am

Your XML looks just fine. I wouldn't too much about the error since you don't care about the XML being processed. However, if you want to try to get rid of these messages from the error log I would try:

1. Make sure you don't have any invisible control characters you are sneding.
2. Try tweaking the XML even more. <response></response>, <response><result></result></response>
dpodolsky
Oldsterisk
 
Posts: 325
Joined: Thu Apr 23, 2009 2:35 pm


Return to Switchvox Developers

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest