NEW-FEATURE [WELGATE WEB-SERVICE]


 

1.  Restart Welgate

URL sent is when we want to reboot welgate in Branch via web service http://$IP_ADDRESS_WELGATE/api.asp?username=$username&password=$password&mode=restart

Return : OK and NOT_OK

If successful, then his return is OK and if it fails returnnya is NOT_OK.

NOT_OK this could be a possibility because the wrong username and password, or URL address not found, etc..

2.      Monitoring the Status Line FXS

URL sent is:

http://$IP_ADDRESS_WELGATE/api.asp?username=$username&password=$password& lineType=fxs&mode=lineStatus

Return format:

api_status@Line,Account,Registered,CallState => separated hashtag (#)

RETURN SUCCESS:

Sample return to the 4 PORT

OK@1,6001,Not
Register,Idle#2,6002,Register,Talk#3,6003,Register,Idle,#4,6004,Register,Idle

Sample return for the 8 PORT

OK@1,6001,Not
Register,Idle#2,6002,Register,Talk#3,6003,Register,Idle,#4,6004,Register,Idle#

5,6005,Not
Register,Idle#6,6006,Register,Talk#7,6007,Register,Idle,#8,6008,Register,Idle

RETURN FAIL:

NOT_OK, NOT_OK this could be a possibility because the wrong
username and password, or URL address not found, etc..

3.      Monitoring the Status Line FXO

URL sent is:

http://$IP_ADDRESS_WELGATE/api.asp?username=$username&password=$password&
lineType=fxo&mode=lineStatus

Return format:

api_status@Line,CallState

RETURN SUCCESS:

Sample return to the 4 PORT

OK@1,Not
Connected#2,Connected#3,Connected#4,Connected

Sample return for the 8 PORT

OK@1,NotConnected#2,Connected#3,Connected#4,Connected#5,Connected#6,Connected#7,Connected#8,Connected

RETURN FAIL:

NOT_OK, NOT_OK this could be a possibility because the wrong
username and password, or URL address not found, etc..

4.      Monitoring SipTrunk on FXO

URL sent is:

http://$IP_ADDRESS_WELGATE/api.asp?username=$username&password=$password&
lineType=fxo&mode=sipTrunk

Return format:

api_status@Trunk ID,Register Type,TEL No,TEL No,Proxy Server
Port,Outbound Proxy,Outbound Server Port

RETURN SUCCESS:

Contoh return untuk yang 4 PORT

OK@1,Register,1000,192.168.0.140,5060,192.168.0.140,5060#1,Register,1001,192.168.0.141,5060,192.168.0.141,5060

RETURN FAIL:

NOT_OK, NOT_OK this could be a possibility because the wrong
username and password, or URL address not found, etc..

5.      Log in automatically

URL sent is:

http://$IP_ADDRESS_WELGATE/api.asp?username=$username&password=$password&
mode=login

SUCCESS:

Automatically open a new tab and are logged!.

FAIL:

Still appear login form!

Thanks gozigomilis@gmail.com

cost, charge, fee
($USD 2000)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: