[asterisk-bugs] [JIRA] (ASTERISK-28767) res_pjsip_caller_id: Caller ID setting delayed resulting in extension not found
Oleg (JIRA)
noreply at issues.asterisk.org
Tue Mar 10 02:02:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249961#comment-249961 ]
Oleg edited comment on ASTERISK-28767 at 3/10/20 2:00 AM:
----------------------------------------------------------
Does not work.
aster16*CLI> dialplan show DLPN_DialPlan1
[ Context 'DLPN_DialPlan1' created by 'res_pjsip_config_wizard' ]
'1000' => hint: PJSIP/bob [res_pjsip_config_wizard]
1. Gosub(stdexten,${EXTEN},1(${HINT})) [res_pjsip_config_wizard]
'1001' => hint: PJSIP/alice [res_pjsip_config_wizard]
1. Gosub(stdexten,${EXTEN},1(${HINT})) [res_pjsip_config_wizard]
'2000' => hint: PJSIP/2000 [res_pjsip_config_wizard]
1. Gosub(stdexten,${EXTEN},1(${HINT})) [res_pjsip_config_wizard]
'_8[89]XXXXXXXXX' (CID match '2000') => 1. Answer() [extensions.conf:7]
2. Verbose(44444444444 CID ${CALLERID(num)}) [extensions.conf:8]
3. Dumpchan() [extensions.conf:9]
4. Wait(1) [extensions.conf:10]
5. Hangup() [extensions.conf:11]
'_8[89]XXXXXXXXX' (CID match '_2000') => 1. Answer() [extensions.conf:2]
2. Verbose(111111111111111111 CID ${CALLERID(num)}) [extensions.conf:3]
3. Dumpchan() [extensions.conf:4]
4. Wait(1) [extensions.conf:5]
5. Hangup() [extensions.conf:6]
'_8[89]XXXXXXXXX' => 1. Answer() [extensions.conf:12]
2. Verbose(!!!!!!!!!!!! CID ${CALLERID(num)}) [extensions.conf:13]
3. Dumpchan() [extensions.conf:14]
4. Wait(1) [extensions.conf:15]
5. Hangup() [extensions.conf:16]
-= 6 extensions (21 priorities) in 1 context. =-
== Setting global variable 'SIPDOMAIN' to '10.40.8.162'
-- Executing [89051333333 at DLPN_DialPlan1:1] Answer("PJSIP/2000-00000000", "") in new stack
> 0x7f32240197e0 -- Strict RTP learning after remote address set to: 10.40.4.223:51548
> 0x7f32240197e0 -- Strict RTP switching to RTP target address 10.40.4.223:51548 as source
-- Executing [89051333333 at DLPN_DialPlan1:2] Verbose("PJSIP/2000-00000000", "44444444444 CID 2000") in new stack
44444444444 CID 2000
-- Executing [89051333333 at DLPN_DialPlan1:3] DumpChan("PJSIP/2000-00000000", "") in new stack
Dumping Info For Channel: PJSIP/2000-00000000:
================================================================================
Info:
Name= PJSIP/2000-00000000
Type= PJSIP
UniqueID= 1583823500.0
LinkedID= 1583823500.0
CallerIDNum= 2000
CallerIDName= Ananas
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits= 89051333333
RDNIS= (N/A)
Parkinglot=
Language= en
State= Up (6)
Rings= 1
NativeFormat= (alaw)
WriteFormat= alaw
ReadFormat= alaw
RawWriteFormat= alaw
RawReadFormat= alaw
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= -1
Framesin= 14
Framesout= 0
TimetoHangup= 0
ElapsedTime= 0h0m0s
BridgeID= (Not bridged)
Context= DLPN_DialPlan1
Extension= 89051333333
Priority= 3
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
================================================================================
-- Executing [89051333333 at DLPN_DialPlan1:4] Wait("PJSIP/2000-00000000", "1") in new stack
-- Executing [89051333333 at DLPN_DialPlan1:5] Hangup("PJSIP/2000-00000000", "") in new stack
== Spawn extension (DLPN_DialPlan1, 89051333333, 5) exited non-zero on 'PJSIP/2000-00000000'
aster16*CLI> dialplan show DLPN_DialPlan1
[ Context 'DLPN_DialPlan1' created by 'res_pjsip_config_wizard' ]
'1000' => hint: PJSIP/bob [res_pjsip_config_wizard]
1. Gosub(stdexten,${EXTEN},1(${HINT})) [res_pjsip_config_wizard]
'1001' => hint: PJSIP/alice [res_pjsip_config_wizard]
1. Gosub(stdexten,${EXTEN},1(${HINT})) [res_pjsip_config_wizard]
'2000' => hint: PJSIP/2000 [res_pjsip_config_wizard]
1. Gosub(stdexten,${EXTEN},1(${HINT})) [res_pjsip_config_wizard]
'_8[89]XXXXXXXXX' (CID match '2000') => 1. Answer() [extensions.conf:7]
2. Verbose(44444444444 CID ${CALLERID(num)}) [extensions.conf:8]
3. Dumpchan() [extensions.conf:9]
4. Wait(1) [extensions.conf:10]
5. Hangup() [extensions.conf:11]
'_8[89]XXXXXXXXX' (CID match '_2000') => 1. Answer() [extensions.conf:2]
2. Verbose(111111111111111111 CID ${CALLERID(num)}) [extensions.conf:3]
3. Dumpchan() [extensions.conf:4]
4. Wait(1) [extensions.conf:5]
5. Hangup() [extensions.conf:6]
-= 5 extensions (16 priorities) in 1 context. =-
[Mar 10 09:59:19] NOTICE[49480]: res_pjsip_session.c:3078 new_invite: Call from '2000' (UDP:10.40.4.223:63076) to extension '89051333333' rejected because extension not found in context 'DLPN_DialPlan1'.
aster16*CLI>
was (Author: olegsenin):
Does not work.
Do you need logs?
> res_pjsip_caller_id: Caller ID setting delayed resulting in extension not found
> -------------------------------------------------------------------------------
>
> Key: ASTERISK-28767
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28767
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_pjsip, Resources/res_pjsip_caller_id
> Affects Versions: 16.0.1, 16.8.0
> Reporter: Oleg
> Assignee: Unassigned
> Labels: patch
> Attachments: 3333.jpg, ASTERISK-28767.diff
>
>
> {noformat}
> [DLPN_DialPlan1]
> exten => _8[89]XXXXXXXXX/_2000,1,Answer()
> same => n,Verbose(111111111111111111 CID ${CALLERID(num)})
> same => n,Dumpchan()
> same => n,Wait(1)
> same => n,Hangup
> exten => _8[89]XXXXXXXXX/2000,1,Answer()
> same => n,Verbose(44444444444 CID ${CALLERID(num)})
> same => n,Dumpchan()
> same => n,Wait(1)
> same => n,Hangup
> exten => _8[89]XXXXXXXXX,1,Answer()
> same => n,Verbose(!!!!!!!!!!!! CID ${CALLERID(num)})
> same => n,Dumpchan()
> same => n,Wait(1)
> same => n,Hangup
> {noformat}
> Asterisk:
> {noformat}
> Setting global variable 'SIPDOMAIN' to '10.40.8.162'
> -- Executing [89051333333 at DLPN_DialPlan1:1] Answer("PJSIP/2000-00000004", "") in new stack
> > 0x7f262405f0d0 -- Strict RTP learning after remote address set to: 10.40.4.223:50836
> > 0x7f262405f0d0 -- Strict RTP switching to RTP target address 10.40.4.223:50836 as source
> -- Executing [89051333333 at DLPN_DialPlan1:2] Verbose("PJSIP/2000-00000004", "44444444444 CID 2000") in new stack
> 44444444444 CID 2000
> -- Executing [89051333333 at DLPN_DialPlan1:3] DumpChan("PJSIP/2000-00000004", "") in new stack
> {noformat}
> Dumping Info For Channel: PJSIP/2000-00000004:
> {noformat}
> ================================================================================
> Info:
> Name= PJSIP/2000-00000004
> Type= PJSIP
> UniqueID= 1583394430.6
> LinkedID= 1583394430.6
> CallerIDNum= 2000
> CallerIDName= Ananas
> ConnectedLineIDNum= (N/A)
> ConnectedLineIDName=(N/A)
> DNIDDigits= 89051333333
> RDNIS= (N/A)
> Parkinglot=
> Language= en
> State= Up (6)
> Rings= 1
> NativeFormat= (alaw)
> WriteFormat= alaw
> ReadFormat= alaw
> RawWriteFormat= alaw
> RawReadFormat= alaw
> WriteTranscode= No
> ReadTranscode= No
> 1stFileDescriptor= -1
> Framesin= 15
> Framesout= 0
> TimetoHangup= 0
> ElapsedTime= 0h0m0s
> BridgeID= (Not bridged)
> Context= DLPN_DialPlan1
> Extension= 89051333333
> Priority= 3
> CallGroup=
> PickupGroup=
> Application= DumpChan
> Data= (Empty)
> Blocking_in= (Not Blocking)
> {noformat}
> Variables:
> {noformat}
> ================================================================================
> -- Executing [89051333333 at DLPN_DialPlan1:4] Wait("PJSIP/2000-00000004", "1") in new stack
> -- Executing [89051333333 at DLPN_DialPlan1:5] Hangup("PJSIP/2000-00000004", "") in new stack
> == Spawn extension (DLPN_DialPlan1, 89051333333, 5) exited non-zero on 'PJSIP/2000-00000004'[/spoiler]
> {noformat}
> Delete the bottom lines:
> {noformat}
> [DLPN_DialPlan1]
> exten => _8[89]XXXXXXXXX/_2000,1,Answer()
> same => n,Verbose(111111111111111111 CID ${CALLERID(num)})
> same => n,Dumpchan()
> same => n,Wait(1)
> same => n,Hangup
> exten => _8[89]XXXXXXXXX/2000,1,Answer()
> same => n,Verbose(44444444444 CID ${CALLERID(num)})
> same => n,Dumpchan()
> same => n,Wait(1)
> same => n,Hangup
> ; exten => _8[89]XXXXXXXXX,1,Answer()
> ; same => n,Verbose(!!!!!!!!!!!! CID ${CALLERID(num)})
> ; same => n,Dumpchan()
> ; same => n,Wait(1)
> ; same => n,Hangup
> {noformat}
> Asterisk:
> {noformat}
> [Mar 5 10:53:05] NOTICE[2216]: res_pjsip_session.c:3078 new_invite: Call from '2000' (UDP:10.40.4.223:54005) to extension '89051333333' rejected because extension not found in context 'DLPN_DialPlan1'.
> {noformat}
> pjsip_wizard.conf
> {noformat}
> [user_defaults](!)
> type = wizard
> transport = ipv4
> accepts_registrations = yes
> sends_registrations = no
> accepts_auth = yes
> sends_auth = no
> has_hint = yes
> hint_context = DLPN_DialPlan1
> hint_application = Gosub(stdexten,${EXTEN},1(${HINT}))
> endpoint/context = DLPN_DialPlan1
> endpoint/allow_subscribe = yes
> endpoint/allow = !all,alaw
> endpoint/direct_media = yes
> endpoint/force_rport = yes
> endpoint/disable_direct_media_on_nat = yes
> endpoint/direct_media_method = invite
> endpoint/ice_support = yes
> endpoint/moh_suggest = default
> endpoint/send_rpid = yes
> endpoint/rewrite_contact = yes
> endpoint/send_pai = yes
> endpoint/allow_transfer = yes
> endpoint/trust_id_inbound = yes
> endpoint/device_state_busy_at = 1
> endpoint/trust_id_outbound = yes
> endpoint/send_diversion = yes
> aor/qualify_frequency = 30
> aor/authenticate_qualify = no
> aor/max_contacts = 1
> aor/remove_existing = yes
> aor/minimum_expiration = 30
> aor/support_path = yes
>
> [bob](user_defaults)
> hint_exten = 1000
> inbound_auth/username = bob
> inbound_auth/password = bobspassword
>
> [alice](user_defaults)
> hint_exten = 1001
> endpoint/callerid = Alice <1001>
> inbound_auth/username = alice
> inbound_auth/password = alicespassword
> [2000](user_defaults)
> hint_exten = 2000
> endpoint/callerid = Ananas <2000>
> inbound_auth/username = 2000
> inbound_auth/password = Ananas2000
> {noformat}
> With the sip driver, the bottom line was not required.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list