[Spce-user] v2.8 - Session Timers

Robert Cuaresma rcuaresma at telcon.es
Mon Jan 16 07:57:49 EST 2017


Hi Jon!

Thanks you for your help. I attach the trace that I have captured and a snapshot of sngrep.

Saludos, 
Robert Cuaresma

-----Mensaje original-----
De: Jon Bonilla (Manwe) [mailto:manwe at sipdoc.net] 
Enviado el: viernes, 13 de enero de 2017 15:48
Para: Robert Cuaresma <rcuaresma at telcon.es>
CC: spce-user at lists.sipwise.com
Asunto: Re: [Spce-user] v2.8 - Session Timers

El Fri, 13 Jan 2017 10:00:37 +0000
Robert Cuaresma <rcuaresma at telcon.es> escribió:

> Hi list!
> 
> I have a problem with session refresh with my VoIP Carrier: At 30 
> minutes my carrier needs to be the session refreshed, otherwise the 
> carrier hangup the call. How can I configure sipprovider CE to refresh 
> the session after 30 minutes of the call. I have this problem only in 
> outgoing calls (Subscriber to Peer).
> 
> I did some test with SST on Peer Host Preferences with this parameters 
> but didn't work: Sst_enable: yes
> Sst_expires: 1800
> Sst_min_timer: 90
> sst_refresh_method: update
> 
> 

This should update the call. Send a sip capture of a call to check what's going on.

-------------- next part --------------
    Request-Line: INVITE sip:DEST. NUMBER at CARRIER PUBLIC IP:5060;transport=udp SIP/2.0
    Message Header
        Max-Forwards: 10
        Record-Route: <sip:SIPWISE PUBLIC IP:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Record-Route: <sip:127.0.0.1:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Via: SIP/2.0/UDP SIPWISE PUBLIC IP;branch=z9hG4bK3732.c19813041f0c20f61fd0b8270226f225.0
        Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKIdCe1a~E;rport=5080
        From: <sip:FROM NUMBER at 172.16.20.2>;tag=1C59BF8A-587CB7B2000CAAA7-6099A700
        To: <sip:DEST. NUMBER at CARRIER PUBLIC IP>
        CSeq: 10 INVITE
        Call-ID: 62d6dbf0261d18e03a053be764cc0f16 at 172.16.20.2_b2b-1
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
        Supported: replaces, timer
        P-Asserted-Identity: <sip:FROM NUMBER at 172.16.20.2>
        Content-Type: application/sdp
        Content-Length: 325
        Contact: <sip:ngcp-lb at SIPWISE PUBLIC IP:5060>
    Message Body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): root 670535297 670535298 IN IP4 172.16.20.10
            Session Name (s): Asterisk PBX 11.21.0
            Connection Information (c): IN IP4 172.16.20.10
            Time Description, active time (t): 0 0
            Media Description, name and address (m): audio 15038 RTP/AVP 18 0 8 101
            Media Attribute (a): rtpmap:18 G729/8000
            Media Attribute (a): fmtp:18 annexb=no
            Media Attribute (a): rtpmap:0 PCMU/8000
            Media Attribute (a): rtpmap:8 PCMA/8000
            Media Attribute (a): rtpmap:101 telephone-event/8000
            Media Attribute (a): fmtp:101 0-16
            Media Attribute (a): ptime:20
            Media Attribute (a): sendrecv
            Media Attribute (a): direction:active



User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (100)
    Status-Line: SIP/2.0 100 Trying
    Message Header
        Via: SIP/2.0/UDP SIPWISE PUBLIC IP;branch=z9hG4bK3732.c19813041f0c20f61fd0b8270226f225.0
        Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKIdCe1a~E;rport=5080
        From: <sip:FROM NUMBER at 172.16.20.2>;tag=1C59BF8A-587CB7B2000CAAA7-6099A700
        To: <sip:DEST. NUMBER at CARRIER PUBLIC IP>;tag=gK04be2b35
        Call-ID: 62d6dbf0261d18e03a053be764cc0f16 at 172.16.20.2_b2b-1
        CSeq: 10 INVITE
        Content-Length: 0


