ADVERTISEMENT

FreeSWITCH Tutorial 2 - Internal Extensions

VoIP Forums

FreeSWITCH Tutorial 2 - Internal Extensions

Postby Paul » 11 May 2009, 23:43

In this tutorial assumes you've installed FreeSWITCH on your computer/server.

------------------------------------------------------------------------

Now, its time to set your internal profiles (extensions) for your FreeSWITCH.

FreeSWITCH calls extension/login accounts as Directories, these configurations can be found under /$PREFIX/conf/directory

There are several configuration files under /$PREFIX/conf/directory directory. Now we open 1000.xml file to set a extension:

- Open 1000.xml under directories directory
- Your 1000.xml file should look something like:
Code: Select all | EXPAND ALL
<include>
  <user id="1000" mailbox="1000">
    <params>
      <param name="password" value="1234"/>
      <param name="vm-password" value="1000"/>
    </params>
    <variables>
      <variable name="accountcode" value="1000"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Extension 1000"/>
      <variable name="effective_caller_id_number" value="1000"/>
    </variables>
  </user>
</include>

- For <user id="1000" mailbox="1000"> defines your user name (extension number)
- For <param name="password" value="1234"/> defines your password.
- For <variable name="effective_caller_id_name" value="Extension 1000"/> defines your caller name.
- For <variable name="effective_caller_id_number" value="1000"/> defines your caller id number.
- Here, change your password for extension 1000, and save your file.
- Restart your FreeSWITCH
- If you completed above steps, now its time to download a softphone onto another computer. This is due to you cannot run softphone and IP PBX/softswitch on the same machine. I would recommend x-lite client from http://www.counterpath.com - Free but it does all of the functions
- Connect your client to internal IP address of your FreeSWITCH (Use port 5060 if you have specify port number), place your username & password.
- If you get connected (authenticated), you are now connected to FreeSWITCH.
- Repeat the process for 1001.xml file, and get another machine to make internal calls between the internal extensions!

------------------------------------------------------------------------------------

FreeSWITCH Tutorials

- Tutorial 1 : Installation
- Tutorial 2 : Internal Extensions
- Tutorial 3 : Provider (SIP Trunk Registration)
- Tutorial 4 : NAT settings
- Tutorial 5 : fs_cli
- Tutorial 6 : Handling Inbound Calls
------------------------------------------------------------------------------------
Last edited by Paul on 26 Jul 2010, 23:55, edited 1 time in total.
User avatar
Paul
Site Admin
 
Posts: 212
Joined: 10 Dec 2007, 18:59
Location: New Zealand

Re:

Postby contctbin » 30 Apr 2010, 22:39

Thanks for this tutorial on how to set your internal profiles (extensions) for your FreeSWITCH. Using this can improve the performance in call center like call center philippines.
contctbin
 
Posts: 3
Joined: 30 Apr 2010, 18:28

Need help for outgoing calls using this configuration

Postby lmcedga » 26 Mar 2012, 08:20

I have set up a new SIP Profile as am now able to get incoming DID calls to my freeswitch. However, when I try to make outgoing calls from one of my internal SIP devices (i.e., 1019) to an outside 10 digit number, it fails. See log below. Is it something that I should configure as well, or should it work? Should I do something more?

