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

Miguel Sanz (JIRA) noreply at issues.asterisk.org
Fri Nov 4 07:59:10 CDT 2016


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

Miguel Sanz edited comment on ASTERISK-24488 at 11/4/16 7:57 AM:
-----------------------------------------------------------------

I am having the same issue using Asterisk 11.21.2.

Im my example I am using Grandstream 21XX phones:
- Extension 1004 --> GXP 2130
- Extension 1001 --> GXP 2160
- Extension 1005 --> GXP 2170
- Ext.1004 calls to Ext.1001 and Ext.1005 has monitorized Ext.1001.

I have tried with notifycid=no, notifycid=yes, and notifycid=ignore-context.
With notifycid=no:
I cant see anything on BLF where I have monitored 1001 (I think that this is ok because notificid=no)
With notifycid=yes or notifycid=ignore-context :
I can see on BLF where I have monitored 1001 that 1001 is calling to 1001 (When the correct result should be "1004 is calling to 1001")

*strong* extensions.conf *strong*
{noformat}
[from-internal-gs]
exten => 1001,1,NoOp()
same => n,Dial(SIP/${EXTEN},60,)
same => n,Hangup()

exten => 1004,1,NoOp()
same => n,Dial(SIP/${EXTEN},60,)
same => n,Hangup()

exten => 1005,1,NoOp()
same => n,Dial(SIP/${EXTEN},60,)
same => n,Hangup()

exten => 1001,hint,SIP/1001
exten => 1004,hint,SIP/1004
exten => 1005,hint,SIP/1005

exten => _**1XXX,1,Pickup(${EXTEN:2}@from-internal-gs)
same => n,Hangup()
{noformat}

sip.conf:
{noformat}
[general]
faxdetect=no
vmexten=*97
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=FPBX-12.0.76.4(11.21.2)
disallow=all
allow=alaw
tonezone=es
callevents=no
rtpend=20000
rtpstart=10000
language=es
bindport=5060
jbenable=no
registertimeout=20
registerattempts=0
allowguest=yes
rtpholdtimeout=300
rtpkeepalive=0
rtptimeout=30
srvlookup=no
canreinvite=no
checkmwi=10
defaultexpiry=120
videosupport=no
g726nonstandard=no
maxcallbitrate=384
maxexpiry=3600
minexpiry=60
nat=never
ALLOW_SIP_ANON=no
externip=62.14.255.158
localnet=192.168.1.0/255.255.255.0
localnet=192.168.6.0/255.255.255.0
subscribecontext=from-internal-gs
trustrpid=yes
sendrpid=pai
notifycid=yes

[1001]
deny=0.0.0.0/0.0.0.0
disallow=all
secret=
dtmfmode=rfc2833
canreinvite=no
context=from-internal-gs
host=dynamic
trustrpid=yes
mediaencryption=no
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp,tcp,tls
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=31
pickupgroup=31
allow=alaw
dial=SIP/1001
mailbox=1001 at default
permit=0.0.0.0/0.0.0.0
callerid=Edi <1001>
callcounter=yes
faxdetect=no
cc_monitor_policy=
subscribecontext=from-internal-gs

[1004]
deny=0.0.0.0/0.0.0.0
disallow=all
secret=
dtmfmode=rfc2833
canreinvite=no
context=from-internal-gs
host=dynamic
trustrpid=yes
mediaencryption=no
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp,tcp,tls
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=31
pickupgroup=31
allow=alaw
dial=SIP/1004
mailbox=1004 at default
permit=0.0.0.0/0.0.0.0
callerid=Albert <1004>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
subscribecontext=from-internal-gs

[1005]
deny=0.0.0.0/0.0.0.0
disallow=all
secret=
dtmfmode=rfc2833
canreinvite=no
context=from-internal-gs
host=dynamic
trustrpid=yes
mediaencryption=no
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp,tcp,tls
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=31
pickupgroup=31
allow=alaw
dial=SIP/1005
permit=0.0.0.0/0.0.0.0
callerid=Oscar <1005>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
subscribecontext=from-internal-gs
{noformat}

Notify dialog-info+xml send by Asterisk to the Ext.1005:
{noformat}
NOTIFY sip:1005 at 192.168.1.169:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.41:5060;branch=z9hG4bK2d1bcc18;rport
Max-Forwards: 70
From: <sip:1001 at 192.168.1.40>;tag=as392d3a2d
To: <sip:1005 at 192.168.1.40>;tag=60618332
Contact: <sip:1001 at 192.168.1.41:5060>
Call-ID: 801912290-5060-4 at BJC.BGI.B.BGJ
CSeq: 130 NOTIFY
User-Agent: FPBX-12.0.76.4(11.21.2)
Subscription-State: active
Event: dialog
Content-Type: application/dialog-info+xml
Content-Length: 544

<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="28" state="full" entity="sip:1001 at 192.168.1.40">
<dialog id="1001" call-id="pickup-801912290-5060-4 at BJC.BGI.B.BGJ" local-tag="60618332" remote-tag="as392d3a2d" direction="recipient">
<remote>
<identity display="1001">sip:1001 at 192.168.1.40</identity>
<target uri="sip:1001 at 192.168.1.40"/>
</remote>
<local>
<identity display="1001">sip:1001 at 192.168.1.40</identity>
<target uri="sip:1001 at 192.168.1.40"/>
</local>
<state>early</state>
</dialog>
</dialog-info>
{noformat}

