[Freeswitch-dev] building a module

Tihomir Culjaga tculjaga at gmail.com
Thu Oct 29 07:44:30 PDT 2009


just a radius authentification (without)... i sow there is no such a thing
in FS


something like this:

<configuration name="radius_auth.conf" description="Radius authentification
module">
  <settings>
    <param name="server" value="server"/>
    <param name="secret" value="secret"/>
    <!-- timeout in ms -->
    <param name="auth_timeout" value="2000"/>
    <!-- number of packets to resend -->
    <param name="auth_retry" value="2"/>
    <!-- radiusclient src ip address -->
    <param name="src_addr" value="$${local_ip_v4}"/>
  </settings>
  <standard_attributes>
    <!-- username  -->
    <param key="PW_CALLING_STATION_ID" value="${ani}"/>
    <!-- just dummy password - can be whatever -->
    <param key="PW_USER_PASSWORD" value="password"/>
    <!-- calling number -->
    <param key="PW_CALLING_STATION_ID" value="${ani}"/>
    <!-- called number -->
    <param key="PW_CALLED_STATION_ID" value="${destination_number}"/>
  </standard_attributes>
  <vsas>
    <vsa name ="highdeal">
      <param key="dictionary" value="path/to/my_vsa/dictionary"/>
      <param key="number" value="12084"/>
    <!-- call id -->
      <param key="1" value="${uuid}-12345"/>
    <!-- connection id -->
      <param key="2" value="${uuid}-54321"/>
    <!-- call direction -->
      <param key="6" value="${direction}"/>
    <!-- call type -->
      <param key="7" value="0"/>
    <!-- fs ip address -->
      <param key="16" value="$${local_ip_v4}"/>
    <!-- originating caller -->
      <param key="24" value="${orig_pfx}${ani}"/>
    <!-- originating called -->
      <param key="25" value="${orig_pfx}${destination_number}"/>
    <!-- terminating caller -->
      <param key="26" value="${term_pfx}${ani}"/>
    <!-- terminating called -->
      <param key="27" value="${term_pfx}${destination_number}"/>
    <!-- selector tag -->
      <param key="28" value="selector tag"/>
    <!-- trunk tag -->
      <param key="29" value="trunk tag"/>
    </vsa>
    <vsa name="test1">
    </vsa>
    <vsa name="test2">
    </vsa>
  </vsas>
</configuration>



it is not fully working (need some tweaking for dynamic VSA buildup) but it
works :)



On Thu, Oct 29, 2009 at 1:27 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

> sure, what does it do?
>
>
> On Thu, Oct 29, 2009 at 5:00 AM, Tihomir Culjaga <tculjaga at gmail.com>wrote:
>
>> thx, it works :P
>>
>> BTW: interested to host this module on FS SVN?
>>
>> T.
>>
>>
>> On Thu, Oct 29, 2009 at 12:30 AM, Michael Jerris <mike at jerris.com> wrote:
>>
>>> http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=15211
>>>
>>> On Oct 28, 2009, at 7:18 PM, Tihomir Culjaga wrote:
>>>
>>> > can someone help on this.
>>> >
>>> >  I'm trying to build the module on trunk and it looks like i can't
>>> > find 'switch_strlen_zero' function anywhere :P
>>>
>>> Mike
>>>
>>> _______________________________________________
>>> FreeSWITCH-dev mailing list
>>> FreeSWITCH-dev at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>>> http://www.freeswitch.org
>>>
>>
>>
>> _______________________________________________
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:213-799-1400
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091029/458dfec5/attachment.html 


More information about the FreeSWITCH-dev mailing list