Hello,
I have txt file with calls flow. I look for a script to Create ,for example , a 679400FC-8C211DA-9C3DBF26-F375EEC9@192.168.52.52 file, gathering all SIP messages (find the way to easily detect the start and the end of every SIP messages).
Thanks for help Harry
2005/08/10-12:44:44.324 ===== Received ======================= 12:44:44 324 id1/192.168.49.1:5061 <===UDP=== /192.168.49.1:5060 SIP/2.0 200 OK To: sip:0097143389080@192.168.52.52;tag=A8C32828-2670 Allow-Events: telephone-event Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER, SUBSCRIBE, NOTIFY, INFO Server: Cisco-SIPGateway/IOS-12.x Call-ID: 679400FC-8C211DA-9C3DBF26-F375EEC9@192.168.52.52 Contact: sip:0097143389080@192.168.52.52:5060 Content-Type: application/sdp CSeq: 107 INVITE Date: Wed, 10 Aug 2005 10:44:44 GMT Content-Length: 234 Via: SIP/2.0/UDP 192.168.49.1:5061;branch=z9hG4bK228 Record-Route: sip:192.168.49.1;lr From: sip:497231265@id.centile.com;tag=c74716fe-957a-816c-1304-aa9de235bd46
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Hi,
You can probably use exec_msg() function from exce.so module. Look at the README file for the module. Anyway, when exec_msg is called SER also passes the whole message along with headers in the environment variables. You can use those variables to determine where and what to write.
Hope that helps.
Regards.
On 2/7/06, hgaillac-sip@yahoo.fr hgaillac-sip@yahoo.fr wrote:
Hello,
I have txt file with calls flow. I look for a script to Create ,for example , a "679400FC-8C211DA-9C3DBF26-F375EEC9@192.168.52.52" file, gathering all SIP messages (find the way to easily detect the start and the end of every SIP messages).
Thanks for help Harry
2005/08/10-12:44:44.324 ===== Received ======================= 12:44:44 324 id1/192.168.49.1:5061 <===UDP=== /192.168.49.1:5060 SIP/2.0 200 OK To: sip:0097143389080@192.168.52.52;tag=A8C32828-2670 Allow-Events: telephone-event Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER, SUBSCRIBE, NOTIFY, INFO Server: Cisco-SIPGateway/IOS-12.x Call-ID: 679400FC-8C211DA-9C3DBF26-F375EEC9@192.168.52.52 Contact: sip:0097143389080@192.168.52.52:5060 Content-Type: application/sdp CSeq: 107 INVITE Date: Wed, 10 Aug 2005 10:44:44 GMT Content-Length: 234 Via: SIP/2.0/UDP 192.168.49.1:5061;branch=z9hG4bK228 Record-Route: sip:192.168.49.1;lr From: sip:497231265@id.centile.com;tag=c74716fe-957a-816c-1304-aa9de235bd46
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
The ONsip.org script package contains a set of scripts that will use ngrep to dump all SIP messages to logs (rotated every day) and a script called siplogs, which takes a regex as input. If you log the callid to /var/log/messages using xlog, you can find the call-id for a call you are interested in and use 'siplogs call-id' to pull out a given call. g-)
----- Original Message ----- From: "Andrey Kouprianov" andrey.kouprianov@gmail.com To: serusers@lists.iptel.org Sent: Wednesday, February 08, 2006 7:45 AM Subject: Re: [Serusers] scripts needed to gathering all SIP messages
Hi,
You can probably use exec_msg() function from exce.so module. Look at the README file for the module. Anyway, when exec_msg is called SER also passes the whole message along with headers in the environment variables. You can use those variables to determine where and what to write.
Hope that helps.
Regards.
On 2/7/06, hgaillac-sip@yahoo.fr hgaillac-sip@yahoo.fr wrote:
Hello,
I have txt file with calls flow. I look for a script to Create ,for example , a "679400FC-8C211DA-9C3DBF26-F375EEC9@192.168.52.52" file, gathering all SIP messages (find the way to easily detect the start and the end of every SIP messages).
Thanks for help Harry
2005/08/10-12:44:44.324 ===== Received ======================= 12:44:44 324 id1/192.168.49.1:5061 <===UDP=== /192.168.49.1:5060 SIP/2.0 200 OK To: sip:0097143389080@192.168.52.52;tag=A8C32828-2670 Allow-Events: telephone-event Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER, SUBSCRIBE, NOTIFY, INFO Server: Cisco-SIPGateway/IOS-12.x Call-ID: 679400FC-8C211DA-9C3DBF26-F375EEC9@192.168.52.52 Contact: sip:0097143389080@192.168.52.52:5060 Content-Type: application/sdp CSeq: 107 INVITE Date: Wed, 10 Aug 2005 10:44:44 GMT Content-Length: 234 Via: SIP/2.0/UDP 192.168.49.1:5061;branch=z9hG4bK228 Record-Route: sip:192.168.49.1;lr From: sip:497231265@id.centile.com;tag=c74716fe-957a-816c-1304-aa9de235bd46
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers