Hi
I'm trying to send calls through  a provider with ip 10.10.10.3 but call fails with result "Message not compatible with call state or message type non-existent or not implemented". how can I debug this problem?
this is siptrace from the failed call:

send 1061 bytes to udp/[10.10.10.3]:5060 at 13:35:27.382378:
   ------------------------------------------------------------------------
   INVITE sip:12345678@10.10.10.3 SIP/2.0
   Via: SIP/2.0/UDP 10.10.10.4;rport;branch=z9hG4bKeN5gp5S5KrZce
   Max-Forwards: 69
   From: "100" <sip:74413@10.10.10.3>;tag=N69FS63aHU7ta
   To: <sip:12345678@10.10.10.3>
   Call-ID: 596dba35-96dd-1235-59bc-00505698455d
   CSeq: 105485099 INVITE
   Contact: <sip:gw+trunk_1@10.10.10.4:5060;transport=udp;gw=trunk_1>
   User-Agent: FreeSWITCH-mod_sofia/1.6.15+git~20170303T233525Z~02c0860de6~64bit
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
   Supported: timer, path, replaces
   Allow-Events: talk, hold, conference, refer
   Content-Type: application/sdp
   Content-Disposition: session
   Content-Length: 242
   X-FS-Support: update_display,send_info
   Remote-Party-ID: "100" <sip:100@10.10.10.3>;party=calling;screen=yes;privacy=off

   v=0
   o=FreeSWITCH 1491655976 1491655977 IN IP4 10.10.10.4
   s=FreeSWITCH
   c=IN IP4 10.10.10.4
   t=0 0
   m=audio 27714 RTP/AVP 0 101 13
   a=rtpmap:0 PCMU/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=rtpmap:13 CN/8000
   a=ptime:20
   ------------------------------------------------------------------------
recv 274 bytes from udp/[10.10.10.3]:5060 at 13:35:27.398407:
   ------------------------------------------------------------------------
   SIP/2.0 100 Trying
   Via: SIP/2.0/UDP 10.10.10.4;branch=z9hG4bKeN5gp5S5KrZce;rport=5060
   Call-ID: 596dba35-96dd-1235-59bc-00505698455d
   From: "100"<sip:74413@10.10.10.3>;tag=N69FS63aHU7ta
   To: <sip:12345678@10.10.10.3>
   CSeq: 105485099 INVITE
   Content-Length: 0

   ------------------------------------------------------------------------
recv 488 bytes from udp/[10.10.10.3]:5060 at 13:35:27.448335:
   ------------------------------------------------------------------------
   SIP/2.0 500 Server Internal Error
   Via: SIP/2.0/UDP 10.10.10.4;branch=z9hG4bKeN5gp5S5KrZce;rport=5060
   Call-ID: 596dba35-96dd-1235-59bc-00505698455d
   From: "100"<sip:74413@10.10.10.3>;tag=N69FS63aHU7ta
   To: <sip:12345678@10.10.10.3>;tag=juiky7nh
   CSeq: 105485099 INVITE
   Warning: 399 - "SoftX3000 R601-CCU Rel POS:[3103] Release from CR"
   Reason: Q.850;cause=98;text="Message not compatible with call state or message type non-existent or not implemented"
   Content-Length: 0

   ------------------------------------------------------------------------
send 321 bytes to udp/[10.10.10.3]:5060 at 13:35:27.448500:
   ------------------------------------------------------------------------
   ACK sip:12345678@10.10.10.3 SIP/2.0
   Via: SIP/2.0/UDP 10.10.10.4;rport;branch=z9hG4bKeN5gp5S5KrZce
   Max-Forwards: 69
   From: "100" <sip:74413@10.10.10.3>;tag=N69FS63aHU7ta
   To: <sip:12345678@10.10.10.3>;tag=juiky7nh
   Call-ID: 596dba35-96dd-1235-59bc-00505698455d
   CSeq: 105485099 ACK
   Content-Length: 0