Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] problem when adding more extension


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
tzury.by at reguluslab...
Guest





PostPosted: Wed Aug 12, 2009 1:49 am    Post subject: [Freeswitch-users] problem when adding more extension Reply with quote

Hi,

I wanted to add more extension to freeswitch.
to add extension 1050 with password 1234 I did the following:

$ cd /usr/local/freeswitch/conf/directory/default

created 1050.xml having all '1000' strings replaced by '1050' by typing
$ sed s/1000/1050/g < 1000.xml > 1050.xml

rescan and reload the xml by typing into the CLI

freeswitch@internal> sofia profile internal rescan reloadxml

However, when I tried to login with these credentials I got the
following in the fs_cli:

2009-08-12 06:35:01 [DEBUG] sofia_reg.c:1469 sofia_reg_parse_auth()
SIP username 1050 does not match auth username
2009-08-12 06:35:01 [DEBUG] sofia_reg.c:869
sofia_reg_handle_register() Send challenge for
[1050@server_address.net]

below are the content of 1000 and 1050 xml files

please advise.


$ cat 1050.xml
<include>
<user id="1050" mailbox="1050">
<params>
<param name="password" value="1234"/>
<param name="vm-password" value="1050"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1050"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1050"/>
<variable name="effective_caller_id_number" value="1050"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

$ cat 1000.xml
<include>
<user id="1000" mailbox="1000">
<params>
<param name="password" value="1234"/>
<param name="vm-password" value="1000"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<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"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

_______________________________________________
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
Back to top
kevin at kgolding.co.uk
Guest





PostPosted: Wed Aug 12, 2009 3:50 am    Post subject: [Freeswitch-users] problem when adding more extension Reply with quote

Hello,

I've just had the same problem. Solved it by adding the new extension to
the default group.

