configuration changes required to make outbound calls

894 views
Skip to first unread message

Dhairya Vora

unread,
Aug 2, 2011, 10:13:16 AM8/2/11
to plivo...@googlegroups.com
I have installed freeswitch and plivo.

plivo is stareted using :

i have bought a callcentric account for making outbound calls.

Using http://wiki.freeswitch.org/wiki/Provider_Configuration:_Callcentric, I have made my sofia profile regd for callcentric

According to my knowledge, if make calls right now(after installing plivo), requests are going via plivo's dialplan. So, I should have to modify its dialplan. But I am not sure. So, waiting for some reply rather than trying.

I want to be able to make a call to at least one pstn number using plivo. Any help?
Message has been deleted

Dhairya Vora

unread,
Aug 2, 2011, 10:30:24 AM8/2/11
to plivo...@googlegroups.com
Also want to add that after installing plivo,
two local usres (directly connected to freeswitch) are also unable call each other. (that's why i think that plivo must have changed dialplan rules)

And then I found :
/usr/local/freeswitch/conf/dialplan

    <extension name="plivo">
        <condition field="destination_number" expression="^(\d+)$">
            <action application="enable_heartbeat" data="60"/>
            <action application="socket" data="127.0.0.1:8084 async full"/>
        </condition>
    </extension>



Antonio Pardo

unread,
Aug 2, 2011, 10:44:02 AM8/2/11
to plivo...@googlegroups.com
Hi,

El 02/08/11 16:13, Dhairya Vora escribió:

I'm new with Plivo and FreeSWITCH. The book of FS help me very much for
understand the picture, my background are for Asterisk and Kamailio and
now I like FS :)

https://www.packtpub.com/freeswitch-1-0-6-build-robust-high-performance-telephony-systems/book

Sorry for my english.

Ciao

--
http://about.me/apardo

signature.asc

Dhairya Vora

unread,
Aug 2, 2011, 11:07:20 AM8/2/11
to plivo...@googlegroups.com
thanks a lot ciao,
As I said earlier, I have bought a callcentric account
what should be written for gatway parametere in plivo (i am trying example-call.php from phphelper provided by plivo)
*******************************************************************************************************************************************************
frees...@localhost.localdomain> sofia status

                     Name          Type                                       Data      State
=================================================================================================
                 external       profile           sip:mod_...@172.16.10.211:5080      RUNNING (0)
    external::example.com       gateway                    sip:joe...@example.com      NOREG
         external::custom       gateway            sip:17771...@callcentric.com      REGED
            172.16.10.211         alias                                   internal      ALIASED
                 internal       profile           sip:mod_...@172.16.10.211:5060      RUNNING (0)
=================================================================================================
2 profiles 1 alias
*******************************************************************************************************************************************************

mi...@plivo.com

unread,
Aug 2, 2011, 12:06:27 PM8/2/11
to plivo...@googlegroups.com
Hi,

for Gateway, set it to: "sofia/gateway/custom"


Le Tue, 2 Aug 2011 08:07:20 -0700 (PDT),
Dhairya Vora <dhairy...@gmail.com> a écrit :

Dhairya Vora

unread,
Aug 3, 2011, 12:18:26 AM8/3/11
to plivo...@googlegroups.com
thanks a lot group. so many confusions and misunderstandings are gone because of that ebook....

Dhairya Vora

unread,
Aug 3, 2011, 12:53:17 AM8/3/11
to plivo...@googlegroups.com
I don't understand why two users (registered directly to freeswitch) are unable to connect each other?
Is this due to plivo?


