generate CSR (Certificate Signing Request) on Linux

csr

CSR stands for Certificate Signing Request. This is generated on the server where the certificate will be used on. A CSR contains information about to your organization and domain name, locality, and country and a public key that will be included in your certificate. If you have already installed open ssl then run the below command … Read more

call conference asterisk – n-way call HOWTO

A conference bridge allows a group of people to participate in phone call.  The most common form of bridge allows participants dial into a virtual meeting room from their own phone.  Meeting rooms can hold dozens or even hundreds of participants.  This is in contrast to three-way calling, a standard feature of most phone systems … Read more

graphics program for traffic light in C++

C Programming Tutorial

Here is traffic light program written in C++ using graphics.h header file. This program is Compiled using Turbo C++. /*Program for traffic Light*/ #include<iostream.h> #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> void main() { clrscr(); int gd = DETECT, gm, midx, midy; initgraph(&gd, &gm, “C:\\TC\\BGI”); midx = getmaxx()/2; midy = getmaxy()/2; setcolor(CYAN); settextstyle(TRIPLEX_FONT, HORIZ_DIR, 4); settextjustify(CENTER_TEXT, CENTER_TEXT); outtextxy(midx, midy-10, “Traffic Light … Read more

program in C to get the largest element of an array

C Programming Tutorial

program in C to get the largest element of an array Problem Statement: Write a program in C to get the largest element of an array using the function.   Test Cases: Input the number of elements to be stored in the array :10 Input 10 elements in the array : element – 0 : … Read more

Moving car program in C++

C Programming Tutorial

Moving Car Program in C++ This program is written in C++ using graphics to create and move a car. A car is made using two rectangles and two circles which act as tyres of car. A for loop is used to move the car forward by changing the rectangle and circle coordinates and erasing the … Read more

SIP Trunk configuration – IP Based authentication and Password based authentication

There are two types of authentications 1. IP based authentication 2.Username and Password based authentication For IP Based Authentication You need to do the following changes in the sip.conf [siptrunk] type=friend fromuser=X.X.X.X ( your asterisk server ip ) which will send traffic to the service provider host=X.X.X.X ( service provider ip ) canreinvite=no qualify=no dtmfmode=RFC2833 … Read more

Graphics Program in C++ for Analog Clock

C Programming Tutorial

Analog Clock is mini project  in a C ++ language. It is graphics application using graphic library <graphics.h>. This program is Compiled using Turbo C++. Here is the source code of this program in C++ using Graphics.   /*Program for analog CLock*/ #include <stdio.h> #include <conio.h> #include <math.h> #include <string.h> #include <graphics.h> #include <time.h> #include <dos.h> void minSecPos(int xrad, int midx, … Read more

Click to Dial or php API to dial from asterisk

copy the below code to a file (click2call.php)  to the webdirectory. executes as  :  http://ipaddress/click2call.php??exten=SIP/100&number=9899338979

C program to find armstrong number

C Programming Tutorial

What is Armstrong number? Sum of a number’s digits raised to the power total number of digits is armstrong number. Armstrong numbers example: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634 etc Explanation: 3 = 3^1 = 3 153 = 1^3 + 5^3 + 3^3 = 153 Non-Armstrong … Read more