[asterisk-bugs] [JIRA] (ASTERISK-28761) Assigning CallerIDNum from DNIDDigits to chan_pjsip
Vyrva Igor (JIRA)
noreply at issues.asterisk.org
Mon Mar 2 01:35:25 CST 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249864#comment-249864 ]
Vyrva Igor commented on ASTERISK-28761:
---------------------------------------
Example DialPlan:
{code}
exten => *777,1,NoOp(--- Test PJSIP ---)
same => n,GoTo(test,1)
exten => test,1,NoOp(--- Test ---)
same => n,DumpChan()
same => n,Queue(test)
same => n,HangUp()
[sub-test]
exten => s,1,NoOp(--- TEST GoSub ---)
same => n,DumpChan
same => n,Return()
{code}
Queue test:
{code}
test]
setqueuevar = yes ;Для работы ${QUEUENAME}
ringinuse = yes
member => PJSIP/666,1,Test User
membergosub = sub-test
{code}
PJSIP/422 added from CLI
{code}
queue add member PJSIP/422 to test penalty 1
{code}
{code}
queue show test
test has 0 calls (max unlimited) in 'ringall' strategy (2s holdtime, 2s talktime), W:0, C:1, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/422 with penalty 1 (ringinuse enabled) (dynamic) (Not in use) has taken 1 calls (last was 199 secs ago)
Test User (PJSIP/666) with penalty 1 (ringinuse enabled) (Unavailable) has taken no calls yet
No Callers
{code}
DumpChan channel
{code}
Dumping Info For Channel: PJSIP/423-00000099:
================================================================================
Info:
Name= PJSIP/423-00000099
Type= PJSIP
UniqueID= 1583133481.160
LinkedID= 1583133481.160
CallerIDNum= 423
CallerIDName= Igor Vyrva
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits= *777
RDNIS= (N/A)
{code}
DumpChan dstchannel
{code}
Dumping Info For Channel: PJSIP/422-0000009a:
================================================================================
Info:
Name= PJSIP/422-0000009a
Type= PJSIP
UniqueID= 1583133481.161
LinkedID= 1583133481.160
CallerIDNum= *777
CallerIDName= (N/A)
ConnectedLineIDNum= 423
ConnectedLineIDName=Igor Vyrva
DNIDDigits= (N/A)
RDNIS= (N/A)
{code}
If application Dial with 'b' (The rest is identical, just use Dial instead of Queue)
DumpChan dstchannel
{code}
Dumping Info For Channel: PJSIP/422-0000009e:
================================================================================
Info:
Name= PJSIP/422-0000009e
Type= PJSIP
UniqueID= 1583134114.165
LinkedID= 1583134114.164
CallerIDNum= test
CallerIDName= (N/A)
ConnectedLineIDNum= 423
ConnectedLineIDName=Igor Vyrva
DNIDDigits= (N/A)
RDNIS= (N/A)
{code}
If application Dial with 'U' (The rest is identical, just use Dial instead of Queue)
DumpChan dstchannel
{code}
Dumping Info For Channel: PJSIP/422-000000a0:
================================================================================
Info:
Name= PJSIP/422-000000a0
Type= PJSIP
UniqueID= 1583134310.167
LinkedID= 1583134310.166
CallerIDNum= test
CallerIDName= (N/A)
ConnectedLineIDNum= 423
ConnectedLineIDName=Igor Vyrva
DNIDDigits= (N/A)
RDNIS= (N/A)
{code}
DumpChan channel differs only by the channel number
> Assigning CallerIDNum from DNIDDigits to chan_pjsip
> ----------------------------------------------------
>
> Key: ASTERISK-28761
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28761
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_pjsip
> Affects Versions: 16.8.0
> Environment: CentOS 7
> Asterisk 16.8 (src)
> Reporter: Vyrva Igor
> Severity: Minor
>
> If the channel that responds to the Dial/Queue (dstchannel) call is running on chan_pjsip for it, the CallerIDNum parameter takes the value from the DNIDDigits parameter of the call Initiator (channel)
> Channel:
> {code}
> Name= SIP/423-00000031
> Type= SIP
> UniqueID= 1582885712.361
> LinkedID= 1582885712.361
> CallerIDNum= 423
> CallerIDName= AP-423
> ConnectedLineIDNum= (N/A)
> ConnectedLineIDName=(N/A)
> DNIDDigits= 300
> {code}
> Dstchannel:
> {code}
> Name= PJSIP/666-00000003
> Type= PJSIP
> UniqueID= 1582885712.364
> LinkedID= 1582885712.361
> CallerIDNum= 300
> CallerIDName= (N/A)
> ConnectedLineIDNum= 423
> ConnectedLineIDName= AP-423
> DNIDDigits= (N/A)
> {code}
> However, if the meeting works in chan_sip that happens
> Channel
> {code}
> Name= SIP/423-00000036
> Type= SIP
> UniqueID= 1582896505.420
> LinkedID= 1582896505.420
> CallerIDNum= 423
> CallerIDName= AP-423
> ConnectedLineIDNum= (N/A)
> ConnectedLineIDName=(N/A)
> DNIDDigits= 300
> {code}
> Dstchannel
> {code}
> Name= SIP/422-00000037
> Type= SIP
> UniqueID= 1582896505.423
> LinkedID= 1582896505.420
> CallerIDNum= (N/A)
> CallerIDName= (N/A)
> ConnectedLineIDNum= 423
> ConnectedLineIDName=AP-423
> DNIDDigits= (N/A)
> {code}
> If, before making a call, we delete the information from DNIDDigits, then for PJSIP we get in CallerIDNum=${EXTEN} from which the Dial/Queue is made
> Channel
> Executing [anonym11 at test-line:10] Set("SIP/423-00000038", "CALLERID(dnid)= ") in new stack
> {code}
> Name= SIP/423-00000038
> Type= SIP
> UniqueID= 1582896895.436
> LinkedID= 1582896895.436
> CallerIDNum= 423
> CallerIDName= AP-423
> ConnectedLineIDNum= (N/A)
> ConnectedLineIDName=(N/A)
> DNIDDigits= (N/A)
> {code}
> Dstchannel
> {code}
> Name= PJSIP/666-00000006
> Type= PJSIP
> UniqueID= 1582896895.439
> LinkedID= 1582896895.436
> CallerIDNum= anonym11
> CallerIDName= (N/A)
> ConnectedLineIDNum= 423
> ConnectedLineIDName=AP-423
> DNIDDigits= (N/A)
> {code}
> Is it really a bug or is it specifically made this way?
> If specifically-how to disable it?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list