Recently as per the initiative of BTRC all telecom operator shifted to the Mobile Number Portability (MNP) platform. In this scenario, any subscriber can change operator without changing his/her current number including the prefix. In order to do that, there has been established a central MNP database. All operators require to up to date with this database and perform query for each of their outbound call. MNP database will give the information of current recipient and donor operator routing code. Operator requires to query the current recipient routing code before sending call to the ICX. In this paper, authors target is to give suggestion how to keep this local MNP database up to date and synchronize with the central database. Further, how this local database can be used for dipping to generate outbound calls to current recipient operator using opensource SIP Server and Session Border Controller (SBC). To perform that, authors shows how to use asterisk as dipping server using AGI scripting and it will be used as Back to Back User Agent (B2BUA). Also shows how kamailio an open source SIP Express Router (SER) can be used to perform MNP dipping to MySQL database. Finally, after the implementation of MNP service although calling service is working fine but most ported numbers did not receive the SMS specially OTP. Therefore, on these context author's shows how to create secure post API to perform the dipping to local MNP database from SMS gateway to connect to the original routing number before sending the SMS to client. Here, API will return the current recipient, donor code and routing number to send SMS as JSON data format against a normal cell phone number.