Astpp routing script

1,199 views
Skip to first unread message

Bingy92

unread,
Jul 2, 2012, 7:51:44 PM7/2/12
to as...@googlegroups.com
Hi Guys,

I setup my ASTPP and Freeswitch. Everything installed ok, but when I try to route it breaks. I have this setup in my public,xml file:

    <extension name="public_extensions">
        <condition field="destination_number" expression="^(\d+)$">
       <action application="perl" data="/var/www/cgi-bin/astpp-fs-xml.cgi" />
     <!-- <action application="transfer" data="$1 XML default"/> -->
      </condition>
    </extension>

It runs then get to this point and Freeswitch crashes:

[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/site_perl/5.8.8/ASTPP.pm line 294.
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Use of uninitialized value in string ne at /usr/lib/perl5/site_perl/5.8.8/ASTPP.pm line 294.
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/site_perl/5.8.8/ASTPP.pm line 294.
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] , 1XXXXXXXXXX
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] CALLSTATUS 2
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] CANNOT RETRIEVE CARD
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Returning nothing so dialplan can continue.
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Content-Type: text/plain; charset=ISO-8859-1\r
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] \r
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] <?xml version="1.0" encoding="UTF-8" standalone="no"?>
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] <document type="freeswitch/xml">
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] <section name="result">
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] <result status="not found" /></section>
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] </document>
[Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]

That is my /var/log/http/error_log.

Any ideas please? I have the latest ASTPP codes.

Regards,

Phillip


Samir Doshi

unread,
Jul 3, 2012, 2:11:34 AM7/3/12
to as...@googlegroups.com
Hi,

ASTPP is using mod_xml_curl module for prepaid and postpaid calls and
to register extensions. And perl module for calling card feature.

Please add <param name="gateway-url" value="http://<YOUR
IP>/cgi-bin/astpp-fs-xml.cgi" bindings="dialplan|directory"/> in
xml_curl.conf.xml file and load that module in fs.

You can also confirm "ASTPP Freeswitch Configuration" section from
installation guide.
http://wiki.astpp.org/index.php?title=Installation_Guide

---
Thanks,
Samir Doshi

On 2012-07-03 01:51, Bingy92 wrote:
> Hi Guys,
>
> I setup my ASTPP and Freeswitch. Everything installed ok, but when I
> try to route it breaks. I have this setup in my public,xml file:
>
> <extension name="public_extensions">
> <condition field="destination_number" expression="^(d+)$">
> <action application="perl" data="/var/www/cgi-bin/astpp-fs-xml.cgi"
> />
> <!-- <action application="transfer" data="$1 XML default"/> -->
> </condition>
> </extension>
>
> It runs then get to this point and Freeswitch crashes:
>
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Use of
> uninitialized value in numeric gt (>) at
> /usr/lib/perl5/site_perl/5.8.8/ASTPP.pm line 294.
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Use of
> uninitialized value in string ne at
> /usr/lib/perl5/site_perl/5.8.8/ASTPP.pm line 294.
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Use of
> uninitialized value in numeric gt (>) at
> /usr/lib/perl5/site_perl/5.8.8/ASTPP.pm line 294.
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] ,
> 1XXXXXXXXXX
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] CALLSTATUS
> 2
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] CANNOT
> RETRIEVE CARD
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] Returning
> nothing so dialplan can continue.
> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]
> Content-Type: text/plain; charset=ISO-8859-1r

Bingy92

unread,
Jul 3, 2012, 10:27:34 AM7/3/12
to as...@googlegroups.com, sa...@astpp.org
Hi Samir,

Thanks much for your reply. I did all that you mentioned and I even see it loading at startup. However, when I try to make a call it still is going to the /freeswitch/conf/dialplan/ directory to look for routing info.

Any thoughts?

Regards,

Phillip

Samir Doshi

unread,
Jul 3, 2012, 2:11:07 PM7/3/12
to as...@googlegroups.com
Hi,

Okay Please confirm below things.

1. Check xml_curl.conf.xml file is configured properly or not.
2. Check mod_xml_curl module is loaded or not in fs. If not loaded
please load that in fs

This are the only things which we need to need configure properly and
then it will starts working.

If you are still facing an issue then please check
/var/log/httpd/error_log while making calls and send it to me.

---
Thanks,
Samir Doshi

