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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Dec 24 15:41:34 CST 2014


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

Rusty Newton commented on ASTERISK-24488:
-----------------------------------------

I reproduced this issue with a Snom300 (snom300-SIP 8.7.3.25) and SVN-branch-13-r429983.

I had not setup extension monitoring/presence/BLF with Snom phones before, so here is a quick guide for whoever works this issue.

* Setup your Snom phone to register to Asterisk like usual.
* Go to the Setup> Function Keys page of the Snom web GUI.
* Pick a line to use. I used P2(L2).
* In the first column, on the left, choose the identity you configured.
* In the second column choose BLF.
* In the third column enter the identifier for your hint configured in Asterisk. I used "6002" as my hint was setup as:
{noformat}
exten => 6002,hint,SIP/BOB
{noformat}
* Apply and save your configuration. The phone should immediately SUBSCRIBE to Asterisk for the *dialog* event package.

Upon dialing the phone being monitored by the Snom, you should see a NOTIFY get sent to the Snom:

{noformat}
    -- Executing [6002 at from-internal:1] Dial("SIP/ALICE-00000002", "SIP/BOB,30,Tt") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/BOB
set_destination: Parsing <sip:CHARLIE at 10.24.18.21:2048;line=5tonr3op> for address/port to send to
set_destination: set destination to 10.24.18.21:2048
Reliably Transmitting (no NAT) to 10.24.18.21:2048:
NOTIFY sip:CHARLIE at 10.24.18.21:2048;line=5tonr3op SIP/2.0
Via: SIP/2.0/UDP 10.24.18.124:5060;branch=z9hG4bK18c214f6;rport
Max-Forwards: 70
From: <sip:6002 at 10.24.18.124;user=phone>;tag=as5911d088
To: <sip:CHARLIE at 10.24.18.124>;tag=nabty9bj3g
Contact: <sip:6002 at 10.24.18.124:5060>
Call-ID: 549b2e0b787e-u3khy899l7uz
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX SVN-branch-13-r429983
Subscription-State: active
Event: dialog
Content-Type: application/dialog-info+xml
Content-Length: 540

<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="4" state="full" entity="sip:6002 at 10.24.18.124">
<dialog id="6002" call-id="pickup-549b2e0b787e-u3khy899l7uz" local-tag="nabty9bj3g" remote-tag="as5911d088" direction="recipient">
<remote>
<identity display="6002">sip:6002 at 10.24.18.124</identity>
<target uri="sip:6002 at 10.24.18.124"/>
</remote>
<local>
<identity display="6002">sip:6002 at 10.24.18.124</identity>
<target uri="sip:6002 at 10.24.18.124"/>
</local>
<state>early</state>
</dialog>
</dialog-info>
{noformat}




> 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: 13.0.0
>            Reporter: Alejandro Padilla
>            Assignee: Rusty Newton
>         Attachments: issue_24488_full_log, sip_casa.conf, sip.conf
>
>
> 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