INVITE with AUTICTION

andrewru
Joined: Mon 22 of Mar, 2010

INVITE with AUTICTION

Posted:Mon 22 of Mar, 2010 (08:45 UTC)
Hi, all.
Let me explain what the problem do i have. So, VoIP privider that my Asterisk is connected (Trunk - friend), demands not only authentification registration with REGISTAR, but also all INVITE messages that Asterisk sends to him must also include authentification information.
So the case is that, Asterisk sends REGISTAR with Authentification, and VoIP provider answers OK.
Then when Asterisk initiates the call, it sends common INVITE (without AUTHENTIFICATION info), and VoIP provider answers 401 UNAUTHORIZED
Asetrisk replies OK. and sends to the client some thing like FORBIDDEN ( exactly remember).

So, the question is, what config parameters do i need in sip.conf to make Asterisk initiate all outgoing INVITEs with authentifiation parameters in the trunk to VoIP provider?