On 2012-07-03 16:27, Bingy92 wrote:
> Hi Samir,
>
> Thanks much for your reply. I did all that you mentioned and I even
> see it loading at startup. However, when I try to make a call it
> still
> is going to the /freeswitch/conf/dialplan/ directory to look for
> routing info.
>
> Any thoughts?
>
> Regards,
>
> Phillip
>
> On Tuesday, July 3, 2012 2:11:34 AM UTC-4, Samir Doshi wrote:
>
>> Hi,
>>
>> ASTPP is using mod_xml_curl module for prepaid and postpaid calls
>> and
>> to register extensions. And perl module for calling card feature.
>>
>> Please add <param name="gateway-url" value="http://<YOUR
>> IP>/cgi-bin/astpp-fs-xml.cgi" bindings="dialplan|directory"/> in
>> xml_curl.conf.xml file and load that module in fs.
>>
>> You can also confirm "ASTPP Freeswitch Configuration" section from
>> installation guide.
>> http://wiki.astpp.org/index.php?title=Installation_Guide [1]
> Links:
> ------
> [1] http://wiki.astpp.org/index.php?title=Installation_Guide

Bingy92

unread,
Jul 3, 2012, 9:10:34 PM7/3/12
to as...@googlegroups.com
Hi Samir,

Everything is checked properly as you asked and xml_curl is loaded. the thing is when the call comes in it looks in /usr/local/freeswitch/conf/dialplan/public.xml for the routing info and not in xml_curl.

I guess that is what I need to fix to get it going but not sure how....

Regards,

Phillip

Phillip Haynes

unread,
Jul 3, 2012, 9:31:49 PM7/3/12
to as...@googlegroups.com
hi Samir,

Just a quick followup:

I tested teh registration and it works. I can register fine. when I try an outbound call on the CLi i am seeing?

2012-07-03 18:31:07.168762 [NOTICE] switch_channel.c:926 New Channel sofia/internal/987654...@83.231.149.110 [ed5c44a6-c577-11e1-b7ac-0fb0c3948bdb]
2012-07-03 18:31:07.168762 [INFO] mod_dialplan_xml.c:485 Processing 9876543210275 <9876543210275>->13237309140 in context default
2012-07-03 18:31:07.568760 [WARNING] mod_dialplan_xml.c:515 Context default not found
2012-07-03 18:31:07.568760 [INFO] switch_core_state_machine.c:179 No Route, Aborting

regards,

Phillip
--
Phillip Haynes

Phillip Haynes

unread,
Jul 4, 2012, 12:22:58 AM7/4/12
to as...@googlegroups.com
Hi Samir,

i am making some progress here. I am seeing the routing now doing the routing looking etc, but keep getting a blank context in my xml:

[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] Content-Type: text/plain; charset=ISO-8859-1\r
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] \r
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <?xml version="1.0" encoding="UTF-8" standalone="no"?>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <document type="freeswitch/xml">
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <section name="dialplan" description="ASTPP Dynamic Routing">
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <context name="">
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <extension name="13237309140">
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <condition field="destination_number" expression="13237309140">
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="effective_destination_number=13237309140"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="sched_hangup" data="+86400"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="accountcode=98765432"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="hangup_after_bridge=true"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="continue_on_fail=true"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="calltype=STANDARD"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="outbound_route=1"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="trunk=xxxxxx"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="set" data="provider=12345678"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] <action application="bridge" data="sofia/gateway/xxxxxx/13237309140"/>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] </condition>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] </extension>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] </context>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] </section>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110] </document>
[Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]

As a result I see in the CLI:

2012-07-03 21:19:37.157769 [INFO] mod_dialplan_xml.c:485 Processing 9876543210275 <9876543210275>->13237309140 in context public
2012-07-03 21:19:37.557770 [WARNING] mod_dialplan_xml.c:515 Context public not found
2012-07-03 21:19:37.557770 [INFO] switch_core_state_machine.c:179 No Route, Aborting

Any thoughts?

Thanks,

Phillip
--
Phillip Haynes

Samir Doshi

unread,
Jul 4, 2012, 1:27:37 AM7/4/12
to as...@googlegroups.com
I see context field is blank in dialplan. So,Can you please send me
full call log from /var/log/httpd/error_log?

---
Thanks,
Samir Doshi

