You may modify the following code in opensbc.cxx
RegisterSession::AcceptRegistrationResponse OpenSBC::OnAcceptRegistration(
RegisterSession &,
const SIPMessage & reg
)
{
if( m_AcceptAllRegistration )
return RegisterSession::AcceptByOk;
/****************HERE IT IS*******************************/
if( m_Registrar->GetRegistrationDB().FindRegistration( reg ) )
{
PTRACE( 1, "Registration exists!" );
}
/*********************************************************/
return RegisterSession::AcceptByChallenge;
}
Kolneath SOMETH wrote:
> Hi Everyone,
>
> I want Registrar to check for the existence of SIP account ( wheither he
> is already registered or not yet ).
> Could you pls tell me which file and what line number ?
> Thanks for your help in advance.
>
> Kolneath SOMETH
>
>
>
>
> " Ce courriel et les documents qui y sont attaches peuvent contenir des informations confidentielles. Si vous n'etes pas le destinataire escompte, merci d'en informer l'expediteur immediatement et de detruire ce courriel ainsi que tous les documents attaches de votre systeme informatique. Toute divulgation, distribution ou copie du present courriel et des documents attaches sans autorisation prealable de son emetteur est interdite."
>
> " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, please advise the sender immediately and delete this e-mail and all attached documents from your computer system. Any unauthorised disclosure, distribution or copying hereof is prohibited."
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> opensipstack-devel mailing list
> ope...@li...
> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
>
>
>
|