i.e. In the /usr/local/freeswitch/conf/directory/default.xml file you
need to add <user id="1050" type="pointer"> with one of the "group"
blocks (e.g. after the line <group name="default">

Kevin

Tzury Bar Yochay wrote:
Quote:
Hi,

I wanted to add more extension to freeswitch.
to add extension 1050 with password 1234 I did the following:

$ cd /usr/local/freeswitch/conf/directory/default

created 1050.xml having all '1000' strings replaced by '1050' by typing
$ sed s/1000/1050/g < 1000.xml > 1050.xml

rescan and reload the xml by typing into the CLI

freeswitch@internal> sofia profile internal rescan reloadxml

However, when I tried to login with these credentials I got the
following in the fs_cli:

2009-08-12 06:35:01 [DEBUG] sofia_reg.c:1469 sofia_reg_parse_auth()
SIP username 1050 does not match auth username
2009-08-12 06:35:01 [DEBUG] sofia_reg.c:869
sofia_reg_handle_register() Send challenge for
[1050@server_address.net]

below are the content of 1000 and 1050 xml files

please advise.


$ cat 1050.xml
<include>
<user id="1050" mailbox="1050">
<params>
<param name="password" value="1234"/>
<param name="vm-password" value="1050"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1050"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1050"/>
<variable name="effective_caller_id_number" value="1050"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

$ cat 1000.xml
<include>
<user id="1000" mailbox="1000">
<params>
<param name="password" value="1234"/>
<param name="vm-password" value="1000"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<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"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

_______________________________________________
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



_______________________________________________
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
Back to top
tzury.by at reguluslab...
Guest





PostPosted: Wed Aug 12, 2009 5:02 am    Post subject: [Freeswitch-users] problem when adding more extension Reply with quote

still not working, I mean, I can initiate a call from 1060 to 1000 but
not from 1000 to 1060.
1060 is just an example. This applies to all new extension I have
added (beyond to the default 1000-1019).
as you can see below I added them all to <group name="support">

This is how the confs look like

/usr/local/freeswitch/conf/directory# cat default.xml
<include>
<!--the domain or ip (the right hand side of the @ in the addr-->
<domain name="$${domain}">
<params>
<param name="dial-string"
value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>

<variables>
<variable name="record_stereo" value="true"/>
<variable name="default_gateway" value="$${default_provider}"/>
<variable name="default_areacode" value="$${default_areacode}"/>
<variable name="transfer_fallback_extension" value="operator"/>
</variables>

<groups>
<group name="default">
<users>
<X-PRE-PROCESS cmd="include" data="default/*.xml"/>
</users>
</group>

<group name="sales">
<users>
<!--
type="pointer" is a pointer so you can have the
same user in multiple groups. It basically means
to keep searching for the user in the directory.
-->
<user id="1000" type="pointer"/>
<user id="1001" type="pointer"/>
<user id="1002" type="pointer"/>
<user id="1003" type="pointer"/>
<user id="1004" type="pointer"/>
</users>
</group>

<group name="billing">
<users>
<user id="1005" type="pointer"/>
<user id="1006" type="pointer"/>
<user id="1007" type="pointer"/>
<user id="1008" type="pointer"/>
<user id="1009" type="pointer"/>
</users>
</group>

<group name="support">
<users>
<user id="1010" type="pointer"/>
<user id="1011" type="pointer"/>
<user id="1012" type="pointer"/>
<user id="1013" type="pointer"/>
<user id="1014" type="pointer"/>
<user id="1015" type="pointer"/>
<user id="1016" type="pointer"/>
<user id="1017" type="pointer"/>
<user id="1018" type="pointer"/>
<user id="1019" type="pointer"/>
<user id="1020" type="pointer"/>
<user id="1050" type="pointer"/>
<user id="1051" type="pointer"/>
<user id="1052" type="pointer"/>
<user id="1053" type="pointer"/>
<user id="1054" type="pointer"/>
<user id="1055" type="pointer"/>
<user id="1056" type="pointer"/>
<user id="1057" type="pointer"/>
<user id="1058" type="pointer"/>
<user id="1059" type="pointer"/>
<user id="1060" type="pointer"/>
<user id="1061" type="pointer"/>
<user id="1062" type="pointer"/>
<user id="1063" type="pointer"/>

</users>
</group>
</groups>

</domain>
</include>

and the xml files under directory/default

root@snoip-srv-001:/usr/local/freeswitch/conf/directory/default# ls -l
total 164
-rw-r--r-- 1 root root 750 2009-07-21 19:44 1000.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1001.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1002.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1003.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1004.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1005.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1006.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1007.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1008.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1009.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1010.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1011.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1012.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1013.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1014.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1015.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1016.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1017.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1018.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1019.xml
-rw-r--r-- 1 root root 750 2009-08-12 06:49 1020.xml
-rw-r--r-- 1 root root 750 2009-07-27 13:14 1050.xml
-rw-r--r-- 1 root root 750 2009-07-27 13:14 1051.xml
-rw-r--r-- 1 root root 750 2009-07-27 13:14 1052.xml
-rw-r--r-- 1 root root 750 2009-08-06 08:59 1053.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1054.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1055.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1056.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1057.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1058.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1059.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1060.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1061.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1062.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:58 1063.xml
-rw-r--r-- 1 root root 750 2009-08-11 10:10 1064.xml
-rw-r--r-- 1 root root 750 2009-08-11 10:12 1065.xml
-rw-r--r-- 1 root root 5029 2009-07-20 23:47 brian.xml
-rw-r--r-- 1 root root 526 2009-07-20 23:47 default.xml
-rw-r--r-- 1 root root 905 2009-07-20 23:47 example.com.xml

_______________________________________________
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
Back to top
kevin at kgolding.co.uk
Guest





PostPosted: Wed Aug 12, 2009 5:36 am    Post subject: [Freeswitch-users] problem when adding more extension Reply with quote

Edit the line below as shown (in the dialplan/default.xml file)

Original line (about line 206)
<condition field="desination_number" expression="^(10[01][0-9])$">

Replacement line
<condition field="desination_number" expression="^(10[0-9][0-9])$">

This will allow extensions number 1000 to 1099.

Kevin

Tzury Bar Yochay wrote:
Quote:
still not working, I mean, I can initiate a call from 1060 to 1000 but
not from 1000 to 1060.
1060 is just an example. This applies to all new extension I have
added (beyond to the default 1000-1019).
as you can see below I added them all to <group name="support">

This is how the confs look like

/usr/local/freeswitch/conf/directory# cat default.xml
<include>
<!--the domain or ip (the right hand side of the @ in the addr-->
<domain name="$${domain}">
<params>
<param name="dial-string"
value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>

<variables>
<variable name="record_stereo" value="true"/>
<variable name="default_gateway" value="$${default_provider}"/>
<variable name="default_areacode" value="$${default_areacode}"/>
<variable name="transfer_fallback_extension" value="operator"/>
</variables>

<groups>
<group name="default">
<users>
<X-PRE-PROCESS cmd="include" data="default/*.xml"/>
</users>
</group>

<group name="sales">
<users>
<!--
type="pointer" is a pointer so you can have the
same user in multiple groups. It basically means
to keep searching for the user in the directory.
-->
<user id="1000" type="pointer"/>
<user id="1001" type="pointer"/>
<user id="1002" type="pointer"/>
<user id="1003" type="pointer"/>
<user id="1004" type="pointer"/>
</users>
</group>

<group name="billing">
<users>
<user id="1005" type="pointer"/>
<user id="1006" type="pointer"/>
<user id="1007" type="pointer"/>
<user id="1008" type="pointer"/>
<user id="1009" type="pointer"/>
</users>
</group>

<group name="support">
<users>
<user id="1010" type="pointer"/>
<user id="1011" type="pointer"/>
<user id="1012" type="pointer"/>
<user id="1013" type="pointer"/>
<user id="1014" type="pointer"/>
<user id="1015" type="pointer"/>
<user id="1016" type="pointer"/>
<user id="1017" type="pointer"/>
<user id="1018" type="pointer"/>
<user id="1019" type="pointer"/>
<user id="1020" type="pointer"/>
<user id="1050" type="pointer"/>
<user id="1051" type="pointer"/>
<user id="1052" type="pointer"/>
<user id="1053" type="pointer"/>
<user id="1054" type="pointer"/>
<user id="1055" type="pointer"/>
<user id="1056" type="pointer"/>
<user id="1057" type="pointer"/>
<user id="1058" type="pointer"/>
<user id="1059" type="pointer"/>
<user id="1060" type="pointer"/>
<user id="1061" type="pointer"/>
<user id="1062" type="pointer"/>
<user id="1063" type="pointer"/>

</users>
</group>
</groups>

</domain>
</include>

and the xml files under directory/default

root@snoip-srv-001:/usr/local/freeswitch/conf/directory/default# ls -l
total 164
-rw-r--r-- 1 root root 750 2009-07-21 19:44 1000.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1001.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1002.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1003.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1004.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1005.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1006.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1007.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1008.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1009.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1010.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1011.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1012.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1013.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1014.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1015.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1016.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1017.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1018.xml
-rw-r--r-- 1 root root 750 2009-07-20 23:47 1019.xml
-rw-r--r-- 1 root root 750 2009-08-12 06:49 1020.xml
-rw-r--r-- 1 root root 750 2009-07-27 13:14 1050.xml
-rw-r--r-- 1 root root 750 2009-07-27 13:14 1051.xml
-rw-r--r-- 1 root root 750 2009-07-27 13:14 1052.xml
-rw-r--r-- 1 root root 750 2009-08-06 08:59 1053.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1054.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1055.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1056.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:56 1057.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1058.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1059.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1060.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1061.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:57 1062.xml
-rw-r--r-- 1 root root 750 2009-08-11 09:58 1063.xml
-rw-r--r-- 1 root root 750 2009-08-11 10:10 1064.xml
-rw-r--r-- 1 root root 750 2009-08-11 10:12 1065.xml
-rw-r--r-- 1 root root 5029 2009-07-20 23:47 brian.xml
-rw-r--r-- 1 root root 526 2009-07-20 23:47 default.xml
-rw-r--r-- 1 root root 905 2009-07-20 23:47 example.com.xml

_______________________________________________
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



_______________________________________________
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
Back to top
tzury.by at reguluslab...
Guest





PostPosted: Wed Aug 12, 2009 5:52 am    Post subject: [Freeswitch-users] problem when adding more extension Reply with quote

Thanks allot Kevin.
I felt it is about a missing configuration parameter


On Wed, Aug 12, 2009 at 1:31 PM, Kevin Golding<kevin@kgolding.co.uk> wrote:
Quote:
Edit the line below as shown (in the dialplan/default.xml file)

Original line (about line 206)
<condition field="desination_number" expression="^(10[01][0-9])$">

Replacement line
<condition field="desination_number" expression="^(10[0-9][0-9])$">

This will allow extensions number 1000 to 1099.

Kevin

Tzury Bar Yochay wrote:
Quote:
still not working, I mean, I can initiate a call from 1060 to 1000 but
not from 1000 to 1060.
1060 is just an example. This applies to all new extension I have
added (beyond to the default 1000-1019).
as you can see below I added them all to <group name="support">

This is how the confs look like

/usr/local/freeswitch/conf/directory# cat default.xml
<include>
  <!--the domain or ip (the right hand side of the @ in the addr-->
  <domain name="$${domain}">
    <params>
      <param name="dial-string"
value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
    </params>

    <variables>
      <variable name="record_stereo" value="true"/>
      <variable name="default_gateway" value="$${default_provider}"/>
      <variable name="default_areacode" value="$${default_areacode}"/>
      <variable name="transfer_fallback_extension" value="operator"/>
    </variables>

    <groups>
      <group name="default">
      <users>
        <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
      </users>
      </group>

      <group name="sales">
      <users>
        <!--
            type="pointer" is a pointer so you can have the
            same user in multiple groups.  It basically means
            to keep searching for the user in the directory.
        -->
        <user id="1000" type="pointer"/>
        <user id="1001" type="pointer"/>
        <user id="1002" type="pointer"/>
        <user id="1003" type="pointer"/>
        <user id="1004" type="pointer"/>
      </users>
      </group>

      <group name="billing">
      <users>
        <user id="1005" type="pointer"/>
        <user id="1006" type="pointer"/>
        <user id="1007" type="pointer"/>
        <user id="1008" type="pointer"/>
        <user id="1009" type="pointer"/>
      </users>
      </group>

      <group name="support">
      <users>
        <user id="1010" type="pointer"/>
        <user id="1011" type="pointer"/>
        <user id="1012" type="pointer"/>
        <user id="1013" type="pointer"/>
          <user id="1014" type="pointer"/>
          <user id="1015" type="pointer"/>
          <user id="1016" type="pointer"/>
          <user id="1017" type="pointer"/>
          <user id="1018" type="pointer"/>
          <user id="1019" type="pointer"/>
          <user id="1020" type="pointer"/>
          <user id="1050" type="pointer"/>
          <user id="1051" type="pointer"/>
        <user id="1052" type="pointer"/>
        <user id="1053" type="pointer"/>
        <user id="1054" type="pointer"/>
          <user id="1055" type="pointer"/>
          <user id="1056" type="pointer"/>
          <user id="1057" type="pointer"/>
          <user id="1058" type="pointer"/>
          <user id="1059" type="pointer"/>
          <user id="1060" type="pointer"/>
          <user id="1061" type="pointer"/>
          <user id="1062" type="pointer"/>
          <user id="1063" type="pointer"/>

      </users>
      </group>
    </groups>

  </domain>
</include>

and the xml files under directory/default

root@snoip-srv-001:/usr/local/freeswitch/conf/directory/default# ls -l
total 164
-rw-r--r-- 1 root root  750 2009-07-21 19:44 1000.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1001.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1002.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1003.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1004.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1005.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1006.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1007.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1008.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1009.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1010.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1011.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1012.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1013.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1014.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1015.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1016.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1017.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1018.xml
-rw-r--r-- 1 root root  750 2009-07-20 23:47 1019.xml
-rw-r--r-- 1 root root  750 2009-08-12 06:49 1020.xml
-rw-r--r-- 1 root root  750 2009-07-27 13:14 1050.xml
-rw-r--r-- 1 root root  750 2009-07-27 13:14 1051.xml
-rw-r--r-- 1 root root  750 2009-07-27 13:14 1052.xml
-rw-r--r-- 1 root root  750 2009-08-06 08:59 1053.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:56 1054.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:56 1055.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:56 1056.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:56 1057.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:57 1058.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:57 1059.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:57 1060.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:57 1061.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:57 1062.xml
-rw-r--r-- 1 root root  750 2009-08-11 09:58 1063.xml
-rw-r--r-- 1 root root  750 2009-08-11 10:10 1064.xml
-rw-r--r-- 1 root root  750 2009-08-11 10:12 1065.xml
-rw-r--r-- 1 root root 5029 2009-07-20 23:47 brian.xml
-rw-r--r-- 1 root root  526 2009-07-20 23:47 default.xml
-rw-r--r-- 1 root root  905 2009-07-20 23:47 example.com.xml

_______________________________________________
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



_______________________________________________
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




--
Tzury Bar Yochay

Regulus Labs ltd.
http://reguluslabs.com
+972 52 5133399

_______________________________________________
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
Back to top
dujinfang at gmail.com
Guest





PostPosted: Wed Aug 12, 2009 6:26 am    Post subject: [Freeswitch-users] problem when adding more extension Reply with quote

On Aug 12, 2009, at 2:44 PM, Tzury Bar Yochay wrote:
Quote:
Hi,

I wanted to add more extension to freeswitch.
to add extension 1050 with password 1234 I did the following:

$ cd /usr/local/freeswitch/conf/directory/default

created 1050.xml having all '1000' strings replaced by '1050' by
typing
$ sed s/1000/1050/g < 1000.xml > 1050.xml


just run reloadxml should be ok no need to rescan the profile

Quote:
rescan and reload the xml by typing into the CLI

freeswitch@internal> sofia profile internal rescan reloadxml

However, when I tried to login with these credentials I got the
following in the fs_cli:

2009-08-12 06:35:01 [DEBUG] sofia_reg.c:1469 sofia_reg_parse_auth()
SIP username 1050 does not match auth username
2009-08-12 06:35:01 [DEBUG] sofia_reg.c:869
sofia_reg_handle_register() Send challenge for
[1050@server_address.net]

below are the content of 1000 and 1050 xml files

please advise.


$ cat 1050.xml
<include>
<user id="1050" mailbox="1050">
<params>
<param name="password" value="1234"/>
<param name="vm-password" value="1050"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1050"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1050"/>
<variable name="effective_caller_id_number" value="1050"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

$ cat 1000.xml
<include>
<user id="1000" mailbox="1000">
<params>
<param name="password" value="1234"/>
<param name="vm-password" value="1000"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<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"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

_______________________________________________
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


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services