Forced memory cleaning

Василий
Wed, Feb 1, 2017 5:29 AM

When making a large number of calls in the library are pjsip packets for transmission. These packages are not deleted from the memory and constantly sent to Asterisk.

for example:

05: 21: 22.778 pjsua_core.c .TX 469 bytes Response msg 180 / INVITE / cseq = 102 (tdta0xa62420) to UDP 192.168.0.195:5060:

SIP / 2.0 180 Ringing

Via: SIP / 2.0 / UDP 192.168.0.195:5060;received=192.168.0.195;branch=z9hG4bK440fce30

Call-ID: 3d885d7e3ef0395c1c2974196f0e1aeb@192.168.0.195: 5060

From: "2007" <sip: 2007@192.168.0.195>; tag = as4cf379cc

To: <sip: 1062@192.168.0.69; ob>; tag = Q2XicADhZKUWS.K3kZAI60-lrolSSBzp

CSeq: INVITE 102

Contact: <sip: 1062@192.168.0.69: 5060; ob>

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

Content-Length: 0

--end msg--

05: 21: 38.499 pjsua_core.c .TX 469 bytes Response msg 180 / INVITE / cseq = 102 (tdta0x9fc6e8) to UDP 192.168.0.195:5060:

SIP / 2.0 180 Ringing

Via: SIP / 2.0 / UDP 192.168.0.195:5060;received=192.168.0.195;branch=z9hG4bK0c66758e

Call-ID: 5257742a76103ca31fd6377505abfd89@192.168.0.195: 5060

From: "2002" <sip: 2002@192.168.0.195>; tag = as12eb2a00

To: <sip: 1049@192.168.0.69; ob>; tag = b5a7zuA8Tp5RysjoDoe6OSeaJ8w9V6tC

CSeq: INVITE 102

Contact: <sip: 1049@192.168.0.69: 5060; ob>

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

Content-Length: 0

--end msg--

05: 21: 40.538 pjsua_core.c .TX 469 bytes Response msg 180 / INVITE / cseq = 102 (tdta0x5b4b20) to UDP 192.168.0.195:5060:

SIP / 2.0 180 Ringing

Via: SIP / 2.0 / UDP 192.168.0.195:5060;received=192.168.0.195;branch=z9hG4bK68bca08b

Call-ID: 6559c335363378786e56f0f604df9829@192.168.0.195: 5060

From: "2022" <sip: 2022@192.168.0.195>; tag = as57cc614c

To: <sip: 1052@192.168.0.69; ob>; tag = GEiFF1qPhs7U-.k0r09.w4Uca5P7pUf8

CSeq: INVITE 102

Contact: <sip: 1052@192.168.0.69: 5060; ob>

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

Content-Length: 0

Asterisk these questions does not respond, because call finished.

As can be forced to remove the memory packages?