Can't make outbound calls

Moderator: areski

Can't make outbound calls

Postby JackB » Thu Nov 17, 2011 5:22 pm

I have just installed Ubuntu 10.04 with all the updates and performed the install of Newfies, but when I try to make an outgoing call nothing happens. Here is the output of freeswitch:

2011-11-17 11:56:09.564537 [DEBUG] switch_ivr_originate.c:1884 Parsing global variables
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [plivo_request_uuid]=[00cd98d6-113d-11e1-8605-000c29768c26]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [plivo_answer_url]=[http://192.168.1.58:8008/api/v1/answercall/]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [plivo_hangup_url]=[http://192.168.1.58:8008/api/v1/hangupcall/]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [origination_caller_id_number]=[18002223334]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [bridge_early_media]=[true]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [hangup_after_bridge]=[true]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [plivo_app]=[true]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [absolute_codec_string]=[PCMA]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [originate_timeout]=[1800]
2011-11-17 11:56:09.564537 [DEBUG] switch_event.c:1521 Parsing variable [ignore_early_media]=[true]
2011-11-17 11:56:09.564537 [NOTICE] switch_channel.c:920 New Channel sofia/external/1631xxxxxxx [00ce2e4a-113d-11e1-8a2c-dd3d29e65072]
2011-11-17 11:56:09.564537 [DEBUG] mod_sofia.c:4511 (sofia/external/1631xxxxxxx) State Change CS_NEW -> CS_INIT
2011-11-17 11:56:09.564537 [DEBUG] switch_core_session.c:1177 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.564537 [DEBUG] switch_core_state_machine.c:362 (sofia/external/1631xxxxxxx) Running State Change CS_INIT
2011-11-17 11:56:09.564537 [DEBUG] switch_core_state_machine.c:401 (sofia/external/1631xxxxxxx) State INIT
2011-11-17 11:56:09.564537 [DEBUG] mod_sofia.c:85 sofia/external/1631xxxxxxx SOFIA INIT
2011-11-17 11:56:09.743997 [DEBUG] switch_nat.c:510 mapped public port 26966 protocol UDP to localport 26966
2011-11-17 11:56:09.743997 [DEBUG] switch_nat.c:510 mapped public port 26967 protocol UDP to localport 26967
2011-11-17 11:56:09.764694 [DEBUG] mod_sofia.c:125 (sofia/external/1631xxxxxxx) State Change CS_INIT -> CS_ROUTING
2011-11-17 11:56:09.764694 [DEBUG] switch_core_session.c:1177 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.764694 [DEBUG] switch_core_state_machine.c:401 (sofia/external/1631xxxxxxx) State INIT going to sleep
2011-11-17 11:56:09.764694 [DEBUG] switch_core_state_machine.c:362 (sofia/external/1631xxxxxxx) Running State Change CS_ROUTING
2011-11-17 11:56:09.764694 [DEBUG] switch_channel.c:1871 (sofia/external/1631xxxxxxx) Callstate Change DOWN -> RINGING
2011-11-17 11:56:09.764694 [DEBUG] switch_core_state_machine.c:410 (sofia/external/1631xxxxxxx) State ROUTING
2011-11-17 11:56:09.764694 [DEBUG] mod_sofia.c:148 sofia/external/1631xxxxxxx SOFIA ROUTING
2011-11-17 11:56:09.764694 [DEBUG] switch_ivr_originate.c:66 (sofia/external/1631xxxxxxx) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2011-11-17 11:56:09.764694 [DEBUG] switch_core_session.c:1177 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.764694 [DEBUG] switch_core_state_machine.c:410 (sofia/external/1631xxxxxxx) State ROUTING going to sleep
2011-11-17 11:56:09.764694 [DEBUG] switch_core_state_machine.c:362 (sofia/external/1631xxxxxxx) Running State Change CS_CONSUME_MEDIA
2011-11-17 11:56:09.764694 [DEBUG] switch_core_state_machine.c:429 (sofia/external/1631xxxxxxx) State CONSUME_MEDIA
2011-11-17 11:56:09.764694 [DEBUG] switch_core_state_machine.c:429 (sofia/external/1631xxxxxxx) State CONSUME_MEDIA going to sleep
2011-11-17 11:56:09.764694 [DEBUG] switch_core_session.c:872 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.764694 [DEBUG] sofia.c:5339 Channel sofia/external/1631xxxxxxx entering state [calling][0]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_session.c:872 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_session.c:872 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_session.c:872 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.865098 [DEBUG] sofia.c:5339 Channel sofia/external/1631xxxxxxx entering state [terminated][415]
2011-11-17 11:56:09.865098 [DEBUG] switch_channel.c:2833 (sofia/external/1631xxxxxxx) Callstate Change RINGING -> HANGUP
2011-11-17 11:56:09.865098 [NOTICE] sofia.c:6094 Hangup sofia/external/1631xxxxxxx [CS_CONSUME_MEDIA] [SERVICE_NOT_IMPLEMENTED]
2011-11-17 11:56:09.865098 [DEBUG] switch_ivr_originate.c:3367 Originate Resulted in Error Cause: 79 [SERVICE_NOT_IMPLEMENTED]
2011-11-17 11:56:09.865098 [DEBUG] switch_channel.c:2856 Send signal sofia/external/1631xxxxxxx [KILL]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_session.c:1177 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:362 (sofia/external/1631xxxxxxx) Running State Change CS_HANGUP
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:602 (sofia/external/1631xxxxxxx) State HANGUP
2011-11-17 11:56:09.865098 [DEBUG] mod_sofia.c:459 sofia/external/1631xxxxxxx Overriding SIP cause 501 with 415 from the other leg
2011-11-17 11:56:09.865098 [DEBUG] mod_sofia.c:465 Channel sofia/external/1631xxxxxxx hanging up, cause: SERVICE_NOT_IMPLEMENTED
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:47 sofia/external/1631xxxxxxx Standard HANGUP, cause: SERVICE_NOT_IMPLEMENTED
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:602 (sofia/external/1631xxxxxxx) State HANGUP going to sleep
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:393 (sofia/external/1631xxxxxxx) State Change CS_HANGUP -> CS_REPORTING
2011-11-17 11:56:09.865098 [DEBUG] switch_core_session.c:1177 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:362 (sofia/external/1631xxxxxxx) Running State Change CS_REPORTING
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:662 (sofia/external/1631xxxxxxx) State REPORTING
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:79 sofia/external/1631xxxxxxx Standard REPORTING, cause: SERVICE_NOT_IMPLEMENTED
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:662 (sofia/external/1631xxxxxxx) State REPORTING going to sleep
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:387 (sofia/external/1631xxxxxxx) State Change CS_REPORTING -> CS_DESTROY
2011-11-17 11:56:09.865098 [DEBUG] switch_core_session.c:1177 Send signal sofia/external/1631xxxxxxx [BREAK]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_session.c:1377 Session 5 (sofia/external/1631xxxxxxx) Locked, Waiting on external entities
2011-11-17 11:56:09.865098 [NOTICE] switch_core_session.c:1395 Session 5 (sofia/external/1631xxxxxxx) Ended
2011-11-17 11:56:09.865098 [NOTICE] switch_core_session.c:1397 Close Channel sofia/external/1631xxxxxxx [CS_DESTROY]
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:491 (sofia/external/1631xxxxxxx) Callstate Change HANGUP -> DOWN
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:494 (sofia/external/1631xxxxxxx) Running State Change CS_DESTROY
2011-11-17 11:56:09.865098 [DEBUG] switch_core_state_machine.c:504 (sofia/external/1631xxxxxxx) State DESTROY
2011-11-17 11:56:09.865098 [DEBUG] mod_sofia.c:370 sofia/external/1631xxxxxxx SOFIA DESTROY
2011-11-17 11:56:09.885111 [DEBUG] switch_nat.c:570 unmapped public port 26966 protocol UDP to localport 26966
2011-11-17 11:56:09.904469 [DEBUG] switch_nat.c:570 unmapped public port 26967 protocol UDP to localport 26967
2011-11-17 11:56:09.904469 [DEBUG] switch_core_state_machine.c:86 sofia/external/1631xxxxxxx Standard DESTROY
2011-11-17 11:56:09.904469 [DEBUG] switch_core_state_machine.c:504 (sofia/external/1631xxxxxxx) State DESTROY going to sleep

Any help would be greatly appreciated!

-Jack
JackB
 
Posts: 3
Joined: Thu Nov 17, 2011 4:59 pm

Re: Can't make outbound calls

Postby areski » Fri Nov 18, 2011 3:00 pm

It seems that you miss configured your gateway for outbound calls.

Code: Select all
2011-11-17 11:56:09.865098 [NOTICE] sofia.c:6094 Hangup sofia/external/1631xxxxxxx [CS_CONSUME_MEDIA] [SERVICE_NOT_IMPLEMENTED]


Have you tested the gateway on Freeswitch ? Can you tell how it configured ?
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Can't make outbound calls

Postby JackB » Fri Nov 18, 2011 8:37 pm

Wish I could. I'm a native of Asterisk so this is all pretty confusing to me. Again, I appreciate any input but I'll keep hitting the Google to see if I can figure this out. BIG difference between asterisk and freeswitch is that Asterisk forums give code snippets and whatnot :)
JackB
 
