sip.h in ubuntu

Asked by sajidtariq

h everyone i am new to ubuntu need urgent help
my problem is that i have to write a code which run sip session in
udp/tcp. please any one tell me what are the library for sip in ubuntu
i tried #include<sip.h> but it failed qhat i need to install have no idea
thanks .

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu build-essential Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

Writing a SIP program can probably not be done "urgently", these are complicated.

Use apt-file to search for files in the package database

sudo aptitude install apt-file
sudo apt-file update

apt-file find sip.h
libempathy-gtk-dev: /usr/include/libempathy-gtk/empathy-account-widget-sip.h
libexosip2-dev: /usr/include/eXosip2/eXosip.h
libexosip2-dev: /usr/share/man/man3/eXosip.h.3.gz
libopal-dev: /usr/include/opal/sip/sip.h
libosip2-dev: /usr/include/osip2/osip.h
libsofia-sip-ua-dev: /usr/include/sofia-sip-1.12/sofia-sip/sip.h
libwine-dev: /usr/include/wine/windows/mssip.h
linux-headers-2.6.32-3-486: /usr/src/linux-headers-2.6.32-3-486/include/config/nf/conntrack/sip.h
linux-headers-2.6.32-3-486: /usr/src/linux-headers-2.6.32-3-486/include/config/nf/nat/sip.h
linux-headers-2.6.32-3-686: /usr/src/linux-headers-2.6.32-3-686/include/config/nf/conntrack/sip.h
linux-headers-2.6.32-3-686: /usr/src/linux-headers-2.6.32-3-686/include/config/nf/nat/sip.h
linux-headers-2.6.32-3-686-bigmem: /usr/src/linux-headers-2.6.32-3-686-bigmem/include/config/nf/conntrack/sip.h
linux-headers-2.6.32-3-686-bigmem: /usr/src/linux-headers-2.6.32-3-686-bigmem/include/config/nf/nat/sip.h
linux-headers-2.6.32-3-amd64: /usr/src/linux-headers-2.6.32-3-amd64/include/config/nf/conntrack/sip.h
linux-headers-2.6.32-3-amd64: /usr/src/linux-headers-2.6.32-3-amd64/include/config/nf/nat/sip.h
linux-headers-2.6.32-3-common: /usr/src/linux-headers-2.6.32-3-common/include/linux/netfilter/nf_conntrack_sip.h
linux-headers-2.6.32-3-common-vserver: /usr/src/linux-headers-2.6.32-3-common-vserver/include/linux/netfilter/nf_conntrack_sip.h
linux-headers-2.6.32-3-vserver-686: /usr/src/linux-headers-2.6.32-3-vserver-686/include/config/nf/conntrack/sip.h
linux-headers-2.6.32-3-vserver-686: /usr/src/linux-headers-2.6.32-3-vserver-686/include/config/nf/nat/sip.h
linux-headers-2.6.32-3-vserver-686-bigmem: /usr/src/linux-headers-2.6.32-3-vserver-686-bigmem/include/config/nf/conntrack/sip.h
linux-headers-2.6.32-3-vserver-686-bigmem: /usr/src/linux-headers-2.6.32-3-vserver-686-bigmem/include/config/nf/nat/sip.h
mingw-w64: /usr/amd64-mingw32msvc/include/mssip.h
mingw-w64: /usr/amd64-mingw32msvc/include/rpcnsip.h
mingw32-runtime: /usr/i586-mingw32msvc/include/rpcnsip.h
openvas-server-dev: /usr/include/openvas/nessusip.h
python-sip4-dev: /usr/include/python2.4/sip.h
python-sip4-dev: /usr/include/python2.4_d/sip.h
python-sip4-dev: /usr/include/python2.5/sip.h
python-sip4-dev: /usr/include/python2.5_d/sip.h
qutecom-data: /usr/share/qutecom/webpages/windows/sip.html
wireshark-dev: /usr/include/wireshark/epan/dissectors/packet-sip.h

Revision history for this message
sajidtariq (sajidtariq) said :
#2

thanks alot i will try that. but i will need more guidance.Can you please suggest me any guide to sip programming using c/c++.please tell me one more thing that is sip.h lib has all functions struts etc defined in it or i have to write my own? one more thing i have to send text data not audio or video
Thanks
Any help ill be appreciated .

Revision history for this message
sajidtariq (sajidtariq) said :
#3

Hi mycae i followed the steps i-e

sudo aptitude install apt-file
sudo apt-file update

apt-file find sip.h

then i include #include<sip.h> but still it is giving an error.
Am i doing some thing wrong please help me
THanks

Revision history for this message
Theodotos Andreou (theodotos) said :
#4

You most probably need to install the "libosip2-dev" library:

  sudo apt-get install libosip2-dev

Then include the file like this:

#include <osip2/sip.h>

Can you help with this problem?

Provide an answer of your own, or ask sajidtariq for more information if necessary.

To post a message you must log in.