On 2012-07-04 06:22, Phillip Haynes wrote:
> Hi Samir,
>
> i am making some progress here. I am seeing the routing now doing the
> routing looking etc, but keep getting a blank context in my xml:
>
> [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
> Content-Type: text/plain; charset=ISO-8859-1r
>> sofia/internal/987654...@83.231.149.110 [1]
>> [ed5c44a6-c577-11e1-b7ac-0fb0c3948bdb]
>> 2012-07-03 18:31:07.168762 [INFO] mod_dialplan_xml.c:485 Processing
>> 9876543210275 <9876543210275>->13237309140 [2] in context default
>> 2012-07-03 18:31:07.568760 [WARNING] mod_dialplan_xml.c:515 Context
>> default not found
>> 2012-07-03 18:31:07.568760 [INFO] switch_core_state_machine.c:179
>> No Route, Aborting
>>
>> regards,
>>
>> Phillip
>>
>> On Tue, Jul 3, 2012 at 9:10 PM, Bingy92 <hayn...@gmail.com [3]>
>> wrote:
>>
>>> Hi Samir,
>>>
>>> Everything is checked properly as you asked and xml_curl is
>>> loaded. the thing is when the call comes in it looks in
>>> /usr/local/freeswitch/conf/dialplan/public.xml for the routing
>>> info and not in xml_curl.
>>>
>>> I guess that is what I need to fix to get it going but not sure
>>> how....
>>>
>>> Regards,
>>>
>>> Phillip
>>>
>>> On Monday, July 2, 2012 7:51:44 PM UTC-4, Bingy92 wrote:
>>>
>>>> Hi Guys,
>>>>
>>>> I setup my ASTPP and Freeswitch. Everything installed ok, but
>>>> when I try to route it breaks. I have this setup in my
>>>> public,xml file:
>>>>
>>>>     <extension name="public_extensions">
>>>>         <condition field="destination_number"
>>>> expression="^(d+)$">
>>>> Content-Type: text/plain; charset=ISO-8859-1r
>>>> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110] r
>>>> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]
>>>> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>>>> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]
>>>> <document type="freeswitch/xml">
>>>> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]
>>>> <section name="result">
>>>> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]
>>>> <result status="not found" /></section>
>>>> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]
>>>> </document>
>>>> [Sun Jul 01 23:22:57 2012] [error] [client 83.231.149.110]
>>>>
>>>> That is my /var/log/http/error_log.
>>>>
>>>> Any ideas please? I have the latest ASTPP codes.
>>>>
>>>> Regards,
>>>>
>>>> Phillip
>>
>> --
>> Phillip Haynes
>
> --
> Phillip Haynes
>
>
> Links:
> ------
> [1] mailto:987654...@83.231.149.110
> [2] http://www.astpp.org/tel:13237309140
> [3] mailto:hayn...@gmail.com
> [4] mailto:hayn...@gmail.com

Phillip Haynes

unread,
Jul 4, 2012, 11:17:47 AM7/4/12
to as...@googlegroups.com
Samir, Please find log attached attached.....

sofia/internal/9876543210275@83.231.149.110 [1]




--
Phillip Haynes
astpp-log.txt

Samir Doshi

unread,
Jul 4, 2012, 2:11:27 PM7/4/12
to as...@googlegroups.com
Okay I see we are getting context in call but its not setting up in
dialplan.

If possible can you please send me your server root ssh info on my
email address? I would like to check the issue in detail.

---
Thanks,
Samir Doshi

