Monday 8 May 2017

I want to convert text to Json format using NodeJS

I want to convert followiing text to Json format in nodejs


Via:SIP/2.0/UDP 10.253.136.219:5060;branch=z9hG4bK00b2ng109ocg72g10440

From:;tag=g0000008h6300-uon8000

To:;tag=938834867-1494233693601

Call-ID:g0000008h6300ate3jg67jhe12pc7btd9roamgdeg9cq2qte3jb46rlcd1r26hp5drru6plcj3tumrpdehrk6n8c33pc7nccfbr6mgdekjbsmihe-uon8000@10.253.136.219

CSeq:286494 options

Allow-Events:call-info,line-seize,dialog,message-summary,as-feature-event,x-broadworks-hoteling,x-broadworks-call-center-status,conference

Content-Length:0

bwadmin@MBCV-AS$ 2017.05.08 08:54:54:738 UTC | Info | Sip | Unknown | Unknown

udp 518 Bytes IN from 10.251.122.229:5060

OPTIONS sip:10.254.24.15:5060 SIP/2.0

Via: SIP/2.0/UDP 10.251.122.229:5060;branch=z9hG4bK00Bab0f7a8f0755e0c0

From: ;tag=gK00137c71

To:

Call-ID: 101791745_2073156@10.251.122.229

CSeq: 154582 OPTIONS

Max-Forwards: 1

Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,UPDATE,OPTIONS,MESSAGE,PUBLISH

Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed

Contact:

Content-Length: 0

2017.05.08 08:54:54:738 UTC | Info | Sip | Unknown | Unknown

udp 404 Bytes OUT to 10.251.122.229:5060

SIP/2.0 200 OK

Via:SIP/2.0/UDP 10.251.122.229:5060;branch=z9hG4bK00Bab0f7a8f0755e0c0

From:;tag=gK00137c71

To:;tag=1578847004-1494233694738

Call-ID:101791745_2073156@10.251.122.229

CSeq:154582 OPTIONS

Allow-Events:call-info,line-seize,dialog,message-summary,as-feature-event,x-broadworks-hoteling,x-broadworks-call-center-status,conference

Content-Length:0

2017.05.08 08:54:54:741 UTC | Info | Sip | Unknown | Unknown

udp 519 Bytes IN from 10.251.122.198:5060

OPTIONS sip:10.254.24.15:5060 SIP/2.0

Via: SIP/2.0/UDP 10.251.122.198:5060;branch=z9hG4bK00Bab1592727a2d09af

From: ;tag=gK001382f5

To:

Call-ID: 101791751_60288534@10.251.122.198

CSeq: 396236 OPTIONS

Max-Forwards: 1

Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,UPDATE,OPTIONS,MESSAGE,PUBLISH

Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed

Contact:

Content-Length: 0

2017.05.08 08:54:54:741 UTC | Info | Sip | Unknown | Unknown

udp 405 Bytes OUT to 10.251.122.198:5060

SIP/2.0 200 OK

Via:SIP/2.0/UDP 10.251.122.198:5060;branch=z9hG4bK00Bab1592727a2d09af

From:;tag=gK001382f5

To:;tag=1263030377-1494233694741

Call-ID:101791751_60288534@10.251.122.198

CSeq:396236 OPTIONS

Allow-Events:call-info,line-seize,dialog,message-summary,as-feature-event,x-broadworks-hoteling,x-broadworks-call-center-status,conference

Content-Length:0

2017.05.08 08:54:55:446 UTC | Info | Sip | Unknown | Unknown

udp 474 Bytes IN from 10.253.143.203:5060

options sip:as01-twc.bve-lab.moorestown.nj.bcdv.comcast.net:5060 SIP/2.0

Via: SIP/2.0/UDP 10.253.143.203:5060;branch=z9hG4bK00b27f006ga02a0066t1

To: sip:ping@as01-twc.bve-lab.moorestown.nj.bcdv.comcast.net

From: ;tag=g000000vv2300-hn71000

Call-ID: g000000vv2300ate3jg67jhe12pc7btd9roamgdeg9cq2qte3jb46rlcd1r26hp5drru6plcj3tumrpdehrk6n8c33pc7nccfbr6mgdekjbsmihe-hn71000@10.253.143.203

CSeq: 40689 options

Max-Forwards: 70

Content-Length: 0

2017.05.08 08:54:55:446 UTC | Info | Sip | Unknown | Unknown

udp 561 Bytes OUT to 10.253.143.203:5060

SIP/2.0 200 OK

Via:SIP/2.0/UDP 10.253.143.203:5060;branch=z9hG4bK00b27f006ga02a0066t1

From:;tag=g000000vv2300-hn71000

To:;tag=80820964-1494233695446

Call-ID:g000000vv2300ate3jg67jhe12pc7btd9roamgdeg9cq2qte3jb46rlcd1r26hp5drru6plcj3tumrpdehrk6n8c33pc7nccfbr6mgdekjbsmihe-hn71000@10.253.143.203

CSeq:40689 options

Allow-Events:call-info,line-seize,dialog,message-summary,as-feature-event,x-broadworks-hoteling,x-broadworks-call-center-status,conference

Content-Length:0

2017.05.08 08:54:55:905 UTC | Info | Sip | +16097008000 | callhalf-9438559

$ new CHSS > +16097008000 >  > callhalf-9438559

2017.05.08 08:54:55:905 UTC | FieldDebug | StateReplication | +16097008000 | callhalf-9438559

Session added to wrapper callhalf-9438557 in state STANDALONE

2017.05.08 08:54:55:905 UTC | Info | Sip | +16097008000 | callhalf-9438559:0

udp 712 Bytes IN from 10.251.122.198:5060

SUBSCRIBE sip:6097008000_blf@mbcv-lab.net:5060 SIP/2.0

Via: SIP/2.0/UDP 10.251.122.198;branch=z9hG4bK04B1d1a90b96405a4de

From: "VVX311 Line1" ;tag=gK04e-DD219F4E-334B82A7

To:

Call-ID: 82f9acd70d197539e52dd9f0a600130e

CSeq: 1 SUBSCRIBE

Contact: ;q=0.0

Event: dialog

User-Agent: PolycomVVX-VVX_311-UA/5.5.1.16542

Supported: eventlist

Max-Forwards: 69

Expires: 3600

Allow: INVITE,ACK,CANCEL,BYE,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE

Accept: application/dialog-info+xml, application/rlmi+xml, multipart/related

Accept-Language: en-us, en;q="0.9"

Content-Length: 0



via 1031210155 145046

No comments:

Post a Comment