Hi,
We are a telcom company in Noida developing CTI applications.
We are using Asterisk-1.4.and have configured manager.conf file and
connection with the AMI is successfull using username and password. We want
to monitor/fetch SIP packets from TCP port. Please let us know how to take
SIP data from tcp port.
Our scenario:
We are developing CTI applications where we need SIP data from PBX such as
SourceIP,Username,Destination IP,TAG,VIA,Contact,CALL-ID,C-Sequence etc for
each of the SIP packets such as REGISTER,BYE,INVITE,ACK,SUBSCRIBE,NOTIFY
etc.
e.g Wrieshark displays SIP packets for activities going on SIP port in the
below mentioned format:
o SIP Packet as displayed on
wireshark*******************
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.3.35:5060;branch=z9hG4bK10e203f8;rport=5060
Contact: <sip:1000000@192.168.3.15:45118>
To: <sip:1000@192.168.3.15:45118>;tag=1f0f342c
From: "Unknown"<sip:Unknown@192.168.3.35>;tag=as4a585648
Call-ID: 38670a55c46d1235YzY2YWQxZTM0ODk4NTRhZDI5MjY3YjMyYjE4OTlhZjc.
CSeq: 102 NOTIFY
User-Agent: X-Lite release 1003l stamp 30942
Content-Length: 0
After receiving these SIP Packets from Asterisk,we can parse that data
according to our requirements.
Is there any text/data file or database where asterisk stores all the
information in above format?
If we need to fetch this data at realtime from the port than how can we do
that?
For this we are trying Kamailio as Asterisk frontend.Plz tell us about the
installation process and how to make kamailio as asterisk's fromtend
Request for an early reply!!!
Regards
Regards,
Vibhor Singhal
Software Engineer
Mob : +919891380819
" If you fail to plan,you plan to fail"
Coral Telecom Limited E2, Sector 63, Noida - 201301, UP, India. F:
+91-120-4035888 E: corporate(a)coraltele.com
www.coraltele.com <http://www.coraltele.com/index.asp>