Jump to content

Does the PBX POST json CDRs asynchronously?


ndemou
 Share

Recommended Posts

In my test environment I'm collecting json CDRs with a ridiculously simple python script but I've a question regarding what will happen during burst of calls in a production system. The question is will the PBX POST CDRs to the web service in parallel or am I safe to expect that all CDR will be POSTed serially (every next POST just after the previous has completed)?

________________

P.S. Here is the code for anyone preferring python (apart from these lines you only need to download https://github.com/defnull/bottle/raw/master/bottle.py to make it work):

from bottle import route, run, request

@route('/postcdr', method='POST')
def recieve_cdr():
    cdr = request.json
    print cdr # or do what ever you want to do with the CDR
    return ""

run(host='localhost', port=8080, debug=True)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...