[OpenSIPS-Users] Using external MySQL server

Gary Patton gpatton.public at outlook.com
Thu Jun 26 13:56:40 CEST 2014


Vlad and Alain
Thank you for your prompt response!  I'll look into the m4 documentation and see how to use that.  I'll then try both methods separately and report back whether using m4 or adding all modules to the modparam seems to work better.
Regards
Gary

Date: Thu, 26 Jun 2014 14:31:20 +0300
From: vladpaiu at opensips.org
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] Using external MySQL server


  
    
  
  
    Hello,

      

      To make things simpler, you can also do

      

      modparam("module1|module2|module3","db_url","YOUR_URL_HERE")

      

      Best Regards,

      Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com 
      On 26.06.2014 11:13, Alain BIEUZENT wrote:

    
    
      
      
      
      
        Hi
            gary,
         
        You can use m4 « compilator » for this
         
        Have look to : http://www.opensips.org/Documentation/Tools
         
        Regards
         
        
          
            De :
                users-bounces at lists.opensips.org
                [mailto:users-bounces at lists.opensips.org] De la part
                  de Gary Patton

                Envoyé : jeudi 26 juin 2014 01:29

                À : users at lists.opensips.org

                Objet : [OpenSIPS-Users] Using external MySQL
                server
          
        
         
        
          Hi
              again!  Another newbie question.
          
             
          
          
            If
                I want a module to use an external MySQL db server, I
                simply modify the modparam for each module in my
                residential config file by adding the external server's
                IP address to the DB_URL parameter for each module.  
          
          
             
          
          
            But
                isn't there a simpler way?  I guess what I'm asking is
                whether I can enter the external db server's IP address
                on a single line in a config file somewhere in OpenSIPS
                and OpenSIPS will use the external MySQL server for all
                the modules included in my residential config file?
          
          
             
          
          
            Hope
                this question isn't too silly.
          
          
             
          
          
            Regards
          
          
             
          
          
            Gary
          
        
      
      

      
      

      _______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

    
    

  


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140626/2a6aef6f/attachment.htm>


More information about the Users mailing list