<div>Hi</div>
<div>&nbsp;</div>
<div>thanks for the reply</div>
<div>&nbsp;</div>
<div>its working with Provider, iam able to make calls out</div>
<div>if i use directly X-lite with provider</div>
<div>when iam using with openser iam getting the problem</div>
<div>&nbsp;</div>
<div>is there any other thing i need to do other than this settings</div>
<div>&nbsp;</div>
<div>any suggestions</div>
<div>Ram<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/27/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>In my case it was all together as one word, hence:</div>
<div>&nbsp;</div>
<div><font color="#550055">uac_replace_from(&quot;</font><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:usernamepassword@foobar.com" target="_blank">sip:<strong><font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">
 username</font><font color="#33cc00">password</font></strong>@foobar.com</a><font color="#550055">&quot;);</font><br>&nbsp;</div>
<div>It will be whatever your provider asks you to send.<br>&nbsp;</div>
<div>Try <font color="#550055">uac_replace_from(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:1234554321@provider.com" target="_blank">sip:1234554321@provider.com</a>&quot;);</font></div>
<div>&nbsp;</div>
<div>403 is Forbidden, which basically means&nbsp;the server did not recognise the account number and password combination. Xlite gets&nbsp;a 408 Timeout back as the call fails to connect, again because of the aforementioned. Just in case, also check to make sure you have enough calling credit on the provider account. 
</div>
<div>&nbsp;</div>
<div>You can do a quick test by just configuring XLite to connect directly to the Provider and see what it is sending out in the INVITE. Then simply put that in your <font color="#550055">uac_replace_from statement.</font>
 </div>
<div><span class="e" id="q_10dee89ad1b3815e_1">
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 9/27/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>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p>Hi<br>&nbsp;<br>is this valid command ?<span><br>&nbsp;<br>uac_replace_from(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip:username+password@foobar.com" target="_blank">sip:username+password@foobar.com 
</a>&quot;);</span></p>
<p>&nbsp;<br>in my case, i given&nbsp; (&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip:12345:54321@provider.com" target="_blank">sip:12345:54321@provider.com</a>&quot;);<br>&nbsp;<br>1234 username <br>
54321 password</p>
<div>I get message when i debug</div>
<div><br>SIP/2.0 403 Payment required. ( on Ser)</div>
<div>&nbsp;</div>
<div>X-lite client i get 408<br><span>&nbsp;<br>Ram<br>&nbsp;</span></div>
<div><span><br><br>
<div><span class="gmail_quote">On 9/26/06, <b class="gmail_sendername">Max Gregorian</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gregorian442@googlemail.com" target="_blank">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>We have a similar setup where in our case we send username:password together, as in:</div>
<div><br>
<div>uac_replace_from(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:username+password@foobar.com" target="_blank">sip:username+password@foobar.com</a>&quot;);</div></div>
<div>&nbsp;</div>
<div>The whole idea in using the prepaid account setup, as I described to you, was to have the prepaid account do the authentication for you, such that the local accounts created from the end user point are not forwarded onto your provider as your provider will not know what to do with them, and so they will not authenticate.. 
</div>
<div>&nbsp;</div>
<div>What I would suggest is to find out how (in what form) the provider expects to receive from you (i.e. Openser2 ---&gt;Provider).&nbsp;If you are already using their service you could probably run a trace on a call or use a tool such as ngrep to see what the packet is doing. You can then reproduce this functionality however you choose. 
<br>&nbsp;</div>
<div>The scenario I was reffering to was:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>user1 ---</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</div>
<div>user2&nbsp;---&nbsp;---&gt;&nbsp;Openser1 (local accts) ---&gt; replace 'From' with Provider details (username, etc) ---&gt; Provider ---&gt; PSTN</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</div>
<div>user3 ---</div>
<div>&nbsp;</div>
<div>Since the account sent to the Provider is a valid account any way, yo then should not have to worry about authentication.</div>
<div>&nbsp;</div>
<div>There may be a possibility that the provider is doing a SIP Authentication challenge (e.g. sending a 407 or similar back), in which case you may need to then send a valid response back. Again you really will have to confirm this. You will then at least know how to proceed from there. 
</div>
<div><span>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 9/26/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>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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><span>
<div>&nbsp;</div>
<div>Ram</div></span>
<div><span>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/23/06, <b class="gmail_sendername">Max Gregorian</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gregorian442@googlemail.com" target="_blank">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><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>
<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></span></div></blockquote></div><br></span></div></blockquote></div><br></span></div></blockquote></div><br></span></div></blockquote></div><br>