If it is possible I am going to upload a trace made with ngrep  (notifycid=yes) when 1004 calls to 1001 and 1005 try to do a pickup  --> Ngrep_Trace-notifycid_yes.txt


was (Author: miguelsanzpardo):
I am having the same issue using Asterisk 11.21.2.

Im my example I am using Grandstream 21XX phones:
- Extension 1004 --> GXP 2130
- Extension 1001 --> GXP 2160
- Extension 1005 --> GXP 2170
- Ext.1004 calls to Ext.1001 and Ext.1005 has monitorized Ext.1001.

I have tried with notifycid=no, notifycid=yes, and notifycid=ignore-context.
With notifycid=no:
I cant see anything on BLF where I have monitored 1001 (I think that this is ok because notificid=no)
With notifycid=yes or notifycid=ignore-context :
I can see on BLF where I have monitored 1001 that 1001 is calling to 1001 (When the correct result should be "1004 is calling to 1001")

extensions.conf
[from-internal-gs]
exten => 1001,1,NoOp()
same => n,Dial(SIP/${EXTEN},60,)
same => n,Hangup()

exten => 1004,1,NoOp()
same => n,Dial(SIP/${EXTEN},60,)
same => n,Hangup()

exten => 1005,1,NoOp()
same => n,Dial(SIP/${EXTEN},60,)
same => n,Hangup()

exten => 1001,hint,SIP/1001
exten => 1004,hint,SIP/1004
exten => 1005,hint,SIP/1005

exten => _**1XXX,1,Pickup(${EXTEN:2}@from-internal-gs)
same => n,Hangup()

sip.conf:
[general]
faxdetect=no
vmexten=*97
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=FPBX-12.0.76.4(11.21.2)
disallow=all
allow=alaw
tonezone=es
callevents=no
rtpend=20000
rtpstart=10000
language=es
bindport=5060
jbenable=no
registertimeout=20
registerattempts=0
allowguest=yes
rtpholdtimeout=300
rtpkeepalive=0
rtptimeout=30
srvlookup=no
canreinvite=no
checkmwi=10
defaultexpiry=120
videosupport=no
g726nonstandard=no
maxcallbitrate=384
maxexpiry=3600
minexpiry=60
nat=never
ALLOW_SIP_ANON=no
externip=62.14.255.158
localnet=192.168.1.0/255.255.255.0
localnet=192.168.6.0/255.255.255.0
subscribecontext=from-internal-gs
trustrpid=yes
sendrpid=pai
notifycid=yes

[1001]
deny=0.0.0.0/0.0.0.0
disallow=all
secret=
dtmfmode=rfc2833
canreinvite=no
context=from-internal-gs
host=dynamic
trustrpid=yes
mediaencryption=no
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp,tcp,tls
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=31
pickupgroup=31
allow=alaw
dial=SIP/1001
mailbox=1001 at default
permit=0.0.0.0/0.0.0.0
callerid=Edi <1001>
callcounter=yes
faxdetect=no
cc_monitor_policy=
subscribecontext=from-internal-gs

[1004]
deny=0.0.0.0/0.0.0.0
disallow=all
secret=
dtmfmode=rfc2833
canreinvite=no
context=from-internal-gs
host=dynamic
trustrpid=yes
mediaencryption=no
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp,tcp,tls
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=31
pickupgroup=31
allow=alaw
dial=SIP/1004
mailbox=1004 at default
permit=0.0.0.0/0.0.0.0
callerid=Albert <1004>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
subscribecontext=from-internal-gs

[1005]
deny=0.0.0.0/0.0.0.0
disallow=all
secret=
dtmfmode=rfc2833
canreinvite=no
context=from-internal-gs
host=dynamic
trustrpid=yes
mediaencryption=no
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp,tcp,tls
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=31
pickupgroup=31
allow=alaw
dial=SIP/1005
permit=0.0.0.0/0.0.0.0
callerid=Oscar <1005>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
subscribecontext=from-internal-gs


Notify dialog-info+xml send by Asterisk to the Ext.1005:
{noformat}
NOTIFY sip:1005 at 192.168.1.169:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.41:5060;branch=z9hG4bK2d1bcc18;rport
Max-Forwards: 70
From: <sip:1001 at 192.168.1.40>;tag=as392d3a2d
To: <sip:1005 at 192.168.1.40>;tag=60618332
Contact: <sip:1001 at 192.168.1.41:5060>
Call-ID: 801912290-5060-4 at BJC.BGI.B.BGJ
CSeq: 130 NOTIFY
User-Agent: FPBX-12.0.76.4(11.21.2)
Subscription-State: active
Event: dialog
Content-Type: application/dialog-info+xml
Content-Length: 544

<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="28" state="full" entity="sip:1001 at 192.168.1.40">
<dialog id="1001" call-id="pickup-801912290-5060-4 at BJC.BGI.B.BGJ" local-tag="60618332" remote-tag="as392d3a2d" direction="recipient">
<remote>
<identity display="1001">sip:1001 at 192.168.1.40</identity>
<target uri="sip:1001 at 192.168.1.40"/>
</remote>
<local>
<identity display="1001">sip:1001 at 192.168.1.40</identity>
<target uri="sip:1001 at 192.168.1.40"/>
</local>
<state>early</state>
</dialog>
</dialog-info>
{noformat}

If it is possible I am going to upload a trace made with ngrep  (notifycid=yes) when 1004 calls to 1001 and 1005 try to do a pickup  --> Ngrep_Trace-notifycid_yes.txt

> 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