Hi,

Now you are getting other error:

2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:431 Channel sofia/external/8@SIP_DOMAIN hanging up, cause: INCOMPATIBLE_DESTINATION

Not sure, but if you look on top:

a=rtpmap:18 G729/8000

Your client is trying to use g729 codec, but your freeswitch supports only:

variable_rtp_use_codec_string: [G722,PCMU,PCMA,GSM]

So please switch to PCMU or PCMA codec and in this case call should go through.

With kind regards,

Jurijs

2016-03-14 16:47 GMT+02:00 Стас Тельнов <stasan89@gmail.com>:
Yes. Now I testing from mobile app, and I view next log:


2016-03-14 10:28:08.300433 [NOTICE] switch_channel.c:1101 New Channel sofia/external/8@SIP_DOMAIN [f8fbc452-e9f0-11e5-aec6-a925ae84fea5]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_NEW
2016-03-14 10:28:08.300433 [DEBUG] sofia.c:9248 sofia/external/8@SIP_DOMAIN receiving invite from INTERNAL_EC2_SIP_IP:5060 version: 1.6.6  64bit
2016-03-14 10:28:08.300433 [DEBUG] sofia.c:6760 Channel sofia/external/8@SIP_DOMAIN entering state [received][100]
2016-03-14 10:28:08.300433 [DEBUG] sofia.c:6770 Remote SDP:
v=0
o=- 1457965687 1 IN IP4 MY_DEVICE_IP
s=portsip.com
c=IN IP4 PUBLIC_EC2_SIP_IP
t=0 0
m=audio 37956 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=nortpproxy:yes

