<div dir="ltr"><div>Hi Abid.. see inline.</div><div><br></div>On Wed, Jun 29, 2011 at 4:59 PM, Abid Saleem &lt;<a href="mailto:abid_freeswitch@live.com">abid_freeswitch@live.com</a>&gt; wrote:<br>&gt; Hi All,<br>&gt; Please help me the following 2 issues.<br>

&gt;<br>&gt; 1- I have 100 Trunks from my SIP Provider. My provider restricts me to send<br>&gt; only 120 minutes call duration per Trunk per each day. This means around 30<br>&gt; calls per Trunk per day with an ACD of 3 minutes. Please help me how to<br>

&gt; configure this if it is possible?<br><br>You can use: <a href="http://wiki.freeswitch.org/wiki/Mod_distributor">http://wiki.freeswitch.org/wiki/Mod_distributor</a><br><br>OR, a more precise way.. scrape your CDRs and then query them before making calls.<br>

Or, have a lua script that picks a random one from the list that a cron updates every 30 minutes to use slightly less resources.<br><br>&gt; 2- I need to send P-Preferred-Identity&lt;<a href="mailto:sip%3Axxxxxxxxx@domain.com">sip:xxxxxxxxx@domain.com</a>&gt; in SIP<br>

&gt; header for each Trunk while dialing out to provider. Please help how to<br>&gt; configure this.<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://wiki.freeswitch.org/wiki/Variable_sip_cid_type">http://wiki.freeswitch.org/wiki/Variable_sip_cid_type</a> has some info on using PID.</div>

<div>You can use &quot;sofia profile external siptrace on&quot; to see your SIP messages from FS to debug.</div><div><br></div><div>-Avi</div></div>