Problem with DIAL. No log in console, no hangs up

Hello!

Could you help me to solve a problem related to DIAL command?

Now I have two problems.

First: I can’t see any log messages in console when I make call from one number to another (dial command). Call is working, but console log is absolute clear.

But when i try to run Playback command, I can see full log as posted below

----------------------- Playback log example ----------------------------
– Executing [999@from-internal:1] NoOp(“PJSIP/5002-00000001”, “============= Test call HELLO WORLD from 5002 ===================”) in new stack
– Executing [999@from-internal:2] Answer(“PJSIP/5002-00000001”, “”) in new stack
> 0x7fc5c40377a0 – Strict RTP learning after remote address set to: 192.168.30.2:5070
– Executing [999@from-internal:3] Playback(“PJSIP/5002-00000001”, “hello-world”) in new stack
– <PJSIP/5002-00000001> Playing ‘hello-world.alaw’ (language ‘ru’)
> 0x7fc5c40377a0 – Strict RTP switching to RTP target address 192.168.30.2:5070 as source
– Executing [999@from-internal:4] Hangup(“PJSIP/5002-00000001”, “”) in new stack
== Spawn extension (from-internal, 999, 4) exited non-zero on ‘PJSIP/5002-00000001’

The second one: Also Astersik doesn’t hang up call despite of configuration setting in dial command:
same => n,Dial(PJSIP/${EXTEN},30,tTro)

Could you help me to find out mistake in my configuration?

Thanks a lot in advance!

Below I have publsihed a description of my lab environment:

CentOS 7.9 x64
Asterisk 20.3.1 (compiled from source codes)
Phoner Lite x64 3.21 as end-user device (two installations working on two separate virtual machines Win 10 x64)

Asterisk config files:

--------------------------- extensions.conf------------------------------------------------
[general]

[globals]

[from-internal]
exten => 999,1,NoOp(============= Test call HELLO WORLD from ${CALLERID(num)} ===================)
same => n,Answer()
same => n,Playback(hello-world)
same => n,Hangup()

exten => _5XXX,1,NoOp(============== Internal Call from ${CALLERID(num)} to ${EXTEN})
same => n,Dial(PJSIP/${EXTEN},30,tTro)
same => n,Hangup()

---------------------------------------------- logger.conf ------------------------------------------------
[general]

[logfiles]
console => notice, warning, error, debug, verbose, dtmf
full => notice, warning, error, debug, verbose, dtmf

---------------------------- modules.conf ------------------------------------------------------------------
[modules]
autoload=yes

---------------------------- rtp.conf -----------------------------------------------------------------------
[general]
rtpstart=13000
rtpend=14000

[udp-any]
type=transport
protocol=udp
bind=0.0.0.0

office
type=endpoint
transport=udp-any
context=from-internal
disallow=all
allow=alaw
allow=ulaw
direct_media=no
deny=0.0.0.0/0.0.0.0
permit=192.168.30.0/24
language=ru
force_rport=yes
rewrite_contact=yes
rtp_symmetric=yes

[office-aor]“(!)”
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60

[office-auth]“(!)”
type=auth
auth_type=userpass

“[“5001”]”(office)
aors=5001
auth=5001-auth
callerid=User001 <5001>

“[“5002”]”(office)
aors=5002
auth=5002-auth
callerid=User002<5002>

“[“5003”]”(office)
aors=5003
auth=5003-auth
callerid=User004<5003>

“[“5001”]”(office-aor)
“[“5002”]”(office-aor)
“[“5003”]”(office-aor)

“[“5001-auth”]”(office-auth)
username=usr001
password=UserPassword001

“[“5002-auth”]”(office-auth)
username=usr002
password=UserPassword002

“[“5003-auth”]”(office-auth)
username=usr003
password=UserPassword003

What are those spurious quotation marks doing in there?

also can you please use the “Preformatted text” option </> as it make it easyre to read

Like this (I assume that the "'s are an ineffective attempt to compensate for not using pre-formatted text, and not really there)

Use https://community.asterisk.org/raw/100055/7 to see how this was marked up.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.