<div>Hi</div>
<div>&nbsp;</div>
<div>thanks for the reply</div>
<div>&nbsp;</div>
<div>but when iam replacing the username with provider username, account is rejecting</div>
<div>and authorisation failure coming</div>
<div>&nbsp;</div>
<div>my setup looks like below</div>
<div>&nbsp;</div>
<div>user----Openser1---Openser2------Provider----PSTN</div>
<div>&nbsp;</div>
<div>so when the user register locally openser1,</div>
<div>when&nbsp; he dial to us PSTN</div>
<div>&nbsp;</div>
<div>Openser1 sending calls to openser2, its accepting since i made trusted IP relation</div>
<div>&nbsp;</div>
<div>but i got account from provider example XXXXXX password YYYYYY</div>
<div>&nbsp;</div>
<div>when iam replacing and sedning</div>
<div>&nbsp;</div>
<div>uac_replace_from(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:XXXXXX@foobar.com" target="_blank">sip:XXXXXX@foobar.com</a>&quot;);</div>
<div>&nbsp;</div>
<div>i dont mention password, so how will the user authenticate ?</div>
<div>&nbsp;from the provider</div>
<div>&nbsp;</div>
<div>any help on this case</div>
<div>&nbsp;</div>
<div>Ram</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/23/06, <b class="gmail_sendername">Max Gregorian</b> &lt;<a href="mailto:gregorian442@googlemail.com">gregorian442@googlemail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Not sure how you would do this on Asterisk, but what I am doing with mine (billing by IP)&nbsp;is replacing the from header in the SIP INVITE with a pre-paid account number for the customer. You will need to load the UAC module for this, then do something like 
</div>
<div>&nbsp;</div>
<div>if (src_ip=xxx.xxx.xxx.xxx)</div>
<div>{</div>
<div>&nbsp; uac_replace_from(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip:PREPAIDACCTNO@foobar.com" target="_blank">sip:PREPAIDACCTNO@foobar.com</a>&quot;);</div>
<div>}<br>&nbsp;</div>
<div>This means that any calls made inbound to OpenSER from that IP address will have the account number replaced with the pre-paid account number. How you do billing is then up to you -&nbsp;whether using the Acc module or whether something can be done on Asterisk, or even a third-party application. I have heard Asterisk can send DIDs. You can then do something similar for inbound DIDs from Asterisk. 
</div>
<div>&nbsp;</div>
<div>Just beware this has some rather obvious security issues, so as a start, you can try having the customer add a prefix to their local account numbers which&nbsp;you can then authenticate against. If anyone knows of&nbsp;a better way, please don't hesitate to share. 
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>
<div><span class="e" id="q_10dd7e574b6ebfd7_1"><span class="gmail_quote">On 9/22/06, <b class="gmail_sendername">ram</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:talk2ram@gmail.com" target="_blank">
talk2ram@gmail.com</a>&gt; wrote:</span> </span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span class="e" id="q_10dd7e574b6ebfd7_3">
<div>Hi all</div>
<div>&nbsp;</div>
<div>iam trying to deploy trusted IP and Accounting</div>
<div>so iam bit confused can some one clarify me how can i achive this</div>
<div>&nbsp;</div>
<div>PSTN--OpenerSER(myserver)------------------Customer(Asterisk&nbsp;or ser&nbsp;or any predictive Dialers)---their clients</div>
<div>&nbsp;</div>
<div>1.&nbsp; how can i give access to the customer to call using his IP, and he can creat internal Number of users</div>
<div>2. how can i account to his IP address billing in Acc</div>
<div>3. how can i forward to DID from myserver to his server blindly</div>
<div>4. how can i bill that DID billing also, for incoming.</div>
<div>&nbsp;</div>
<div>any suggestiong will be great</div><span>
<div>&nbsp;</div>
<div>Ram</div></span><br></span></div>_______________________________________________<br>Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@openser.org" target="_blank">Users@openser.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://openser.org/cgi-bin/mailman/listinfo/users</a><br><br><br></blockquote></div>
<br></blockquote></div><br>