Frame 5: 1159 bytes on wire (9272 bits), 1159 bytes captured (9272 bits)
Linux cooked capture
Internet Protocol Version 4, Src: CARRIER PUBLIC IP, Dst: 172.16.20.2
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (183)
    Status-Line: SIP/2.0 183 Session Progress
    Message Header
        Via: SIP/2.0/UDP SIPWISE PUBLIC IP;branch=z9hG4bK3732.c19813041f0c20f61fd0b8270226f225.0
        Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKIdCe1a~E;rport=5080
        From: <sip:FROM NUMBER at 172.16.20.2>;tag=1C59BF8A-587CB7B2000CAAA7-6099A700
        To: <sip:DEST. NUMBER at CARRIER PUBLIC IP>;tag=gK04be2b35
        Call-ID: 62d6dbf0261d18e03a053be764cc0f16 at 172.16.20.2_b2b-1
        CSeq: 10 INVITE
        Record-Route: <sip:SIPWISE PUBLIC IP:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Record-Route: <sip:127.0.0.1:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Contact: <sip:DEST. NUMBER at CARRIER PUBLIC IP:5060>
        Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS
        Content-Length:  280
        Content-Disposition: session; handling=required
        Content-Type: application/sdp
    Message Body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): Sonus_UAC 28462 31329 IN IP4 CARRIER PUBLIC IP
            Session Name (s): SIP Media Capabilities
            Connection Information (c): IN IP4 CARRIER MEDIA PUBLIC IP
            Time Description, active time (t): 0 0
            Media Description, name and address (m): audio 12832 RTP/AVP 18 101
            Media Attribute (a): direction: passive
            Media Attribute (a): rtpmap:18 G729/8000
            Media Attribute (a): fmtp:18 annexb=no
            Media Attribute (a): rtpmap:101 telephone-event/8000
            Media Attribute (a): fmtp:101 0-15
            Media Attribute (a): sendrecv
            Media Attribute (a): ptime:20


Frame 7: 1159 bytes on wire (9272 bits), 1159 bytes captured (9272 bits)
Linux cooked capture
Internet Protocol Version 4, Src: CARRIER PUBLIC IP, Dst: 172.16.20.2
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (183)
    Status-Line: SIP/2.0 183 Session Progress
    Message Header
        Via: SIP/2.0/UDP SIPWISE PUBLIC IP;branch=z9hG4bK3732.c19813041f0c20f61fd0b8270226f225.0
        Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKIdCe1a~E;rport=5080
        From: <sip:FROM NUMBER at 172.16.20.2>;tag=1C59BF8A-587CB7B2000CAAA7-6099A700
        To: <sip:DEST. NUMBER at CARRIER PUBLIC IP>;tag=gK04be2b35
        Call-ID: 62d6dbf0261d18e03a053be764cc0f16 at 172.16.20.2_b2b-1
        CSeq: 10 INVITE
        Record-Route: <sip:SIPWISE PUBLIC IP:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Record-Route: <sip:127.0.0.1:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Contact: <sip:DEST. NUMBER at CARRIER PUBLIC IP:5060>
        Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS
        Content-Length:  280
        Content-Disposition: session; handling=required
        Content-Type: application/sdp
    Message Body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): Sonus_UAC 28462 31329 IN IP4 CARRIER PUBLIC IP
            Session Name (s): SIP Media Capabilities
            Connection Information (c): IN IP4 CARRIER MEDIA PUBLIC IP
            Time Description, active time (t): 0 0
            Media Description, name and address (m): audio 12832 RTP/AVP 18 101
            Media Attribute (a): direction: passive
            Media Attribute (a): rtpmap:18 G729/8000
            Media Attribute (a): fmtp:18 annexb=no
            Media Attribute (a): rtpmap:101 telephone-event/8000
            Media Attribute (a): fmtp:101 0-15
            Media Attribute (a): sendrecv
            Media Attribute (a): ptime:20


