PJSIP Crashes

Home » Asterisk Users » PJSIP Crashes
Asterisk Users 3 Comments

PJISP cannot handle the From field when it does not contain a number. Can this be fixed?

[Feb 25 12:35:43] ERROR[7143]: pjproject: : sip_transport.c Error processing 400 bytes packet from UDP 8.38.43.67:5060 : PJSIP syntax error exception when parsing ‘From’ header on line 4 col 40:
CANCEL sip:14408785990@162.255.138.102:5060 SIP/2.0
Via: SIP/2.0/UDP 8.38.43.67:5060;branch=z9hG4bK1sansay261086943rdb109274
To:
From: “Radefeld Dental”

3 thoughts on - PJSIP Crashes

  • Did you try to remove the space or replace it (eg underscore) in SIP id like> ?

    Le 25/02/2020 à 18:40, Saint Michael a écrit :

  • Sure it can, but:

    sip:Radefeld Dental@8.38.43.67

    Is not a valid SIP URI (it can’t contain a space). Is Asterisk actually
    “crashing” or are you just seeing this error in your logs?

    Kind regards, Sean

  • That’s exactly what it is doing unless I am misunderstanding. You didn’t answer my question last time – is Asterisk actually “crashing?”

    If you are able to provide reproducing steps, feel free to open an issue¹ and someone will take a look at it. If you don’t want to do that for whatever reason, you can install a proxy (like Kamailio) in front of your Asterisk server which can weed out malformed SIP packets like the example one you provided.

    Kind regards, Sean

    [1] https://issues.asterisk.org/jira