<div dir="ltr"><div>Hello.<br>I have had difficulties at control of the opensips and freeswitch connective. The task is: to organize voip-conference between mobile application users through our opensips server or between mobile application users with addition of a call to the city line.<br><br>Sip and freeswitch servers are on amazon ec2 each. Physical servers are different.<br>Firstly, I test the opportunity to call to freeswitch and to receive the answer. From the part of opensips everything works, as far as I can judge, correctly. A problem appears at a call with use of freeswitch.<br>In particular for tests I call on number 5000 through Zoiper . In reply I receive the mistake:<br>488 INCOMPATIBLE_DESTINATION<br><br>Here is the text of freeswitch tracking data:<br>EXECUTE sofia/external/8@SIP_DOMAIN set(rtp_secure_media=true)<br>2016-03-14 02:54:02.731306 [DEBUG] mod_dptools.c:1498 SET sofia/external/8@SIP_DOMAIN [rtp_secure_media]=[true]<br>EXECUTE sofia/external/8@SIP_DOMAIN hash(insert/172.31.22.124-spymap/8/89574eb2-e9b1-11e5-97c9-1f13b1bd8007)<br>EXECUTE sofia/external/8@SIP_DOMAINhash(insert/172.31.22.124-last_dial/8/5000)<br>EXECUTE sofia/external/8@SIP_DOMAIN hash(insert/172.31.22.124-last_dial/global/89574eb2-e9b1-11e5-97c9-1f13b1bd8007)<br>EXECUTE sofia/external/8@SIP_DOMAIN export(RFC2822_DATE=Mon, 14 Mar 2016 02:54:02 -0400)<br>2016-03-14 02:54:02.731306 [DEBUG] switch_channel.c:1293 EXPORT (export_vars) [RFC2822_DATE]=[Mon, 14 Mar 2016 02:54:02 -0400]<br>EXECUTE sofia/external/8@SIP_DOMAIN answer()<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G722:9:8000:20:64000:1]<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [GSM:3:8000:20:13200:1]/[GSM:3:8000:20:13200:1]<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_media.c:4216 Audio Codec Compare [GSM:3:8000:20:13200:1] ++++ is saved as a match<br>2016-03-14 02:54:02.731306 [WARNING] switch_core_media.c:4234 Crypto not negotiated but required.<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_media.c:4492 No 2833 in SDP.  Disable 2833 dtmf and switch to INFO<br>2016-03-14 02:54:02.731306 [NOTICE] switch_channel.c:3806 Hangup sofia/external/8@SIP_DOMAIN [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_session.c:2796 sofia/external/8@SIP_DOMAIN skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:539 (sofia/external/8@SIP_DOMAIN) State EXECUTE going to sleep<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_HANGUP<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:739 (sofia/external/8@SIP_DOMAIN) Callstate Change RINGING -&gt; HANGUP<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:741 (sofia/external/8@SIP_DOMAIN) State HANGUP<br>2016-03-14 02:54:02.731306 [DEBUG] mod_sofia.c:431 Channel sofia/external/8@SIP_DOMAIN hanging up, cause: INCOMPATIBLE_DESTINATION<br>2016-03-14 02:54:02.731306 [DEBUG] mod_sofia.c:568 Responding to INVITE with: 488<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:60 sofia/external/8@SIP_DOMAIN Standard HANGUP, cause: INCOMPATIBLE_DESTINATION<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:741 (sofia/external/8@SIP_DOMAIN) State HANGUP going to sleep<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:508 (sofia/external/8@SIP_DOMAIN) State Change CS_HANGUP -&gt; CS_REPORTING<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_REPORTING<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:827 (sofia/external/8@SIP_DOMAIN) State REPORTING<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:104 sofia/external/8@SIP_DOMAIN Standard REPORTING, cause: INCOMPATIBLE_DESTINATION<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:827 (sofia/external/8@SIP_DOMAIN) State REPORTING going to sleep<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:499 (sofia/external/8@SIP_DOMAIN) State Change CS_REPORTING -&gt; CS_DESTROY<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_session.c:1646 Session 1 (sofia/external/8@SIP_DOMAIN) Locked, Waiting on external entities<br>2016-03-14 02:54:02.731306 [NOTICE] switch_core_session.c:1664 Session 1 (sofia/external/8@SIP_DOMAIN) Ended<br>2016-03-14 02:54:02.731306 [NOTICE] switch_core_session.c:1668 Close Channel sofia/external/8@SIP_DOMAIN [CS_DESTROY]<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:630 (sofia/external/8@SIP_DOMAIN) Running State Change CS_DESTROY<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:640 (sofia/external/8@SIP_DOMAIN) State DESTROY<br>2016-03-14 02:54:02.731306 [DEBUG] mod_sofia.c:341 sofia/external/8@SIP_DOMAIN SOFIA DESTROY<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:111 sofia/external/8@SIP_DOMAIN Standard DESTROY<br>2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:640 (sofia/external/8@SIP_DOMAIN) State DESTROY going to sleep<br>Error in my_thread_global_end(): 1 threads didn&#39;t exit<br><br><br>In such a case I use the following configuration of freeswitch:<br></div>vars.xmp: <a href="http://pastebin.com/DijwsQ7j">http://pastebin.com/DijwsQ7j</a><br>modules.conf.xml: <a href="http://pastebin.com/PjeNgVkh">http://pastebin.com/PjeNgVkh</a><br><div><br>At the same time I use the following configuration of opensips: <a href="http://pastebin.com/49XpcGBj">http://pastebin.com/49XpcGBj</a><br><br></div><div>Whats i doing incorrect?<br></div></div>