[asterisk-users] Outbound SIP authentication with dynamic credentials
Yossi Ben Hagai
yossibh at gmail.com
Thu Aug 16 13:56:48 CDT 2007
Hi All,
I'm working on the following scenario:
VoIP Gateway --> Asterisk server --> Proxy server --> PSTN
| |
XMLRPC <----> Radius
In this call flow a prepaid caller places a call over the VoIP gateway to
the Asterisk server acting as an IVR,
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.
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"
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.
Now the asterisk can act as a client and authenticate itself, but this
required the credentials to be hard coded on sip.conf.
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.
Is there a way to specify the auth credentials on the Dial() command?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070816/7494de82/attachment.htm
More information about the asterisk-users
mailing list