(48) 3332-8540

Query Number Portability via WebService

Now the ATI – Numerical Portability Consultation System has another form of consultation, you can also consult the numerical portability via webservice to find out which operator your number fits.

ATI Webservices is incredibly easy to use and with it you can make a operator consultation corresponding to your number using a simple URL. See how you can check number portability in 3 ways:

1st – Consulting through a browser

The simplest way to perform queries on ATI via WebServices is to point your browser to:

http://port.sippulse.com:9091/?num=

Ex.

http://port.sippulse.com:9091/?num=4884015555

You will be asked for your login and password to access the ATI service, if you do not already have one, request one Demo account free for testing.

2nd – Querying through the Linux command line

You can also perform queries via the command line, just use:

curl -u name:password -i http://port.sippulse.com:9091/?num=<numero a ser consultado>

Ex:

curl -u joao:secret -i http://port.sippulse.com:9091/?num=4884073432

3rd – Querying within Asterisk

Asterisk has a function called CURL that allows direct access to the WebService. Below is a small snippet of code on how to identify the operator.

exten=_X.,1,Answer()

exten=_X.,n,Set(CURLOPT(userpwd)=name:password)

exten=_X.,n,Set(operadora=${CURL(https://port.sippulse.com:9091/?num=11987654322)})

exten=_X.,n,NoOP(${operator})

If you need help configuring the WebService, contact us and ask for help from one of our analysts.

Watch the demonstration video and see how the Portability query via WebService works and request a  Demo Account free for testing.

http://www.youtube.com/watch?v=wdVSuL49rgw

Questions or suggestions? leave a comment

en_USEN