Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8026761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:35:43+00:00 2026-06-04T23:35:43+00:00

I’m writing a c# sip phone application and i need to get call records.

  • 0

I’m writing a c# sip phone application and i need to get call records. Im using PortSip as client sip library. And there is a problem with it: the library has call recording functionality, but ~10% of calls are not recording(Dont know why, even restarting StartRecording doesn’t help, it just cant start recording of current call).
So ive decided to record calls on asterisk server and download them to our database after call ending. Asterisk CDR data is stored in mysql database and i cant see any unique callId there. I wonder if we can write call records in a table into database to get them by some keys, related to cdr?
Or another option that I see is to records all calls on the asterisk server, download needed one to our computer via ftp and save it to our servers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:35:44+00:00Added an answer on June 4, 2026 at 11:35 pm

    I would definitely have asterisk record the calls instead of the sip devices. You can record calls in asterisk by using the Monitor command in your dialplan, like:

    exten => 555,1,Answer
    exten => 555,2,Monitor(wav,filename)
    ...
    

    This will automatically record all calls to the 555 extension (you can use a dialplan pattern to automatically record all calls to all extensions, but this will depend on your particular setup). You could also run an AGI script to discriminate which calls are to be recorded, if you dont want to record all of them.

    The target filename can be composed by the ani-dnis-datetime to make it unique or with any other asterisk variables. For example: ${CALLERID(ani)}-${EXTEN}. You can also use the unique call id variable ${UNIQUEID}, like ${CALLERID(ani)}-${EXTEN}-${UNIQUEID}.

    As for the CDR, you can have it as a csv, or sqlite file, or a relational database like mysql, postgresql, etc by using the cdr_odbc module.

    What makes a call unique is the uniqueid field. So in your CDR you would have the source, the destination, the channels involved, dates, answered time, dial status, etc, and also this uniqueid field, so you can relate a given call with a given audio file (the recorded call) and with the involved sip devices. The wav files can be downloaded and backed up periodically if needed.

    Hope it helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have thousands of HTML files to process using Groovy/Java and I need to
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I've tracked down a weird MySQL problem to the two different ways I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.