<div>Hi All,<br> <br>I'm working on the following scenario:<br>VoIP Gateway --> Asterisk server --> Proxy server --> PSTN<br> | |<br> XMLRPC <----> Radius
</div>
<div>In this call flow a prepaid caller places a call over the VoIP gateway to the Asterisk server acting as an IVR,</div>
<div>the server collects the user ID, PIN, and B-number and authenticate the credentials using an XML-RPC interface and plays the balance to the caller. so far so good.</div>
<div>the next step is to send an Invite message for the B-number over to the proxy server. the issue is that the proxy server does not "trust"</div>
<div>the asterisk server and the actual call duration limit and accounting is handled by the proxy server which requires the asterisk server to proxy-auth itself sending the user ID and PIN details as the MD5 auth credentials.
</div>
<div> </div>
<div>Now the asterisk can act as a client and authenticate itself, but this required the credentials to be hard coded on sip.conf.</div>
<div>currently my last resort would be to put the sip.conf on MySQL RT and create peers dynamically for each call, but it doesn't seem like an elegant solution.</div>
<div>Is there a way to specify the auth credentials on the Dial() command?</div>
<div> </div>
<div>Thanks.</div>