2016-03-14 10:28:08.300433 [DEBUG] sofia.c:7125 (sofia/external/8@SIP_DOMAIN) State Change CS_NEW -> CS_INIT
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:492 (sofia/external/8@SIP_DOMAIN) State NEW
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_INIT
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:516 (sofia/external/8@SIP_DOMAIN) State INIT
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:88 sofia/external/8@SIP_DOMAIN SOFIA INIT
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:40 sofia/external/8@SIP_DOMAIN Standard INIT
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:48 (sofia/external/8@SIP_DOMAIN) State Change CS_INIT -> CS_ROUTING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:516 (sofia/external/8@SIP_DOMAIN) State INIT going to sleep
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_ROUTING
2016-03-14 10:28:08.300433 [DEBUG] switch_channel.c:2247 (sofia/external/8@SIP_DOMAIN) Callstate Change DOWN -> RINGING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:532 (sofia/external/8@SIP_DOMAIN) State ROUTING
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:141 sofia/external/8@SIP_DOMAIN SOFIA ROUTING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:166 sofia/external/8@SIP_DOMAIN Standard ROUTING
2016-03-14 10:28:08.300433 [INFO] mod_dialplan_xml.c:637 Processing 8 <8>->5000 in context public
Dialplan: sofia/external/8@SIP_DOMAIN parsing [public->from_opensips] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (PASS) [from_opensips] network_addr(INTERNAL_EC2_SIP_IP) =~ /^172\.31\.0\.169$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN Action transfer(${destination_number} XML default)
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:216 (sofia/external/8@SIP_DOMAIN) State Change CS_ROUTING -> CS_EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:532 (sofia/external/8@SIP_DOMAIN) State ROUTING going to sleep
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:539 (sofia/external/8@SIP_DOMAIN) State EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:196 sofia/external/8@SIP_DOMAIN SOFIA EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:258 sofia/external/8@SIP_DOMAIN Standard EXECUTE
EXECUTE sofia/external/8@SIP_DOMAIN transfer(5000 XML default)
2016-03-14 10:28:08.300433 [DEBUG] switch_ivr.c:2085 (sofia/external/8@SIP_DOMAIN) State Change CS_EXECUTE -> CS_ROUTING
2016-03-14 10:28:08.300433 [NOTICE] switch_ivr.c:2092 Transfer sofia/external/8@SIP_DOMAIN to XML[5000@default]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:539 (sofia/external/8@SIP_DOMAIN) State EXECUTE going to sleep
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_ROUTING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:532 (sofia/external/8@SIP_DOMAIN) State ROUTING
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:141 sofia/external/8@SIP_DOMAIN SOFIA ROUTING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:166 sofia/external/8@SIP_DOMAIN Standard ROUTING
2016-03-14 10:28:08.300433 [INFO] mod_dialplan_xml.c:637 Processing 8 <8>->5000 in context default
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->unloop] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->tod_example] continue=true
Dialplan: sofia/external/8@SIP_DOMAIN Date/Time Match (PASS) [tod_example] break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN Action set(open=true)
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->holiday_example] continue=true
Dialplan: sofia/external/8@SIP_DOMAIN Date/TimeMatch (FAIL) [holiday_example] break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->global-intercept] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [global-intercept] destination_number(5000) =~ /^886$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->group-intercept] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [group-intercept] destination_number(5000) =~ /^\*8$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->intercept-ext] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [intercept-ext] destination_number(5000) =~ /^\*\*(\d+)$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->redial] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [redial] destination_number(5000) =~ /^(redial|870)$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->global] continue=true
Dialplan: sofia/external/8@SIP_DOMAIN Regex (PASS) [global] ${call_debug}(true) =~ /^true$/ break=never
Dialplan: sofia/external/8@SIP_DOMAIN Action info()
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [global] ${default_password}(12345) =~ /^1234$/ break=never
Dialplan: sofia/external/8@SIP_DOMAIN Regex (PASS) [global] ${rtp_has_crypto}() =~ /^()$/ break=never
Dialplan: sofia/external/8@SIP_DOMAIN Action set(rtp_secure_media=false)
Dialplan: sofia/external/8@SIP_DOMAIN Regex (PASS) [global] ${endpoint_disposition}(DELAYED NEGOTIATION) =~ /^(DELAYED NEGOTIATION)/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [global] ${switch_r_sdp}(v=0
o=- 1457965687 1 IN IP4 MY_DEVICE_IP
s=portsip.com
c=IN IP4 PUBLIC_EC2_SIP_IP
t=0 0
m=audio 37956 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=nortpproxy:yes
) =~ /(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)/ break=never
Dialplan: sofia/external/8@SIP_DOMAIN Absolute Condition [global]
Dialplan: sofia/external/8@SIP_DOMAIN Action hash(insert/${domain_name}-spymap/${caller_id_number}/${uuid})
Dialplan: sofia/external/8@SIP_DOMAIN Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number})
Dialplan: sofia/external/8@SIP_DOMAIN Action hash(insert/${domain_name}-last_dial/global/${uuid})
Dialplan: sofia/external/8@SIP_DOMAIN Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->snom-demo-2] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [snom-demo-2] destination_number(5000) =~ /^9001$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->snom-demo-1] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [snom-demo-1] destination_number(5000) =~ /^9000$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->eavesdrop] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [eavesdrop] destination_number(5000) =~ /^88(\d{4})$|^\*0(.*)$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->eavesdrop] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [eavesdrop] destination_number(5000) =~ /^779$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->call_return] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [call_return] destination_number(5000) =~ /^\*69$|^869$|^lcr$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->del-group] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [del-group] destination_number(5000) =~ /^80(\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->add-group] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [add-group] destination_number(5000) =~ /^81(\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->call-group-simo] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [call-group-simo] destination_number(5000) =~ /^82(\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->call-group-order] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [call-group-order] destination_number(5000) =~ /^83(\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->extension-intercom] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [extension-intercom] destination_number(5000) =~ /^8(10[01][0-9])$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->Local_Extension] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [Local_Extension] destination_number(5000) =~ /^(10[01][0-9])$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->Local_Extension_Skinny] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [Local_Extension_Skinny] destination_number(5000) =~ /^(11[01][0-9])$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->group_dial_sales] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [group_dial_sales] destination_number(5000) =~ /^2000$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->group_dial_support] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [group_dial_support] destination_number(5000) =~ /^2001$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->group_dial_billing] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [group_dial_billing] destination_number(5000) =~ /^2002$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->operator] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [operator] destination_number(5000) =~ /^(operator|0)$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->vmain] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [vmain] destination_number(5000) =~ /^vmain$|^4000$|^\*98$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->sip_uri] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [sip_uri] destination_number(5000) =~ /^sip:(.*)$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->nb_conferences] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [nb_conferences] destination_number(5000) =~ /^(30\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->wb_conferences] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [wb_conferences] destination_number(5000) =~ /^(31\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->uwb_conferences] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [uwb_conferences] destination_number(5000) =~ /^(32\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->cdquality_conferences] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [cdquality_conferences] destination_number(5000) =~ /^(33\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->cdquality_conferences] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [cdquality_conferences] destination_number(5000) =~ /^(35\d{2})$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->freeswitch_public_conf_via_sip] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [freeswitch_public_conf_via_sip] destination_number(5000) =~ /^9(888|8888|1616|3232)$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->mad_boss_intercom] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [mad_boss_intercom] destination_number(5000) =~ /^0911$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->mad_boss_intercom] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [mad_boss_intercom] destination_number(5000) =~ /^0912$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->mad_boss] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (FAIL) [mad_boss] destination_number(5000) =~ /^0913$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN parsing [default->ivr_demo] continue=false
Dialplan: sofia/external/8@SIP_DOMAIN Regex (PASS) [ivr_demo] destination_number(5000) =~ /^5000$/ break=on-false
Dialplan: sofia/external/8@SIP_DOMAIN Action answer()
Dialplan: sofia/external/8@SIP_DOMAIN Action sleep(2000)
Dialplan: sofia/external/8@SIP_DOMAIN Action ivr(demo_ivr)
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:216 (sofia/external/8@SIP_DOMAIN) State Change CS_ROUTING -> CS_EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:532 (sofia/external/8@SIP_DOMAIN) State ROUTING going to sleep
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:539 (sofia/external/8@SIP_DOMAIN) State EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:196 sofia/external/8@SIP_DOMAIN SOFIA EXECUTE
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:258 sofia/external/8@SIP_DOMAIN Standard EXECUTE
EXECUTE sofia/external/8@SIP_DOMAIN set(open=true)
2016-03-14 10:28:08.300433 [DEBUG] mod_dptools.c:1498 SET sofia/external/8@SIP_DOMAIN [open]=[true]
EXECUTE sofia/external/8@SIP_DOMAIN info()
2016-03-14 10:28:08.300433 [INFO] mod_dptools.c:1711 CHANNEL_DATA:
Channel-State: [CS_EXECUTE]
Channel-Call-State: [RINGING]
Channel-State-Number: [4]
Channel-Name: [sofia/external/8@SIP_DOMAIN]
Unique-ID: [f8fbc452-e9f0-11e5-aec6-a925ae84fea5]
Call-Direction: [inbound]
Presence-Call-Direction: [inbound]
Channel-HIT-Dialplan: [true]
Channel-Call-UUID: [f8fbc452-e9f0-11e5-aec6-a925ae84fea5]
Answer-State: [ringing]
Caller-Direction: [inbound]
Caller-Logical-Direction: [inbound]
Caller-Username: [8]
Caller-Dialplan: [XML]
Caller-Caller-ID-Name: [8]
Caller-Caller-ID-Number: [8]
Caller-Orig-Caller-ID-Name: [8]
Caller-Orig-Caller-ID-Number: [8]
Caller-Network-Addr: [INTERNAL_EC2_SIP_IP]
Caller-ANI: [8]
Caller-Destination-Number: [5000]
Caller-Unique-ID: [f8fbc452-e9f0-11e5-aec6-a925ae84fea5]
Caller-Source: [mod_sofia]
Caller-Transfer-Source: [1457965688:f8fbe432-e9f0-11e5-aec9-a925ae84fea5:bl_xfer:5000/default/XML]
Caller-Context: [default]
Caller-RDNIS: [5000]
Caller-Channel-Name: [sofia/external/8@SIP_DOMAIN]
Caller-Profile-Index: [2]
Caller-Profile-Created-Time: [1457965688300433]
Caller-Channel-Created-Time: [1457965688300433]
Caller-Channel-Answered-Time: [0]
Caller-Channel-Progress-Time: [0]
Caller-Channel-Progress-Media-Time: [0]
Caller-Channel-Hangup-Time: [0]
Caller-Channel-Transfer-Time: [0]
Caller-Channel-Resurrect-Time: [0]
Caller-Channel-Bridged-Time: [0]
Caller-Channel-Last-Hold: [0]
Caller-Channel-Hold-Accum: [0]
Caller-Screen-Bit: [true]
Caller-Privacy-Hide-Name: [false]
Caller-Privacy-Hide-Number: [false]
variable_direction: [inbound]
variable_uuid: [f8fbc452-e9f0-11e5-aec6-a925ae84fea5]
variable_session_id: [3]
variable_sip_from_user: [8]
variable_sip_from_uri: [8@SIP_DOMAIN]
variable_sip_from_host: [SIP_DOMAIN]
variable_video_media_flow: [sendrecv]
variable_audio_media_flow: [sendrecv]
variable_channel_name: [sofia/external/8@SIP_DOMAIN]
variable_sip_call_id: [71_8NY0kPXL-XSj6yGW0xA..]
variable_sip_local_network_addr: [INTERNAL_EC2_FREESWITCH_IP]
variable_sip_network_ip: [INTERNAL_EC2_SIP_IP]
variable_sip_network_port: [5060]
variable_sip_received_ip: [INTERNAL_EC2_SIP_IP]
variable_sip_received_port: [5060]
variable_sip_via_protocol: [udp]
variable_sip_from_user_stripped: [8]
variable_sip_from_tag: [fcea0c6a]
variable_sofia_profile_name: [external]
variable_recovery_profile_name: [external]
variable_sip_invite_record_route: [<sip:SIP_DOMAIN;r2=on;lr>,<sip:INTERNAL_EC2_SIP_IP:5061;transport=tls;r2=on;lr>]
variable_sip_full_via: [SIP/2.0/UDP SIP_DOMAIN:5060;branch=z9hG4bK4c2e.c8bf595.0;i=a2;received=INTERNAL_EC2_SIP_IP,SIP/2.0/TLS 192.168.0.117:10209;received=MY_DEVICE_IP;branch=z9hG4bK-524287-1---12a94851d2e44a3e;rport=59318]
variable_sip_from_display: [8]
variable_sip_full_from: ["8" <sip:8@SIP_DOMAIN>;tag=fcea0c6a]
variable_sip_full_to: [<sip:*5000@SIP_DOMAIN>]
variable_sip_req_user: [5000]
variable_sip_req_uri: [5000@SIP_DOMAIN]
variable_sip_req_host: [SIP_DOMAIN]
variable_sip_to_user: [*5000]
variable_sip_to_uri: [*5000@SIP_DOMAIN]
variable_sip_to_host: [SIP_DOMAIN]
variable_sip_contact_params: [ob;transport=tls]
variable_sip_contact_user: [8]
variable_sip_contact_port: [59318]
variable_sip_contact_uri: [8@MY_DEVICE_IP:59318]
variable_sip_contact_host: [MY_DEVICE_IP]
variable_rtp_use_codec_string: [G722,PCMU,PCMA,GSM]
variable_sip_user_agent: [PortSIP SDK for IOS]
variable_sip_via_host: [SIP_DOMAIN]
variable_sip_via_port: [5060]
variable_switch_r_sdp: [v=0
o=- 1457965687 1 IN IP4 MY_DEVICE_IP
s=portsip.com
c=IN IP4 PUBLIC_EC2_SIP_IP
t=0 0
m=audio 37956 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=nortpproxy:yes
]
variable_endpoint_disposition: [DELAYED NEGOTIATION]
variable_max_forwards: [68]
variable_transfer_history: [1457965688:f8fbe432-e9f0-11e5-aec9-a925ae84fea5:bl_xfer:5000/default/XML]
variable_transfer_source: [1457965688:f8fbe432-e9f0-11e5-aec9-a925ae84fea5:bl_xfer:5000/default/XML]
variable_DP_MATCH: [ARRAY::DELAYED NEGOTIATION|:DELAYED NEGOTIATION]
variable_call_uuid: [f8fbc452-e9f0-11e5-aec6-a925ae84fea5]
variable_open: [true]
variable_current_application: [info]


