[asterisk-bugs] [JIRA] (ASTERISK-24488) Wrong remote identity and target in dialog package XML in NOTIFY

Thierry Magnien (JIRA) noreply at issues.asterisk.org
Thu Aug 10 07:26:09 CDT 2017


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

Thierry Magnien commented on ASTERISK-24488:
--------------------------------------------

Hi. I proposed a patch for code review. It does not really fixes the bug but may be an acceptable workaround.

In fact, XML is built when device reaches ringing state, but at this stage, the underlying channel is not in ringing state and is not yet bound to the monitored extension. So remote id can't be determined.

I did not find the perfect solution but result is that several (3 in my tests) NOTIFY are sent to the SNOM phone, first and second being empty, the latest containing the correct values. SNOM phone then displays the correct values.

> Wrong remote identity and target in dialog package XML in NOTIFY
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-24488
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24488
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General, Core/General
>    Affects Versions: SVN, 13.1.0
>            Reporter: Alejandro Padilla
>         Attachments: issue_24488_full_log, Ngrep_Trace-notifycid_yes.txt, sip_casa.conf, sip.conf
>
>
> [Edit by Rusty - This issue is seen with devices that subscribe to the RFC4235 Dialog event package]
> Hi, i had installed the new version asterisk 13.0.0 , and i found a issue on xml-info send to the phones on extensions monitoring.
> In this example the extension 1080 are calling  to extension  1002 
> im monitoring the 1002 extension with blf and snom phone with other extension, and now i received this xml:
> {noformat}
> ?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="9" state="full" entity="sip:1002 at pbx.casa.local">
> <dialog id="1002" call-id="pickup-080f0000be77-dq09hphbjmcr" local-tag="pndu3ilpwj" remote-tag="as03ca48d8" direction="recipient">
> <remote>
> <identity display="1002">sip:1002 at pbx.casa.local</identity>
> <target uri="sip:1002 at pbx.casa.local"/>
> </remote>
> <local>
> <identity display="1002">sip:1002 at pbx.casa.local</identity>
> <target uri="sip:1002 at pbx.casa.local"/>
> </local>
> <state>early</state>
> </dialog>
> </dialog-info>
> {noformat}
> In before version of asterisk and same configuration im receiving this:
> {noformat}
> ?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="13" state="full" entity="sip:1 at pbx.casa.local">
> <dialog id="1" call-id="pickup-0d100000a26a-r4fxlunt57hh" local-tag="we84z74osq" remote-tag="as78081848" direction="recipient">
> <remote>
> <identity display="tel760">sip:1080 at pbx.casa.local</identity>
> <target uri="sip:1080 at pbx.casa.local"/>
> </remote>
> <local>
> <identity display="tel870">sip:1002 at pbx.casa.local</identity>
> <target uri="sip:1002 at pbx.casa.local"/>
> </local>
> <state>early</state>
> </dialog>
> </dialog-info>
> {noformat}
> I have this on sip.conf on both servers asterisk 11 and asterisk 13:
> {noformat}
> notifycid=ignore-context
> trustrpid=no
> sendrpid=yes
> {noformat}
> Regards



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



More information about the asterisk-bugs mailing list