[asterisk-bugs] [JIRA] (ASTERISK-28995) Asterisk client get sip_parser and sip_transport error

Sean Bright (JIRA) noreply at issues.asterisk.org
Mon Jul 20 15:42:25 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251466#comment-251466 ] 

Sean Bright edited comment on ASTERISK-28995 at 7/20/20 3:41 PM:
-----------------------------------------------------------------

>From RFC 3261 Section 10.2:

{noformat}
The "expires" parameter indicates how long the UA would
like the binding to be valid.  The value is a number
indicating seconds.  If this parameter is not provided, the
value of the Expires header field is used instead.
Implementations MAY treat values larger than 2**32-1
(4294967295 seconds or 136 years) as equivalent to 2**32-1.
Malformed values SHOULD be treated as equivalent to 3600.
{noformat}

This should have already been fixed in [this patch|https://github.com/pjsip/pjproject/commit/3f58d4d10dfe01b51cca84449c18f0bb6fa6b473#diff-f5ebdf4e57a12185be65c65b2ec64262]. Are you using the bundled version of pjproject?


was (Author: seanbright):
>From RFC 3261 Section 10.2:

{noformat}
The "expires" parameter indicates how long the UA would
like the binding to be valid.  The value is a number
indicating seconds.  If this parameter is not provided, the
value of the Expires header field is used instead.
Implementations MAY treat values larger than 2**32-1
(4294967295 seconds or 136 years) as equivalent to 2**32-1.
Malformed values SHOULD be treated as equivalent to 3600.
{noformat}

> Asterisk client get sip_parser and sip_transport error
> ------------------------------------------------------
>
>                 Key: ASTERISK-28995
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28995
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 16.12.0
>         Environment: Debian 10/64 with Asterisk compiled from source 
>            Reporter: tootai
>            Assignee: Unassigned
>         Attachments: Asterisk-28995-log1
>
>
> Client asterisk can't no more register getting
> [Jul 18 18:16:41] ERROR[16446]: pjproject: <?>:           sip_parser.c Error parsing '2699878327': String value was greater than the maximum allowed value.   
> [Jul 18 18:16:41] ERROR[16446]: pjproject: <?>:         sip_transport. Error processing 557 bytes packet from UDP 10.1.58.11:5060 : PJSIP invalid value error 
> exception when parsing 'Contact' header on line 8 col -1:                                                                                                     
> SIP/2.0 200 OK                                                                                                                                                
> Via: SIP/2.0/UDP 10.99.3.25:5060;rport=5060;received=10.99.3.25;branch=z9hG4bKPj14b7789f-2b4a-4b86-a5f8-da30ee91620f                                          
> Call-ID: 3516f022-c9a9-4e6d-a5f7-1c41e71dc3e5                                                                                                                 
> From: <sip:33388086940 at 10.1.58.11>;tag=5208efde-b08d-4f25-abd0-a567ff0ee1f6                                                                                   
> To: <sip:33388086940 at 10.1.58.11>;tag=z9hG4bKPj14b7789f-2b4a-4b86-a5f8-da30ee91620f                                                                            
> CSeq: 25192 REGISTER                                                                                                                                          
> Date: Sat, 18 Jul 2020 16:16:09 GMT                                                                                                                           
> Contact: <sip:10.99.3.25:5060>;expires=2699878327                                                                                                             
> Contact: <sip:s at 10.99.3.25:5060>;expires=3599
> Expires: 3600
> Server: TOOTAiAudio
> Content-Length:  0
> -- end of packet. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list