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?
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)
[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()