Hello All,
I am new to Asterisk , I have just installed Asterisk 22.0 and tested the hello world example using Zoiper and it worked successfully ,
Now i have two clients and and i have set a simple dial plan so i can exchange calls between the different clients .
the pjsip.conf file
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[6001]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001
[6001]
type=auth
auth_type=userpass
password=password
username=6001
[6001]
type=aor
max_contacts=1
[6002]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6002
aors=6002
[6002]
type=auth
auth_type=userpass
password=password
username=6002
[6002]
type=aor
The dial plan is shown below
exten => 6001,1,Dial(PJSIP/6001)
exten => 6002,1,Dial(PJSIP/6002)
When I dial the extension the call goes through and it rings as expected , but when i answer, the call gets terminated immediately ,
I have checked the logs and dont seem to have any error pointing to what the issue is
on the console this is the logs been showing
Endpoint 6001 is now Reachable
– Executing [6002@from-internal:1] Dial(“PJSIP/6001-00000002”, “PJSIP/6002”) in new stack
– Called PJSIP/6002
– PJSIP/6002-00000003 is ringing
> 0x7f7d3006a0b0 – Strict RTP learning after remote address set to: 192.168.0.1:58751
– PJSIP/6002-00000003 answered PJSIP/6001-00000002
> 0x7f7d30121950 – Strict RTP learning after remote address set to: 192.168.0.1:62519
– Channel PJSIP/6002-00000003 joined ‘simple_bridge’ basic-bridge <383bda25-ee46-4a80-84a6-879a3014a4db>
– Channel PJSIP/6001-00000002 joined ‘simple_bridge’ basic-bridge <383bda25-ee46-4a80-84a6-879a3014a4db>
> Bridge 383bda25-ee46-4a80-84a6-879a3014a4db: switching from simple_bridge technology to native_rtp
> Remotely bridged ‘PJSIP/6001-00000002’ and ‘PJSIP/6002-00000003’ - media will flow directly between them
> 0x7f7d3006a0b0 – Strict RTP learning after remote address set to: 192.168.0.1:58751
– Channel PJSIP/6001-00000002 left ‘native_rtp’ basic-bridge <383bda25-ee46-4a80-84a6-879a3014a4db>
– Channel PJSIP/6002-00000003 left ‘native_rtp’ basic-bridge <383bda25-ee46-4a80-84a6-879a3014a4db>
== Spawn extension (from-internal, 6002, 1) exited non-zero on ‘PJSIP/6001-00000002’
Any help on this will be much appreaciated
Regards