EXECUTE sofia/external/8@SIP_DOMAIN set(rtp_secure_media=false)
2016-03-14 10:28:08.300433 [DEBUG] mod_dptools.c:1498 SET sofia/external/8@SIP_DOMAIN [rtp_secure_media]=[false]
EXECUTE sofia/external/8@SIP_DOMAIN hash(insert/INTERNAL_EC2_FREESWITCH_IP-spymap/8/f8fbc452-e9f0-11e5-aec6-a925ae84fea5)
EXECUTE sofia/external/8@SIP_DOMAIN hash(insert/INTERNAL_EC2_FREESWITCH_IP-last_dial/8/5000)
EXECUTE sofia/external/8@SIP_DOMAIN hash(insert/INTERNAL_EC2_FREESWITCH_IP-last_dial/global/f8fbc452-e9f0-11e5-aec6-a925ae84fea5)
EXECUTE sofia/external/8@SIP_DOMAIN export(RFC2822_DATE=Mon, 14 Mar 2016 10:28:08 -0400)
2016-03-14 10:28:08.300433 [DEBUG] switch_channel.c:1293 EXPORT (export_vars) [RFC2822_DATE]=[Mon, 14 Mar 2016 10:28:08 -0400]
EXECUTE sofia/external/8@SIP_DOMAIN answer()
2016-03-14 10:28:08.300433 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_media.c:4161 Audio Codec Compare [G729:18:8000:20:8000:1]/[GSM:3:8000:20:13200:1]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_media.c:4077 Set telephone-event payload to 101@8000
2016-03-14 10:28:08.300433 [DEBUG] switch_core_media.c:4485 sofia/external/8@SIP_DOMAIN Set 2833 dtmf send payload to 101 recv payload to 101
2016-03-14 10:28:08.300433 [NOTICE] switch_channel.c:3806 Hangup sofia/external/8@SIP_DOMAIN [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_session.c:2796 sofia/external/8@SIP_DOMAIN skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:539 (sofia/external/8@SIP_DOMAIN) State EXECUTE going to sleep
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_HANGUP
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:739 (sofia/external/8@SIP_DOMAIN) Callstate Change RINGING -> HANGUP
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:741 (sofia/external/8@SIP_DOMAIN) State HANGUP
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:431 Channel sofia/external/8@SIP_DOMAIN hanging up, cause: INCOMPATIBLE_DESTINATION
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:568 Responding to INVITE with: 488
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:60 sofia/external/8@SIP_DOMAIN Standard HANGUP, cause: INCOMPATIBLE_DESTINATION
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:741 (sofia/external/8@SIP_DOMAIN) State HANGUP going to sleep
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:508 (sofia/external/8@SIP_DOMAIN) State Change CS_HANGUP -> CS_REPORTING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_REPORTING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:827 (sofia/external/8@SIP_DOMAIN) State REPORTING
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:104 sofia/external/8@SIP_DOMAIN Standard REPORTING, cause: INCOMPATIBLE_DESTINATION
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:827 (sofia/external/8@SIP_DOMAIN) State REPORTING going to sleep
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:499 (sofia/external/8@SIP_DOMAIN) State Change CS_REPORTING -> CS_DESTROY
2016-03-14 10:28:08.300433 [DEBUG] switch_core_session.c:1646 Session 3 (sofia/external/8@SIP_DOMAIN) Locked, Waiting on external entities
2016-03-14 10:28:08.300433 [NOTICE] switch_core_session.c:1664 Session 3 (sofia/external/8@SIP_DOMAIN) Ended
2016-03-14 10:28:08.300433 [NOTICE] switch_core_session.c:1668 Close Channel sofia/external/8@SIP_DOMAIN [CS_DESTROY]
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:630 (sofia/external/8@SIP_DOMAIN) Running State Change CS_DESTROY
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:640 (sofia/external/8@SIP_DOMAIN) State DESTROY
2016-03-14 10:28:08.300433 [DEBUG] mod_sofia.c:341 sofia/external/8@SIP_DOMAIN SOFIA DESTROY
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:111 sofia/external/8@SIP_DOMAIN Standard DESTROY
2016-03-14 10:28:08.300433 [DEBUG] switch_core_state_machine.c:640 (sofia/external/8@SIP_DOMAIN) State DESTROY going to sleep

2016-03-14 17:18 GMT+03:00 Jurijs Ivolga <jurijs.ivolga@gmail.com>:
Hi,

Could you please share with us logs from console when you disabled media encryption? Do you get same error?

With kind regards,

2016-03-14 16:16 GMT+02:00 Стас Тельнов <stasan89@gmail.com>:
Hi Jurijs,

Yes, I see. I tried disabling rtp_secure_media param, but it does not solve the problem.



2016-03-14 17:04 GMT+03:00 Jurijs Ivolga <jurij.ivo@gmail.com>:
Hi Stas,

It looks like freeswitch do not like that you do not have media encryption on:

[WARNING] switch_core_media.c:4234 Crypto not negotiated but required.

Not sure, but I would recommend to take a look on your external sofia profile and look for media encryption.

With kind regards,

Jurijs

2016-03-14 9:23 GMT+02:00 Стас Тельнов <stasan89@gmail.com>:
Hello.
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.

Sip and freeswitch servers are on amazon ec2 each. Physical servers are different.
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.
In particular for tests I call on number 5000 through Zoiper . In reply I receive the mistake:
488 INCOMPATIBLE_DESTINATION

Here is the text of freeswitch tracking data:
EXECUTE sofia/external/8@SIP_DOMAIN set(rtp_secure_media=true)
2016-03-14 02:54:02.731306 [DEBUG] mod_dptools.c:1498 SET sofia/external/8@SIP_DOMAIN [rtp_secure_media]=[true]
EXECUTE sofia/external/8@SIP_DOMAIN hash(insert/172.31.22.124-spymap/8/89574eb2-e9b1-11e5-97c9-1f13b1bd8007)
EXECUTE sofia/external/8@SIP_DOMAINhash(insert/172.31.22.124-last_dial/8/5000)
EXECUTE sofia/external/8@SIP_DOMAIN hash(insert/172.31.22.124-last_dial/global/89574eb2-e9b1-11e5-97c9-1f13b1bd8007)
EXECUTE sofia/external/8@SIP_DOMAIN export(RFC2822_DATE=Mon, 14 Mar 2016 02:54:02 -0400)
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]
EXECUTE sofia/external/8@SIP_DOMAIN answer()
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]
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]
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]
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]
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
2016-03-14 02:54:02.731306 [WARNING] switch_core_media.c:4234 Crypto not negotiated but required.
2016-03-14 02:54:02.731306 [DEBUG] switch_core_media.c:4492 No 2833 in SDP.  Disable 2833 dtmf and switch to INFO
2016-03-14 02:54:02.731306 [NOTICE] switch_channel.c:3806 Hangup sofia/external/8@SIP_DOMAIN [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
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)
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:539 (sofia/external/8@SIP_DOMAIN) State EXECUTE going to sleep
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_HANGUP
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:739 (sofia/external/8@SIP_DOMAIN) Callstate Change RINGING -> HANGUP
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:741 (sofia/external/8@SIP_DOMAIN) State HANGUP
2016-03-14 02:54:02.731306 [DEBUG] mod_sofia.c:431 Channel sofia/external/8@SIP_DOMAIN hanging up, cause: INCOMPATIBLE_DESTINATION
2016-03-14 02:54:02.731306 [DEBUG] mod_sofia.c:568 Responding to INVITE with: 488
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:60 sofia/external/8@SIP_DOMAIN Standard HANGUP, cause: INCOMPATIBLE_DESTINATION
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:741 (sofia/external/8@SIP_DOMAIN) State HANGUP going to sleep
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:508 (sofia/external/8@SIP_DOMAIN) State Change CS_HANGUP -> CS_REPORTING
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:473 (sofia/external/8@SIP_DOMAIN) Running State Change CS_REPORTING
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:827 (sofia/external/8@SIP_DOMAIN) State REPORTING
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:104 sofia/external/8@SIP_DOMAIN Standard REPORTING, cause: INCOMPATIBLE_DESTINATION
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:827 (sofia/external/8@SIP_DOMAIN) State REPORTING going to sleep
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:499 (sofia/external/8@SIP_DOMAIN) State Change CS_REPORTING -> CS_DESTROY
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
2016-03-14 02:54:02.731306 [NOTICE] switch_core_session.c:1664 Session 1 (sofia/external/8@SIP_DOMAIN) Ended
2016-03-14 02:54:02.731306 [NOTICE] switch_core_session.c:1668 Close Channel sofia/external/8@SIP_DOMAIN [CS_DESTROY]
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:630 (sofia/external/8@SIP_DOMAIN) Running State Change CS_DESTROY
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:640 (sofia/external/8@SIP_DOMAIN) State DESTROY
2016-03-14 02:54:02.731306 [DEBUG] mod_sofia.c:341 sofia/external/8@SIP_DOMAIN SOFIA DESTROY
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:111 sofia/external/8@SIP_DOMAIN Standard DESTROY
2016-03-14 02:54:02.731306 [DEBUG] switch_core_state_machine.c:640 (sofia/external/8@SIP_DOMAIN) State DESTROY going to sleep
Error in my_thread_global_end(): 1 threads didn't exit


In such a case I use the following configuration of freeswitch:
vars.xmp: http://pastebin.com/DijwsQ7j
modules.conf.xml: http://pastebin.com/PjeNgVkh

At the same time I use the following configuration of opensips: http://pastebin.com/49XpcGBj

Whats i doing incorrect?

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org