wrong_call_state

Status
Not open for further replies.

Telex

New Member
Apr 21, 2021
29
5
3
43
Hello everyone,

I am getting wrong_call_state error while using Grandstream HT801 ATAs with Fusion PBX.Cisco Spa112 work fine but do not re-register after registration time expires.
pasting some logs from the server for Grandstream HT801.Softphones work fine with all the extensions.

Can someone please guide me through how to setup TFTP server to provision these devices according to Fusion PBX


Also my Grandstream HT 801 FX settings

2021-04-21 16:01:32.986857 [NOTICE] switch_channel.c:1118 New Channel sofia/internal/1010@pbx.com [d463c316-8f94-44f0-8790-dae75b978f56]
2021-04-21 16:01:32.986857 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/1010@pbx.com) Running State Change CS_NEW (Cur 1 Tot 16)
2021-04-21 16:01:32.986857 [DEBUG] sofia.c:10280 sofia/internal/1010@pbx.com receiving invite from xxx.xxx.xxx.xxx version: 1.10.5 -release-17-25569c1631 64bit
2021-04-21 16:01:32.986857 [DEBUG] sofia.c:10374 verifying acl "domains" for ip/port xxx.xxx.xxx.xxx:0.
2021-04-21 16:01:32.986857 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'internal' for [1001@pbx.com] from ip xxx.xxx.xxx.xxx
2021-04-21 16:01:32.986857 [DEBUG] switch_core_state_machine.c:604 (sofia/internal/1010@pbx.com) State NEW
2021-04-21 16:01:32.986857 [DEBUG] sofia.c:2434 detaching session d463c316-8f94-44f0-8790-dae75b978f56
2021-04-21 16:01:43.026865 [WARNING] switch_core_state_machine.c:688 d463c316-8f94-44f0-8790-dae75b978f56 sofia/internal/1010@pbx.com Abandoned
2021-04-21 16:01:43.026865 [NOTICE] switch_core_state_machine.c:691 Hangup sofia/internal/1010@pbx.com [CS_NEW] [WRONG_CALL_STATE]
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/1010@pbx.com) Running State Change CS_HANGUP (Cur 1 Tot 16)
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:848 (sofia/internal/1010@pbx.com) Callstate Change DOWN -> HANGUP
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/1010@pbx.com) State HANGUP
2021-04-21 16:01:43.026865 [DEBUG] mod_sofia.c:453 Channel sofia/internal/1010@pbx.com hanging up, cause: WRONG_CALL_STATE
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:60 sofia/internal/1010@pbx.com Standard HANGUP, cause: WRONG_CALL_STATE
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/1010@pbx.com) State HANGUP going to sleep
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:620 (sofia/internal/1010@pbx.com) State Change CS_HANGUP -> CS_REPORTING
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/1010@pbx.com) Running State Change CS_REPORTING (Cur 1 Tot 16)
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:936 (sofia/internal/1010@pbx.com) State REPORTING
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:174 sofia/internal/1010@pbx.com Standard REPORTING, cause: WRONG_CALL_STATE
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:936 (sofia/internal/1010@pbx.com) State REPORTING going to sleep
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:611 (sofia/internal/1010@pbx.com) State Change CS_REPORTING -> CS_DESTROY
2021-04-21 16:01:43.026865 [DEBUG] switch_core_session.c:1726 Session 16 (sofia/internal/1010@pbx.com) Locked, Waiting on external entities
2021-04-21 16:01:43.026865 [NOTICE] switch_core_session.c:1744 Session 16 (sofia/internal/1010@pbx.com) Ended
2021-04-21 16:01:43.026865 [NOTICE] switch_core_session.c:1748 Close Channel sofia/internal/1010@pbx.com [CS_DESTROY]
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:739 (sofia/internal/1010@pbx.com) Running State Change CS_DESTROY (Cur 0 Tot 16)
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:749 (sofia/internal/1010@pbx.com) State DESTROY
2021-04-21 16:01:43.026865 [DEBUG] mod_sofia.c:364 sofia/internal/1010@pbx.com SOFIA DESTROY
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:181 sofia/internal/1010@pbx.com Standard DESTROY
2021-04-21 16:01:43.026865 [DEBUG] switch_core_state_machine.c:749 (sofia/internal/1010@pbx.com) State DESTROY going to sleep
 
Last edited:

Telex

New Member
Apr 21, 2021
29
5
3
43
Hello, this is sngrep screenshot,


5-5060-4@BJC.BGI.B.GI (Color by Request/Response)
xINVITE tel:4032603325 SIP/2.0
xxx.xxx.xxx.xxx:1093 xxx.xxx.xxx.xxx:506xVia: SIP/2.0/UDP 192.168.1.68:5060;branch=z9hG4bK1860010809;rport
qqqqqqqqqqwqqqqqqqqq qqqqqqqqqqwqqqqqqqqqxRoute: <sip:mypbx.pbx.com:5060;lr>
15:00:32.195492 x INVITE (SDP) x xFrom: "1010" <sip:1010@pbx.com>;tag=2140638139
+0.001589 x qqqqqqqqqqqqqqqqqqqqqqqqqq> x xTo: <tel:4032603325>
15:00:32.197081 x 407 Proxy Authentication R x xCall-ID: 1444746415-5060-4@BJC.BGI.B.GI
+0.098639 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xCSeq: 10 INVITE
15:00:32.295720 x ACK x xContact: "1010" <sip:1010@192.168.1.68:5060>
x qqqqqqqqqqqqqqqqqqqqqqqqqq> x xMax-Forwards: 70
x x xProxy-Require: pbx.com
x x xUser-Agent: Grandstream HT801 1.0.9.3
x x xPrivacy: none
x x xP-Preferred-Identity: "1010" <sip:1010@pbx.com>
x x xP-Access-Network-Info: IEEE-EUI-48;eui-48-addr=4C-8B-30-26-6C-88
x x xP-Emergency-Info: IEEE-EUI-48;eui-48-addr=00-1B-72-DC-48-EE
x x xSupported: replaces, path, timer, eventlist
x x xAllow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
x x xContent-Type: application/sdp
x x xAccept: application/sdp, application/dtmf-relay
x x xContent-Length: 429
x x x
x x xv=0
x x xo=1010 8000 8000 IN IP4 192.168.1.68
x x xs=SIP Call
x x xc=IN IP4 192.168.1.68
x x xt=0 0
x x xm=audio 48380 RTP/AVP 0 18 4 2 97 123 101
x x xa=sendrecv
x x xa=rtpmap:0 PCMU/8000
x x xa=ptime:20
x x xa=rtpmap:18 G729/8000
x x xa=fmtp:18 annexb=no
x x xa=rtpmap:4 G723/8000
x x xa=rtpmap:2 G726-32/8000
x x xa=rtpmap:97 iLBC/8000
x x xa=fmtp:97 mode=20
x x xa=rtpmap:123 opus/48000/2
x x xa=fmtp:123 maxplaybackrate=16000
x x xa=rtpmap:101 telephone-event/8000
x x xa=fmtp:101 0-16,32-36,54
 
Status
Not open for further replies.