[asterisk-bugs] [JIRA] (ASTERISK-24601) [patch]Missing RFC4235 tags and attributes in PJSIP NOTIFY event: dialog XML body
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu Jun 16 15:01:52 CDT 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-24601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-24601:
-------------------------------------
Target Release Version/s: 18.13.0
> [patch]Missing RFC4235 tags and attributes in PJSIP NOTIFY event: dialog XML body
> ----------------------------------------------------------------------------------
>
> Key: ASTERISK-24601
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24601
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: pjproject/pjsip
> Affects Versions: SVN, 13.1.0, 13.2.0
> Environment: debian
> Reporter: Marco Paland
> Severity: Major
> Labels: patch, pjsip
> Target Release: 16.19.0, 18.5.0, 19.0.0, 16.27.0, 18.13.0
>
> Attachments: 0001-WIP.patch, 11-dialog-info.patch, 16.8-res_pjsip_dialog_info_body_generator.patch, direction_recipient.patch, extensions.conf, pjsip.conf, pjsip_dialog_info_direction.patch, res_pjsip_dialog_info_body_generator.c
>
>
> I'm having a similar MAJOR issue, which makes 13.0.0 unusable with snom phones.
> We are using the PJSIP stack, not the chan_sip.
> The NOTIFY header (at ext 1010) of a ringing extension (1005) looks like:
> {code}
> <--- Transmitting SIP request (808 bytes) to UDP:192.168.1.155:36578 --->
> NOTIFY sip:1010 at 192.168.1.155:36578 SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.1:5060;rport;branch=z9hG4bKPjbaab25f1-9a22-4e9d-95f0-0311eba3d937
> From: <sip:1005 at 192.168.1.1>;tag=94d2b042-dfe5-4d56-bc1b-77b212dd4d0f
> To: <sip:1010 at 192.168.1.1>;tag=54wyd8hmq4
> Contact: <sip:192.168.1.1:5060>
> Call-ID: 313431373934373935333433383134-n1tmcldgl41x
> CSeq: 25798 NOTIFY
> Event: dialog
> Subscription-State: active;expires=3500
> Allow-Events: message-summary, presence, dialog, refer
> Max-Forwards: 70
> User-Agent: Asterisk
> Content-Type: application/dialog-info+xml
> Content-Length: 228
> <?xml version="1.0" encoding="UTF-8"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="1" state="full" entity="sip:1005 at 200.200.200.200:5060">
> <dialog id="1005">
> <state>early</state>
> </dialog>
> </dialog-info>
> {code}
> Issues:
> - <remote> and <local> tags of the dialog are missing completely
> - No (IMPORTANT) direction="recipient" attribute in <dialog> tag
> - entity="sip:1005 at 200.200.200.200:5060" is outside IP, but inside IP (192.168.1.1) is needed
> I had a short look in the actual res_pjsip_dialog_info_body_generator.c code and it seems that the first two points are missing.
> In 11.9.0 with chan_sip the NOTIFY dialog body looked like:
> {code}
> <?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="400" state="full" entity="sip:1001 at 192.168.1.1">
> <dialog id="1001" call-id="pickup-313431373935383030383437363430-nfo981jwg9s8" local-tag="79zeqhuwdv" remote-tag="as6fb48de2" direction="recipient">
> <remote>
> <identity display="0174333">sip:0174333 at 192.168.1.1</identity>
> <target uri="sip:0174333 at 192.168.1.1"/>
> </remote>
> <local>
> <identity display="Counter">sip:1001 at 192.168.1.1</identity>
> <target uri="sip:1001 at 192.168.1.1"/>
> </local>
> <state>early</state>
> </dialog>
> </dialog-info>
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list