Tuesday 1 August 2017

Graphics programming in c. Using GCC complier and ubuntu linux operating system

Hello Friends,

We will learn here graphics programming in c.
In our college time we were learning graphics programming in turbo c . Using graphics library graphics.h .
But this is not really working when you are about to create real application. In turbo c/c++  there is limit in functionality . You can not use more than alphabet button and mouse . But if you want to create seperate window . You want that my application can be operating with f1 f2 like keys . You can not do it in graphics.h library . SO i recommend you kindly switch to GCC and compiler .


I am using ubuntu linux operating system . Library name freeglut. Also IDE for development Anjuta for programming. Please find video given below link


Sunday 16 July 2017

How to add SIP peer in asterisk

We will be learning that how to add sip peer in asterisk

SIP peer is like a extension number or name that will be used to make calls through sip phone 

SIP phone is off two type

1    Soft Phone (Ekiga, Zoiper)
2    Hard Phone (Aku vox, Digium, Grandstream)



Open file through vi editor in terminal

# vi /etc/asterisk/sip.conf



sip.conf

[9999]
username=9999
secret =1234
host=dynamic
type=friend
qualify=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm





Save and exit  vi editor by pressing :wq

Now open asterisk

# asterisk -rvvvvv


type command 



1) sip reload
2) sip show peers    {In this command you will see sip peers name is visible}




Now open soft phone ekiga 





 

Go to edit and select account -> select  Add a SIP account


 



Now Add SIP account

 


In host type ip address of asterisk server (sip server)



Click on ok button . You will get Registered 







 



Later on we will discuss about context and dialplan of asterisk server