Use sip-ip and rtp-ip sofia profile params to bind to the 192.168 ip and ext-sip-ip and ext-rtp-ip to set the public ip. That one will then be used in SIP Contact headers and SDP.
Meanwhile, I'm analyzing the logs myself and here's something that looks suspicious2013-07-03 11:14:05.026852 [DEBUG] sofia_glue.c:1220 Local SDP:v=0o=FreeSWITCH 1372826251 1372826252 IN IP4 192.168.119.50s=FreeSWITCHc=IN IP4 192.168.119.50t=0 0m=audio 16594 RTP/AVP 0 8 3 101 13a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20a=sendrecvIn the SDP message there's a local freeswitch machine IP (192.168.119.50), but this IP is private, invisible to the outside world. The machine is in a DMZ, accessible through a public IP 89.75.189.46. So, maybe this is the problem - SDP information sent to the freeconet gateway contains an incorrect IP address for audio stream? If so, could you tell me how to configure a correct 'public' IP for FS?ThanksRGOn Wed, Jul 3, 2013 at 11:23 AM, Rafal Gwizdala <rafal.gwizdala@gmail.com> wrote:
Hi, I'm trying to originate a call to an external endpoint (a mobile phone) through a gateway (freeconet.pl) service and I'm getting intermittent 'NORMAL_UNSPECIFIED'errors. The command will randomly succeed or fail with the following result.originate {call_timeout=60,origination_uuid=d399361f-56a1-4c7c-acd8-447a6e1ea742}sofia/gateway/freeconet/602415455 6668Event: FAILURE, Body: -ERR NORMAL_UNSPECIFIEDThe destination extension (6668) is an IVR service based on mod_httapi, but I don't think this is related to my application as there are no httapi calls made. The 'freeconet' gateway is REGED.Corresponding freeswitch log is below. Can you please help me figure out what's going on?Best regardsRafal2013-07-03 11:14:05.016851 [DEBUG] switch_ivr_originate.c:2050 Parsing global variables2013-07-03 11:14:05.016851 [DEBUG] switch_event.c:1617 Parsing variable [call_timeout]=[60]2013-07-03 11:14:05.016851 [DEBUG] switch_event.c:1617 Parsing variable [origination_uuid]=[d399361f-56a1-4c7c-acd8-447a6e1ea742]2013-07-03 11:14:05.016851 [NOTICE] switch_channel.c:1030 New Channel sofia/external/602415455 [d399361f-56a1-4c7c-acd8-447a6e1ea742]2013-07-03 11:14:05.016851 [DEBUG] mod_sofia.c:4420 (sofia/external/602415455) State Change CS_NEW -> CS_INIT2013-07-03 11:14:05.016851 [DEBUG] switch_core_session.c:1341 Send signal sofia/external/602415455 [BREAK]2013-07-03 11:14:05.016851 [DEBUG] switch_core_session.c:583 sofia/external/602415455 set UUID=d399361f-56a1-4c7c-acd8-447a6e1ea7422013-07-03 11:14:05.026852 [DEBUG] switch_core_state_machine.c:416 (sofia/external/602415455) Running State Change CS_INIT2013-07-03 11:14:05.026852 [DEBUG] switch_core_state_machine.c:455 (sofia/external/602415455) State INIT2013-07-03 11:14:05.026852 [DEBUG] mod_sofia.c:87 sofia/external/602415455 SOFIA INIT2013-07-03 11:14:05.026852 [DEBUG] sofia_glue.c:1220 Local SDP:v=0o=FreeSWITCH 1372826251 1372826252 IN IP4 192.168.119.50s=FreeSWITCHc=IN IP4 192.168.119.50t=0 0m=audio 16594 RTP/AVP 0 8 3 101 13a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20a=sendrecv2013-07-03 11:14:05.026852 [DEBUG] mod_sofia.c:114 (sofia/external/602415455) State Change CS_INIT -> CS_ROUTING2013-07-03 11:14:05.026852 [DEBUG] switch_core_session.c:1341 Send signal sofia/external/602415455 [BREAK]2013-07-03 11:14:05.026852 [DEBUG] switch_core_state_machine.c:455 (sofia/external/602415455) State INIT going to sleep2013-07-03 11:14:05.026852 [DEBUG] switch_core_state_machine.c:416 (sofia/external/602415455) Running State Change CS_ROUTING2013-07-03 11:14:05.026852 [DEBUG] switch_core_state_machine.c:471 (sofia/external/602415455) State ROUTING2013-07-03 11:14:05.026852 [DEBUG] mod_sofia.c:137 sofia/external/602415455 SOFIA ROUTING2013-07-03 11:14:05.026852 [DEBUG] switch_ivr_originate.c:67 (sofia/external/602415455) State Change CS_ROUTING -> CS_CONSUME_MEDIA2013-07-03 11:14:05.026852 [DEBUG] switch_core_session.c:1341 Send signal sofia/external/602415455 [BREAK]2013-07-03 11:14:05.026852 [DEBUG] switch_core_state_machine.c:471 (sofia/external/602415455) State ROUTING going to sleep2013-07-03 11:14:05.026852 [DEBUG] switch_core_state_machine.c:416 (sofia/external/602415455) Running State Change CS_CONSUME_MEDIA20