Frame 9: 1319 bytes on wire (10552 bits), 1319 bytes captured (10552 bits)
Linux cooked capture
Internet Protocol Version 4, Src: CARRIER PUBLIC IP, Dst: 172.16.20.2
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (200)
    Status-Line: SIP/2.0 200 OK
    Message Header
        Via: SIP/2.0/UDP SIPWISE PUBLIC IP;branch=z9hG4bK3732.c19813041f0c20f61fd0b8270226f225.0
        Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKIdCe1a~E;rport=5080
        From: <sip:FROM NUMBER at 172.16.20.2>;tag=1C59BF8A-587CB7B2000CAAA7-6099A700
        To: <sip:DEST. NUMBER at CARRIER PUBLIC IP>;tag=gK04be2b35
        Call-ID: 62d6dbf0261d18e03a053be764cc0f16 at 172.16.20.2_b2b-1
        CSeq: 10 INVITE
        Record-Route: <sip:SIPWISE PUBLIC IP:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Record-Route: <sip:127.0.0.1:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay,  multipart/mixed
        Contact: <sip:DEST. NUMBER at CARRIER PUBLIC IP:5060>
        Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS
        Require: timer
        Supported: timer
        Session-Expires: 1800;refresher=uac
        Content-Length:  280
        Content-Disposition: session; handling=required
        Content-Type: application/sdp
    Message Body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): Sonus_UAC 28462 31329 IN IP4 CARRIER PUBLIC IP
            Session Name (s): SIP Media Capabilities
            Connection Information (c): IN IP4 CARRIER MEDIA PUBLIC IP
            Time Description, active time (t): 0 0
            Media Description, name and address (m): audio 12832 RTP/AVP 18 101
            Media Attribute (a): direction: passive
            Media Attribute (a): rtpmap:18 G729/8000
            Media Attribute (a): fmtp:18 annexb=no
            Media Attribute (a): rtpmap:101 telephone-event/8000
            Media Attribute (a): fmtp:101 0-15
            Media Attribute (a): sendrecv
            Media Attribute (a): ptime:20


Frame 12: 772 bytes on wire (6176 bits), 772 bytes captured (6176 bits)
Linux cooked capture
Internet Protocol Version 4, Src: 172.16.20.2, Dst: CARRIER PUBLIC IP
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (ACK)
    Request-Line: ACK sip:DEST. NUMBER at CARRIER PUBLIC IP:5060 SIP/2.0
    Message Header
        Max-Forwards: 10
        Record-Route: <sip:SIPWISE PUBLIC IP:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Record-Route: <sip:127.0.0.1:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Via: SIP/2.0/UDP SIPWISE PUBLIC IP;branch=z9hG4bK3732.a1f34303bd0d4bffddd43a496313d53b.0
        Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKY1I4vamP;rport=5080
        From: <sip:FROM NUMBER at 172.16.20.2>;tag=1C59BF8A-587CB7B2000CAAA7-6099A700
        To: <sip:DEST. NUMBER at CARRIER PUBLIC IP>;tag=gK04be2b35
        CSeq: 10 ACK
        Call-ID: 62d6dbf0261d18e03a053be764cc0f16 at 172.16.20.2_b2b-1
        User-Agent: FPBX-2.11.0(11.21.0)
        Content-Length: 0
        Contact: <sip:ngcp-lb at SIPWISE PUBLIC IP:5060>


Frame 13: 620 bytes on wire (4960 bits), 620 bytes captured (4960 bits)
Linux cooked capture
Internet Protocol Version 4, Src: CARRIER PUBLIC IP, Dst: 172.16.20.2
User Datagram Protocol, Src Port: 5060, Dst Port: 5060
Session Initiation Protocol (BYE)
    Request-Line: BYE sip:ngcp-lb at SIPWISE PUBLIC IP:5060 SIP/2.0
    Message Header
        Via: SIP/2.0/UDP CARRIER PUBLIC IP:5060;branch=z9hG4bK04Beb2850c4e8fd2272
        From: <sip:DEST. NUMBER at CARRIER PUBLIC IP>;tag=gK04be2b35
        To: <sip:FROM NUMBER at 172.16.20.2>;tag=1C59BF8A-587CB7B2000CAAA7-6099A700
        Call-ID: 62d6dbf0261d18e03a053be764cc0f16 at 172.16.20.2_b2b-1
        CSeq: 2082 BYE
        Max-Forwards: 70
        Route: <sip:SIPWISE PUBLIC IP:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Route: <sip:127.0.0.1:5060;ngcplb=yes;r2=on;ftag=1C59BF8A-587CB7B2000CAAA7-6099A700;lr=on>
        Reason: Q.850;cause=102
        Content-Length: 0



-------------- next part --------------
A non-text attachment was scrubbed...
Name: sngrep.PNG
Type: image/png
Size: 29532 bytes
Desc: sngrep.PNG
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20170116/2d593e2a/attachment-0001.PNG>


More information about the Spce-user mailing list