I have two servers, both seemingly configured identically. One can make outbound calls via the gateway, the other cannot. Here's the error: EXECUTE FreeTDM/1:25/7771112222 bridge(sofia/gateway/outbound/18001231234) 2010-08-23 08:52:05.918700 [ERR] mod_sofia.c:3668 Invalid Gateway 2010-08-23 08:52:05.918700 [NOTICE] mod_sofia.c:3984 Close Channel N/A [CS_NEW] 2010-08-23 08:52:05.918700 [DEBUG] switch_core_state_machine.c:430 () Running State Change CS_DESTROY 2010-08-23 08:52:05.918700 [DEBUG] switch_core_state_machine.c:440 (N/A) State DESTROY 2010-08-23 08:52:05.918700 [DEBUG] mod_sofia.c:358 N/A SOFIA DESTROY 2010-08-23 08:52:05.918700 [DEBUG] switch_core_state_machine.c:440 (N/A) State DESTROY going to sleep 2010-08-23 08:52:05.918700 [ERR] switch_ivr_originate.c:2600 Cannot create outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT] 2010-08-23 08:52:05.918700 [DEBUG] switch_ivr_originate.c:3408 Originate Resulted in Error Cause: 28 [INVALID_NUMBER_FORMAT] 2010-08-23 08:52:05.918700 [INFO] mod_dptools.c:2393 Originate Failed. Cause: INVALID_NUMBER_FORMAT 2010-08-23 08:52:05.918700 [DEBUG] switch_channel.c:2261 (FreeTDM/1:25/7017120999) Callstate Change RINGING -> HANGUP 2010-08-23 08:52:05.918700 [NOTICE] mod_dptools.c:2456 Hangup FreeTDM/1:25/7017120999 [CS_EXECUTE] [INVALID_NUMBER_FORMAT] 2010-08-23 08:52:05.918700 [DEBUG] switch_channel.c:2277 Send signal FreeTDM/1:25/7771112222 [KILL] Dialplan is via mod_xml_curl (both servers get the same info from the same http server) and looks like: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="freeswitch dialplan for 7771112222"> <context name="public"> <extension name="xml-curl-bridge"> <condition field="destination_number" expression=".*"> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="call_timeout=30"/> <action application="set" data="effective_caller_id_number=7771112222"/> <action application="bridge" data="sofia/gateway/outbound/18001231234"/> </condition> </extension> </context> </section> </document> The gateway (identical on both systems): <include> <gateway name="outbound"> <param name="username" value="4442221111"/> <param name="auth-username" value="4444444"/> <param name="password" value="somesecret"/> <param name="proxy" value="sip.myprovider.com"/> <param name="expire-seconds" value="600"/> <param name="register" value="true"/> <param name="retry-seconds" value="30"/> <param name="ping" value="25"/> </gateway> </include> Again, this setup works on one system but not the other and I'm at a loss since I can't be sure what number FS is complaining about (I assume the outbound). Thanks in advance, Cliff --
Two commands to help you see what's up: sofia status sofia status profile external (Assuming you defined the gateway in the external profile) Make sure that your gateway is loading properly. If you can restart the profile without messing things up then try doing that from the command line and watch for errors. (You can do "sofia profile external restart") -MC On Mon, Aug 23, 2010 at 2:10 PM, Brian West <brian@freeswitch.org> wrote:
This should clue you in... the gateway doesn't exist.
/b
On Aug 23, 2010, at 4:04 PM, Cliff Wells wrote:
2010-08-23 08:52:05.918700 [ERR] mod_sofia.c:3668 Invalid Gateway
Yeah, I'm an idiot. My gateway file was named outbound.conf, not outbound.conf.xml so it wasn't getting included. Thanks. On Mon, 2010-08-23 at 16:10 -0500, Brian West wrote:
This should clue you in... the gateway doesn't exist.
/b
On Aug 23, 2010, at 4:04 PM, Cliff Wells wrote:
2010-08-23 08:52:05.918700 [ERR] mod_sofia.c:3668 Invalid Gateway
_______________________________________________ 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
--
participants (3)
-
Brian West
-
Cliff Wells
-
Michael Collins