When a registered user 1001 calls registered user 1002, call fails giving this error
************************************************************************************************************************************************************
frees...@localhost.localdomain> 2011-08-03 10:07:01.941089 [WARNING] sofia_reg.c:1337 SIP auth challenge (INVITE) on sofia profile 'internal' for [10...@172.16.10.211] from ip 172.16.10.248
2011-08-03 10:07:01.941089 [NOTICE] switch_channel.c:897 New Channel sofia/internal/10...@172.16.10.211 [0bf31c06-8379-4831-88d7-a7df3c4ecd49]
2011-08-03 10:07:01.941089 [INFO] mod_dialplan_xml.c:336 Processing 1000 <1000>->1002 in context default
2011-08-03 10:07:01.941089 [INFO] switch_core_session.c:1281 sofia/internal/10...@172.16.10.211 setting session heartbeat to 60 second(s).
2011-08-03 10:07:01.941089 [ERR] mod_event_socket.c:457 Socket Error!
2011-08-03 10:07:01.941089 [NOTICE] switch_core_state_machine.c:189 sofia/internal/10...@172.16.10.211 has executed the last dialplan instruction, hanging up.
2011-08-03 10:07:01.941089 [NOTICE] switch_core_state_machine.c:191 Hangup sofia/internal/10...@172.16.10.211 [CS_EXECUTE] [NORMAL_CLEARING]
2011-08-03 10:07:01.961094 [NOTICE] switch_core_session.c:1347 Session 25 (sofia/internal/10...@172.16.10.211) Ended
2011-08-03 10:07:01.961094 [NOTICE] switch_core_session.c:1349 Close Channel sofia/internal/10...@172.16.10.211 [CS_DESTROY]
************************************************************************************************************************************************************



When I make an outbound call to my mobile, calls are not going through the custom gateway
************************************************************************************************************************************************************
frees...@localhost.localdomain> 2011-08-03 10:03:43.608234 [WARNING] sofia_reg.c:1337 SIP auth challenge (INVITE) on sofia profile 'internal' for [0091987...@172.16.10.211] from ip 172.16.10.213
2011-08-03 10:03:43.728232 [NOTICE] switch_channel.c:897 New Channel sofia/internal/10...@172.16.10.211 [334906be-9cb0-44f2-9660-f9377c2ecfba]
2011-08-03 10:03:43.728232 [INFO] mod_dialplan_xml.c:336 Processing 1002 <1002>->00919876543210 in context default
2011-08-03 10:03:43.728232 [INFO] switch_core_session.c:1281 sofia/internal/10...@172.16.10.211 setting session heartbeat to 60 second(s).
2011-08-03 10:03:43.728232 [ERR] mod_event_socket.c:457 Socket Error!
2011-08-03 10:03:43.728232 [NOTICE] switch_core_state_machine.c:189 sofia/internal/10...@172.16.10.211 has executed the last dialplan instruction, hanging up.
2011-08-03 10:03:43.728232 [NOTICE] switch_core_state_machine.c:191 Hangup sofia/internal/10...@172.16.10.211 [CS_EXECUTE] [NORMAL_CLEARING]
2011-08-03 10:03:43.728232 [NOTICE] switch_core_session.c:1347 Session 24 (sofia/internal/10...@172.16.10.211) Ended
2011-08-03 10:03:43.728232 [NOTICE] switch_core_session.c:1349 Close Channel sofia/internal/10...@172.16.10.211 [CS_DESTROY]
************************************************************************************************************************************************************

Dhairya Vora

unread,
Aug 3, 2011, 4:46:34 AM8/3/11
to plivo...@googlegroups.com
fore more details, please check http://pastebin.freeswitch.org/16962 for internal call error
and
http://pastebin.freeswitch.org/16963 for external call error

Venky

unread,
Aug 3, 2011, 5:19:02 AM8/3/11
to plivo...@googlegroups.com
Dhariya,

1. If you are making outbound calls using FreeSWITCH independently or with FreeSWITCH/Plivo, dialplan has no role to play in this case. It does not matter which provider you are using including callcentric.

2. For incoming calls, or calling between 2 registered softphones, if you have the Plivo dialplan inserted at the top, all calls will go through plivo. if you dont want this behavior, you could modify the plivo dialplan accordingly.



Regards
Venky
Reply all
Reply to author
Forward
0 new messages