[Freeswitch-users] Load Balance Trunks

David Ponzone david.ponzone at ipeva.fr
Wed Jun 29 19:41:41 MSD 2011

> 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 one
bridge {sip_cid_type=pid}sofia/.... -> never tested

> Thanks in Advance.
> Rgrds
> -----------
> Abid Saleem
> Technical Manager NGN
> Terminus 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110629/f09682f0/attachment.html 

More information about the FreeSWITCH-users mailing list