freeswitch@bvcomm-Aspire-X1900> 2012-03-25 14:58:30.644823 [NOTICE] switch_channel.c:926 New Channel sofia/internal/1019@192.168.1.135 [afa32c12-6586-47bb-8b6a-97bfa497ff2f]
2012-03-25 14:58:30.644823 [INFO] mod_dialplan_xml.c:485 Processing 1019 <1019>->5145912642 in context default
2012-03-25 14:58:30.644823 [NOTICE] switch_ivr.c:1717 Transfer sofia/internal/1019@192.168.1.135 to enum[5145912642@default]
2012-03-25 14:58:30.683420 [NOTICE] switch_core_state_machine.c:226 sofia/internal/1019@192.168.1.135 has executed the last dialplan instruction, hanging up.
2012-03-25 14:58:30.683420 [NOTICE] switch_core_state_machine.c:228 Hangup sofia/internal/1019@192.168.1.135 [CS_EXECUTE] [NORMAL_CLEARING]
2012-03-25 14:58:30.683420 [NOTICE] switch_core_session.c:1400 Session 52 (sofia/internal/1019@192.168.1.135) Ended
2012-03-25 14:58:30.683420 [NOTICE] switch_core_session.c:1402 Close Channel sofia/internal/1019@192.168.1.135 [CS_DESTROY]
2012-03-25 14:58:43.943377 [NOTICE] switch_channel.c:926 New Channel sofia/internal/1019@192.168.1.135 [a20d2ad5-1800-40db-90aa-c21d1813a29b]
2012-03-25 14:58:43.963375 [INFO] mod_dialplan_xml.c:485 Processing 1019 <1019>->15145911 in context default
2012-03-25 14:58:43.963375 [NOTICE] switch_ivr.c:1717 Transfer sofia/internal/1019@192.168.1.135 to enum[15145911@default]
2012-03-25 14:58:43.983383 [NOTICE] switch_core_state_machine.c:226 sofia/internal/1019@192.168.1.135 has executed the last dialplan instruction, hanging up.
2012-03-25 14:58:43.983383 [NOTICE] switch_core_state_machine.c:228 Hangup sofia/internal/1019@192.168.1.135 [CS_EXECUTE] [NORMAL_CLEARING]
2012-03-25 14:58:43.983383 [NOTICE] switch_core_session.c:1400 Session 53 (sofia/internal/1019@192.168.1.135) Ended
2012-03-25 14:58:43.983383 [NOTICE] switch_core_session.c:1402 Close Channel sofia/internal/1019@192.168.1.135 [CS_DESTROY]
2012-03-25 14:58:51.843391 [NOTICE] switch_channel.c:926 New Channel sofia/internal/1019@192.168.1.135 [760056b0-a176-4ec4-b666-fe413197d2d5]
2012-03-25 14:58:51.843391 [INFO] mod_dialplan_xml.c:485 Processing 1019 <1019>->15145612642 in context default
2012-03-25 14:58:51.863356 [NOTICE] switch_channel.c:926 New Channel sofia/external/15145612642 [411ab5d4-40c8-46c9-b812-052679286e78]
2012-03-25 14:59:05.443393 [NOTICE] sofia.c:6301 Hangup sofia/internal/1019@192.168.1.135 [CS_EXECUTE] [ORIGINATOR_CANCEL]
2012-03-25 14:59:05.443393 [NOTICE] switch_ivr_originate.c:3182 Hangup sofia/external/15145612642 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2012-03-25 14:59:05.443393 [INFO] mod_dptools.c:2922 Originate Failed. Cause: ORIGINATOR_CANCEL
2012-03-25 14:59:05.443393 [NOTICE] switch_core_session.c:1400 Session 55 (sofia/external/15145612642) Ended
2012-03-25 14:59:05.443393 [NOTICE] switch_core_session.c:1402 Close Channel sofia/external/15145612642 [CS_DESTROY]
2012-03-25 14:59:05.443393 [NOTICE] switch_core_session.c:1400 Session 54 (sofia/internal/1019@192.168.1.135) Ended
2012-03-25 14:59:05.443393 [NOTICE] switch_core_session.c:1402 Close Channel sofia/internal/1019@192.168.1.135 [CS_DESTROY]
lmcedga
 
Posts: 1
Joined: 26 Mar 2012, 08:17

Postby Paul » 26 Mar 2012, 21:48

To make outbound call you must have appropriate outbound dialplan. Do you have any outbound dialplan under [FreeSWITCH Path]/conf/dialplan/default directory?
User avatar
Paul
Site Admin
 
Posts: 212
Joined: 10 Dec 2007, 18:59
Location: New Zealand


ADVERTISEMENT

Return to VoIP

Who is online

Users browsing this forum: No registered users and 0 guests