[Freeswitch-users] Load Balance Trunks

Abid Saleem abid_freeswitch at live.com
Fri Jul 1 19:54:04 MSD 2011


Dear David,
Thanks for answer. This is the only provider choice I have. Also I am not good at programming, so can you help me writing such a script that can do this please. 


From: david.ponzone at ipeva.fr
Date: Wed, 29 Jun 2011 17:41:41 +0200
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Load Balance Trunks



1- I have 100 Trunks from my SIP Provider. My provider restricts me to send only 120 minutes call duration per Trunk per each day. This means around 30 calls per Trunk per day with an ACD of 3 minutes. Please help me how to configure this if it is possible?
Can't you find another provider with no such ... limitations ?
You can do what Avi told you, or you can write your own piece of LUA script which would check in a DB which trunk to use, and then would bridge using this trunk, and will update the DB after hangup to add the call duration of the last call to the total amount for trunk X and current day (that would have to be done with the hangup_hook thingy, probably).
2- I need to send P-Preferred-Identity<sip:xxxxxxxxx at domain.com> in SIP header for each Trunk while dialing out to provider. Please help how to configure this.
bridge {sip_cid_type=none,sip_h_P-Preferred-Identity=XXXXXXX}sofia/.....  -> I am sure of this oneorbridge {sip_cid_type=pid}sofia/.... -> never tested
Thanks in Advance.
Rgrds-----------Abid SaleemTechnical Manager NGNTerminus Technologies_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE

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


_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE

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/20110701/8347427a/attachment.html 


More information about the FreeSWITCH-users mailing list