[Freeswitch-users] Account ACL

FERNANDO VILLARROEL fvillarroel at yahoo.com
Mon Apr 11 02:27:46 MSD 2011


Dear Pablo.

Thank you for you help.

My problem is setup accountcode for outbound gateway (sip_profiles/external ). I will try and inform to you my tests results.

For inbound gateway the acoountcode is setup fine the  like this:

       <action application="set" data="accountcode=foo"/>
       <action application="bridge" data="sofia/gateway/ms6/$1$2"/>

I need setup CDR accountcode for my sip_profiles/external or in this example for gateway named ms6.

<include>
    <gateway name="ms6" cidr="XXX.xx.XXX.170/32">
      <param name="username" value="foo"/>
      <param name="password" value="foo at fool"/>
      <param name="realm" value="XXX.XX.XXX.170/32"/>
      <param name="proxy" value="XXX.XX.XXX.170/32"/>
      <param name="register" value="true"/>
      <param name="context" value="public"/>
    </gateway>
</include>

Regards.


Regards
--- On Sun, 4/10/11, Pablo Hernan Saro <pablosaro at gmail.com> wrote:

From: Pablo Hernan Saro <pablosaro at gmail.com>
Subject: Re: [Freeswitch-users] Account ACL
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Date: Sunday, April 10, 2011, 2:45 PM

Hi Fernando, using the dialplan I've suggested you will have the account code set on cdr when one of the conditions match (that is when incoming calls arrive to your FS box from one of the IP addresses in the conditions). I'm not sure if it can be rewritten by outbound gateway definition (is that your problem?).

Try that and check your cdr to see which accountcode it's being saved (the one you set at dialplan or the one set in outbound gateway definition).

On Sun, Apr 10, 2011 at 1:17 PM, Peter Olsson <peter.olsson at visionutveckling.se> wrote:


If you use the dial plan example suggested it will set that variable on incoming calls from your gateways. If the gateway IP matched the IP entered it will be executed.





/Peter

________________________________________

Från: freeswitch-users-bounces at lists.freeswitch.org [freeswitch-users-bounces at lists.freeswitch.org] f&#246;r FERNANDO VILLARROEL [fvillarroel at yahoo.com]



Skickat: den 10 april 2011 18:10

Till: freeswitch-users at lists.freeswitch.org

Ämne: Re: [Freeswitch-users] Account ACL



Dear Pablo.



Yes i can use condition but accountcode variable is assigned to only outbound gateway, but i need setup accoundcode for inbound gateway too. I not know how i can do this it's.





       <action application="set" data="accountcode=gateway1"/>



Regards.



--- On Fri, 4/8/11, Pablo Hernan Saro <pablosaro at gmail.com> wrote:



From: Pablo Hernan Saro <pablosaro at gmail.com>

Subject: Re: [Freeswitch-users] Account ACL

To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>

Cc: "FERNANDO VILLARROEL" <fvillarroel at yahoo.com>

Date: Friday, April 8, 2011, 7:07 PM



Probably it's not the best for you, but the first solution that comes to my mind is setting the accountcode at dialplan. If you are working in a high performance scenario with lot of gateways, then probably you have an objection. Anyway, it would be something like this:





<extensio name="Setting account code for gateways">

  <condition field="network_addr" expression="^192\.168\.1\.1$" break="on-true">

    <action application="set" data="accountcode=gateway1"/>

  </condition>

  <condition field="network_addr" expression="^192\.168\.1\.2$" break="on-true">

    <action application="set" data="accountcode=gateway2"/>

  </condition>

</extension>



On Fri, Apr 8, 2011 at 6:05 PM, FERNANDO VILLARROEL <fvillarroel at yahoo.com</mc/compose?to=fvillarroel at yahoo.com>> wrote:



Dear Mathieu.



My user are not in ditrectory.



My users are gateways authenticated with ACL.



How i can use some variable for identifi like accountcode for inbound traffic from this gateways???



Regards



--- On Fri, 4/8/11, Mathieu Rene <mrene_lists at avgs.ca</mc/compose?to=mrene_lists at avgs.ca>> wrote:



From: Mathieu Rene <mrene_lists at avgs.ca</mc/compose?to=mrene_lists at avgs.ca>>

Subject: Re: [Freeswitch-users] Account ACL

To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org</mc/compose?to=freeswitch-users at lists.freeswitch.org>>



Date: Friday, April 8, 2011, 4:00 PM





http://wiki.freeswitch.org/wiki/ACL#Users



You can set variables directly in the user's directory entry.

<http://wiki.freeswitch.org/wiki/ACL#Users>

Mathieu Rene

Avant-Garde Solutions Inc

Office: + 1 (514) 664-1044 x100

Cell: +1 (514) 664-1044 x200

mrene at avgs.ca<http://mc/compose?to=mrene@avgs.ca>









On 2011-04-08, at 2:57 PM, FERNANDO VILLARROEL wrote:



Hi Community.



How i can identifi inbound traffic authorizated on ACL with some variable like Accountcode.



For aoutbound traffic i use:



<action application="set" data="accountcode=foo"/>



My problem is for inbound traffic how i can identify accounts?



Regards.



_______________________________________________

FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=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





-----Inline Attachment Follows-----





_______________________________________________

FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=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 at lists.freeswitch.org</mc/compose?to=FreeSWITCH-users at lists.freeswitch.org>



http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org







!DSPAM:4da1d72c32761895375181!



_______________________________________________

FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org




-----Inline Attachment Follows-----

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110410/46b7cf0e/attachment.html 


More information about the FreeSWITCH-users mailing list