On 2012-07-04 17:17, Phillip Haynes wrote:
> Samir, Please find log attached attached.....
>
> On Wed, Jul 4, 2012 at 1:27 AM, Samir Doshi <sa...@astpp.org [14]>
>>> name="13237309140 [4]">
>>> [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>> <condition
>>> field="destination_number" expression="13237309140 [5]">
>>>  [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>> <action
>>> application="set" data="effective_destination_number=13237309140
>>> [6]"/>
>>> [7]"/>
>>>  [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>> </condition>
>>> [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>> </extension>
>>> [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>> </context>
>>>  [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>> </section>
>>> [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>> </document>
>>> [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>>
>>> As a result I see in the CLI:
>>>
>>> 2012-07-03 21:19:37.157769 [INFO] mod_dialplan_xml.c:485
>>> Processing
>>> 9876543210275 <9876543210275>->13237309140 [8] in context public
>>> 2012-07-03 21:19:37.557770 [WARNING] mod_dialplan_xml.c:515
>>> Context
>>> public not found
>>>  2012-07-03 21:19:37.557770 [INFO]
>>> switch_core_state_machine.c:179 No
>>> Route, Aborting
>>>
>>> Any thoughts?
>>>
>>> Thanks,
>>>
>>> Phillip
>>>
>>> On Tue, Jul 3, 2012 at 9:31 PM, Phillip Haynes
>>> <hayn...@gmail.com [9]
>>> [4]> wrote:
>>>
>>>> hi Samir,
>>>>
>>>> Just a quick followup:
>>>>
>>>> I tested teh registration and it works. I can register fine.
>>>> when I
>>>> try an outbound call on the CLi i am seeing?
>>>>
>>>> 2012-07-03 18:31:07.168762 [NOTICE] switch_channel.c:926 New
>>>> Channel
>>>> sofia/internal/987654...@83.231.149.110 [1] [1]
>>>>
>>>> [ed5c44a6-c577-11e1-b7ac-0fb0c3948bdb]
>>>> 2012-07-03 18:31:07.168762 [INFO] mod_dialplan_xml.c:485
>>>> Processing
>>>> 9876543210275 <9876543210275>->13237309140 [2] [2] in context
>>> [1] mailto:987654...@83.231.149.110 [10]
>>> [2] http://www.astpp.org/tel:13237309140 [11]
>>> [3] mailto:hayn...@gmail.com [12]
>>> [4] mailto:hayn...@gmail.com [13]
>
> --
> Phillip Haynes
>
>
> Links:
> ------
> [1] mailto:987654...@83.231.149.110
> [2] http://www.astpp.org/tel:13237309140
> [3] mailto:hayn...@gmail.com
> [4] http://www.astpp.org/tel:13237309140
> [5] http://www.astpp.org/tel:13237309140
> [6] http://www.astpp.org/tel:13237309140
> [7] http://www.astpp.org/tel:13237309140
> [8] http://www.astpp.org/tel:13237309140
> [9] mailto:hayn...@gmail.com
> [10] mailto:987654...@83.231.149.110
> [11] http://www.astpp.org/tel:13237309140
> [12] mailto:hayn...@gmail.com
> [13] mailto:hayn...@gmail.com
> [14] mailto:sa...@astpp.org

Phillip Haynes

unread,
Jul 5, 2012, 1:23:27 AM7/5/12
to as...@googlegroups.com
Hi Samir,

I did a reinstall on a clean server and its working now, thanks!

Just one question.. How do I get the call to authenticate via IP instead of username/password sip account?

Regards,

Phillip

sofia/internal/9876543210275@83.231.149.110 [1] [1]




--
Phillip Haynes

Samir Doshi

unread,
Jul 5, 2012, 7:08:17 AM7/5/12
to as...@googlegroups.com
Hi,

For ip based authentication, you need to configure ips in customer
account.

Steps :
1. Customer list page -> goto view detail page of customer
2. In that page you can Map IP section. Please add ip there. If you
want to do ip and prefix based authentication then add both.

Now when we will get call from configured ip, system will use this
account and make calls.

---
Thanks,
Samir Doshi

On 2012-07-05 07:23, Phillip Haynes wrote:
> Hi Samir,
>
> I did a reinstall on a clean server and its working now, thanks!
>
> Just one question.. How do I get the call to authenticate via IP
> instead of username/password sip account?
>
> Regards,
>
> Phillip
>
> On Wed, Jul 4, 2012 at 2:11 PM, Samir Doshi <sa...@astpp.org [29]>
>>>>> name="13237309140 [4] [4]">
>>>>>
>>>>> [Tue Jul 03 21:19:37 2012] [error] [client 83.231.149.110]
>>>>> <condition
>>>>> field="destination_number" expression="13237309140 [5] [5]">
>>>>> 9876543210275 <9876543210275>->13237309140 [8] [8] in context
>>>>> public
>>>>>
>>>>> 2012-07-03 21:19:37.557770 [WARNING] mod_dialplan_xml.c:515
>>>>> Context
>>>>> public not found
>>>>>  2012-07-03 21:19:37.557770 [INFO]
>>>>> switch_core_state_machine.c:179 No
>>>>> Route, Aborting
>>>>>
>>>>> Any thoughts?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Phillip
>>>>>
>>>>> On Tue, Jul 3, 2012 at 9:31 PM, Phillip Haynes
>>>>> <hayn...@gmail.com [9] [9]
>>>>> [4]> wrote:
>>>>>
>>>>>> hi Samir,
>>>>>>
>>>>>> Just a quick followup:
>>>>>>
>>>>>> I tested teh registration and it works. I can register
>>>>>> fine.
>>>>>> when I
>>>>>> try an outbound call on the CLi i am seeing?
>>>>>>
>>>>>> 2012-07-03 18:31:07.168762 [NOTICE] switch_channel.c:926
>>>>>> New
>>>>>> Channel
>>>>>> sofia/internal/987654...@83.231.149.110 [1] [1] [1]
>>>>>>
>>>>>> [ed5c44a6-c577-11e1-b7ac-0fb0c3948bdb]
>>>>>> 2012-07-03 18:31:07.168762 [INFO] mod_dialplan_xml.c:485
>>>>>> Processing
>>>>>> 9876543210275 <9876543210275>->13237309140 [2] [2] [2] in
>>>>> [1] mailto:987654...@83.231.149.110 [10] [10]
>>>>> [2] http://www.astpp.org/tel:13237309140 [11] [11]
>>>>> [3] mailto:hayn...@gmail.com [12] [12]
>>>>> [4] mailto:hayn...@gmail.com [13] [13]
>>>
>>> --
>>> Phillip Haynes
>>>
>>> Links:
>>> ------
>>> [1] mailto:987654...@83.231.149.110 [15]
>>> [2] http://www.astpp.org/tel:13237309140 [16]
>>> [3] mailto:hayn...@gmail.com [17]
>>> [4] http://www.astpp.org/tel:13237309140 [18]
>>> [5] http://www.astpp.org/tel:13237309140 [19]
>>> [6] http://www.astpp.org/tel:13237309140 [20]
>>> [7] http://www.astpp.org/tel:13237309140 [21]
>>> [8] http://www.astpp.org/tel:13237309140 [22]
>>> [9] mailto:hayn...@gmail.com [23]
>>> [10] mailto:987654...@83.231.149.110 [24]
>>> [11] http://www.astpp.org/tel:13237309140 [25]
>>> [12] mailto:hayn...@gmail.com [26]
>>> [13] mailto:hayn...@gmail.com [27]
>>> [14] mailto:sa...@astpp.org [28]
> [15] mailto:987654...@83.231.149.110
> [16] http://www.astpp.org/tel:13237309140
> [17] mailto:hayn...@gmail.com
> [18] http://www.astpp.org/tel:13237309140
> [19] http://www.astpp.org/tel:13237309140
> [20] http://www.astpp.org/tel:13237309140
> [21] http://www.astpp.org/tel:13237309140
> [22] http://www.astpp.org/tel:13237309140
> [23] mailto:hayn...@gmail.com
> [24] mailto:987654...@83.231.149.110
> [25] http://www.astpp.org/tel:13237309140
> [26] mailto:hayn...@gmail.com
> [27] mailto:hayn...@gmail.com
> [28] mailto:sa...@astpp.org
> [29] mailto:sa...@astpp.org

Message has been deleted

Anis Mg

unread,
Aug 19, 2012, 4:52:00 PM8/19/12
to as...@googlegroups.com, sa...@astpp.org
mr samir a question about dialplan
after mapping a customer IP in view details to a custom dialplan context,
how you get your ip based auth users to the right dialplan context ,
sip sofia by default recieve non authentifcated users in the public context.

Samir Doshi

unread,
Aug 20, 2012, 12:19:03 AM8/20/12
to as...@googlegroups.com
Hi,

We don't need to define dialplan context for the freeswitch. It will
execute by default default context.

You know ASTPP is support freeswitch and asterisk both. So, this
context define feature is for the asterisk. However we have refactor GUI
of ASTPP and currently new GUI is supporting only Freeswitch features.
Later on we will add up features for asterisk in GUI.
so, you can ignore context field while mapping ip to customer.

---
Thanks,
Samir Doshi
>>>>>>> [2] http://www.astpp.org/tel:13237309140 [1] [11] [11]
>>>>>>> [3] mailto:hayn...@gmail.com [12] [12]
>>>>>>> [4] mailto:hayn...@gmail.com [13] [13]
>>>>>
>>>>> --
>>>>> Phillip Haynes
>>>>>
>>>>> Links:
>>>>> ------
>>>>> [1] mailto:987654...@83.231.149.110 [15]
>>>>> [2] http://www.astpp.org/tel:13237309140 [2] [16]
>>>>> [3] mailto:hayn...@gmail.com [17]
>>>>> [4] http://www.astpp.org/tel:13237309140 [3] [18]
>>>>> [5] http://www.astpp.org/tel:13237309140 [4] [19]
>>>>> [6] http://www.astpp.org/tel:13237309140 [5] [20]
>>>>> [7] http://www.astpp.org/tel:13237309140 [6] [21]
>>>>> [8] http://www.astpp.org/tel:13237309140 [7] [22]
>>>>> [9] mailto:hayn...@gmail.com [23]
>>>>> [10] mailto:987654...@83.231.149.110 [24]
>>>>> [11] http://www.astpp.org/tel:13237309140 [8] [25]
>>>>> [12] mailto:hayn...@gmail.com [26]
>>>>> [13] mailto:hayn...@gmail.com [27]
>>>>> [14] mailto:sa...@astpp.org [28]
>>>
>>> --
>>> Phillip Haynes
>>>
>>>
>>> Links:
>>> ------
>>> [1] mailto:987654...@83.231.149.110
>>> [2] http://www.astpp.org/tel:13237309140 [9]
>>> [3] mailto:hayn...@gmail.com
>>> [4] http://www.astpp.org/tel:13237309140 [10]
>>> [5] http://www.astpp.org/tel:13237309140 [11]
>>> [6] http://www.astpp.org/tel:13237309140 [12]
>>> [7] http://www.astpp.org/tel:13237309140 [13]
>>> [8] http://www.astpp.org/tel:13237309140 [14]
>>> [9] mailto:hayn...@gmail.com
>>> [10] mailto:987654...@83.231.149.110
>>> [11] http://www.astpp.org/tel:13237309140 [15]
>>> [12] mailto:hayn...@gmail.com
>>> [13] mailto:hayn...@gmail.com
>>> [14] mailto:sa...@astpp.org
>>> [15] mailto:987654...@83.231.149.110
>>> [16] http://www.astpp.org/tel:13237309140 [16]
>>> [17] mailto:hayn...@gmail.com
>>> [18] http://www.astpp.org/tel:13237309140 [17]
>>> [19] http://www.astpp.org/tel:13237309140 [18]
>>> [20] http://www.astpp.org/tel:13237309140 [19]
>>> [21] http://www.astpp.org/tel:13237309140 [20]
>>> [22] http://www.astpp.org/tel:13237309140 [21]
>>> [23] mailto:hayn...@gmail.com
>>> [24] mailto:987654...@83.231.149.110
>>> [25] http://www.astpp.org/tel:13237309140 [22]
>>> [26] mailto:hayn...@gmail.com
>>> [27] mailto:hayn...@gmail.com
>>> [28] mailto:sa...@astpp.org
>>> [29] mailto:sa...@astpp.org
>
>
> Links:
> ------
> [1] http://www.astpp.org/tel:13237309140
> [2] http://www.astpp.org/tel:13237309140
> [3] http://www.astpp.org/tel:13237309140
> [9] http://www.astpp.org/tel:13237309140
> [10] http://www.astpp.org/tel:13237309140
> [11] http://www.astpp.org/tel:13237309140
> [12] http://www.astpp.org/tel:13237309140
> [13] http://www.astpp.org/tel:13237309140
> [14] http://www.astpp.org/tel:13237309140
> [15] http://www.astpp.org/tel:13237309140
> [16] http://www.astpp.org/tel:13237309140
> [17] http://www.astpp.org/tel:13237309140

Anis Mg

unread,
Aug 20, 2012, 8:26:52 PM8/20/12
to as...@googlegroups.com, sa...@astpp.org
mr Samir
if all the calls must go through the default context
what i can do to set different dialplans per ip or per user
for example if i want to allow mobile calls for one user and deny them for other,
or allow only internal calls for a restricted user .

Anis Mg

unread,
Aug 20, 2012, 9:06:12 PM8/20/12
to as...@googlegroups.com, sa...@astpp.org
mr samir
after reflection i conclude that for filtering per ip user in the default context
i must put the FS netaddress matching conditions for example:
<condition field="network_addr" expression="^192\.168\.1\.1$"/>
and continue = true for extensions,
but i think that for a system with large users like a wholesale voip provider
it will impact performance of the server because FS dialplan will run on over
for exmaple 50 ip declared users .
and there is an obligation to develop some web gui to add,delete these IPs addreses
in the xml file.

datat...@gmail.com

unread,
Feb 25, 2013, 1:48:58 AM2/25/13
to as...@googlegroups.com

Hello Samir,

Were you able to fix the issue that gets FreeSWITCH to crash when routing the call?
No idea what your application is doing

datat...@gmail.com

unread,
Mar 7, 2013, 12:16:46 PM3/7/13
to as...@googlegroups.com
Never mind Samir got it working
Reply all
Reply to author
Forward
0 new messages