[asterisk-bugs] [JIRA] (ASTERISK-28767) Extension not found with pjsip
Oleg (JIRA)
noreply at issues.asterisk.org
Thu Mar 5 02:11:25 CST 2020
Oleg created ASTERISK-28767:
-------------------------------
Summary: Extension not found with pjsip
Key: ASTERISK-28767
URL: https://issues.asterisk.org/jira/browse/ASTERISK-28767
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Channels/chan_pjsip
Affects Versions: 16.8.0, 16.0.1
Reporter: Oleg
[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
Asterisk:
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
Dumping Info For Channel: PJSIP/2000-00000004:
================================================================================
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)
Variables:
================================================================================
-- 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]
Delete the bottom lines:
[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
Asterisk:
[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'.
pjsip_wizard.conf
[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
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