Posts: 3
Joined: Thu Nov 17, 2011 4:59 pm

Re: Can't make outbound calls

Postby jroper » Thu Nov 24, 2011 11:17 am

Hi

Take another look at the beginner's guide at http://www.newfies-dialer.org/documenta ... ers-guide/ paying particular attention to Freeswitch trunk configuration.

Provided you get the xml file right, and in the right place, then you should be good to go.

Joe
jroper
 
Posts: 31
Joined: Wed Oct 19, 2011 1:19 pm

Re: Can't make outbound calls

Postby JackB » Thu Dec 01, 2011 9:20 pm

<include>
<gateway name="nyc01-03.fs.xxxxxxxx.net">
<!--/// account username *required* ///-->
<param name="username" value="xxxxxxxxxx"/>
<!--/// auth realm: *optional* same as gateway name, if blank ///-->
<!--<param name="realm" value="asterlink.com"/>-->
<!--/// username to use in from: *optional* same as username, if blank ///-->
<param name="from-user" value="xxxxxxxxxx"/>
<!--/// domain to use in from: *optional* same as realm, if blank ///-->
<!--param name="from-domain" value=""/-->
<!--/// account password *required* ///-->
<param name="password" value="xxxxxxxxxxxx"/>
<!--/// extension for inbound calls: *optional* same as username, if blank ///-->
<!--<param name="extension" value="cluecon"/>-->
<!--/// proxy host: *optional* same as realm, if blank ///-->
<!--<param name="proxy" value="asterlink.com"/>-->
<!--/// send register to this proxy: *optional* same as proxy, if blank ///-->
<!--<param name="register-proxy" value="mysbc.com"/>-->
<!--/// expire in seconds: *optional* 3600, if blank ///-->
<!--<param name="expire-seconds" value="60"/>-->
<!--/// do not register ///-->
<param name="register" value="true"/>
<!-- which transport to use for register -->
<!--<param name="register-transport" value="udp"/>-->
<!--How many seconds before a retry when a failure or timeout occurs -->
<!--<param name="retry-seconds" value="30"/>-->
<!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
<!--<param name="caller-id-in-from" value="false"/>-->
<!--extra sip params to send in the contact-->
<!--<param name="contact-params" value="tport=tcp"/>-->
<!--send an options ping every x seconds, failure will unregister and/or mark it down-->
<!--<param name="ping" value="25"/>-->
</gateway>
</include>

There's my config file. I spent a good deal of time making sure this was working exactly as intended but I'm still hunting around for what could be hanging it up. The trunk registers and appears to be working OK so that's why I'm rather stumped!

sofia status
Name Type Data State
=================================================================================================
external profile sip:mod_sofia@192.168.1.70:5080 RUNNING (0)
external::example.com gateway sip:joeuser@example.com NOREG
external::nyc01-03.fs.xxxxxxxx.net gateway sip:xxxxxxxxxx@nyc01-03.fs.xxxxxxxx.net REGED
192.168.1.70 alias internal ALIASED
internal profile sip:mod_sofia@192.168.1.70:5060 RUNNING (0)
internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
=================================================================================================
3 profiles 1 alias

The actual xml file (siptrunk.xml) is sitting in /usr/local/freeswitch/conf/sip_profiles/external.

So there you have it! I'm all for RTFM so please don't hesitate to point me to whatever docs might be out there... unless you have a silver bullet to solve my puzzle in which case I'll share my Vitamin Waters and Pringles chips with you!
JackB
 
Posts: 3
Joined: Thu Nov 17, 2011 4:59 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 59 guests

cron