#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    Extraction et traitement des balises xml


    avec tshark j'ai pu extraite le temps et le type de requète :
    tshark -eth0 -T fiels -e frame.time et sip.Request-Line -z sip,stat > test2.xml
    j'au le fichier test2.txt suivant :

    Aug 27, 2013 23:06:46.205544000
    Aug 27, 2013 23:06:47.334270000 INVITE
    Aug 27, 2013 23:06:47.335045000 SIP/2.0 401 Unauthorized
    Aug 27, 2013 23:06:47.336897000 ACK
    Aug 27, 2013 23:06:47.350187000 INVITE
    Aug 27, 2013 23:06:47.351728000 SIP/2.0 100 Trying
    Aug 27, 2013 23:06:47.354311000 INVITE
    Aug 27, 2013 23:06:47.500954000 SIP/2.0 180 Ringing
    Aug 27, 2013 23:06:47.504776000 SIP/2.0 180 Ringing
    Aug 27, 2013 23:06:48.415368000 CANCEL
    Aug 27, 2013 23:06:48.416001000 SIP/2.0 487 Request Terminated
    Aug 27, 2013 23:06:48.416193000 SIP/2.0 200 OK
    Aug 27, 2013 23:06:48.416522000 CANCEL
    Aug 27, 2013 23:06:48.424779000 ACK
    Aug 27, 2013 23:06:48.590352000 SIP/2.0 200 OK
    Aug 27, 2013 23:06:48.590370000 SIP/2.0 487 Request Terminated
    Aug 27, 2013 23:06:48.595704000 ACK

    ===================================================================
    SIP Statistics

    Number of SIP messages: 16
    Number of resent SIP messages: 0

    * SIP Status Codes in reply packets
    SIP 401 Unauthorized : 1 Packets
    SIP 180 Ringing : 2 Packets
    SIP 200 OK : 2 Packets
    SIP 487 Request Terminated : 2 Packets
    SIP 100 Trying : 1 Packets

    * List of SIP Request methods
    INVITE : 3 Packets
    ACK : 3 Packets
    CANCEL : 2 Packets

    svvp,je voulais programmer script shell sous unix qui permet de calculer la durée moyenne d'inter-arrivé des requètes sip.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    rappel


    svvvp juste un coup de pousse,merci d'avance

IMN logo majestic logo threadwatch logo seochat tools logo