Simple Mail to SMS gateway using Portech MV 37X

MobileSMSIn this post I will describe how to make a simple Email to SMS Gateway, using Portech MV37x and PHP code running on a Linux server.

Operation is simple: the code will poll the configured imap a folder, and if detect a new email it will send a Short Message Service (SMS) using the Portech hardware device. The recipient’s mobile number must be specified in the email subject (the subject must be a number or the email will be ignored) and the text will be the body in the email itself (truncated to 140 chars).
Continue reading

Getting CDR from Portech MV-370

I this post will show you how to get directly from the Portech MV-370 the CDR, Call Details Record (the same procedure works fine for Portech MV-372 and MV-374).

Initially you have to download the latest version of Dial Peer Software from Portech website: if you do not find this software in the MV-370 details try to see in the details of MV-374 or other MV-XXX device. The software is the same.

Now in the Portech web interface modify the “Call data to server” section (you cand find this section in “Sip Settings” -> “Sip Responses”.

Send Call Events to Data Server: YES
Data Server : <ip address of the pc where will be running the dial peer software>:5020

Submit & Reboot.
Now we un-tar the Dial Peer software, and modify the DialPeer.ini file.

[LogFile]
event=0
sip=0
Statistics=0
[CdrFile]
Active=1
MaxChannel=0
IP=<ip address of the pc where will be running the dial peer software>
Port=5020
[My]
IP=
Port=5080
[Info]
Total=1
[AllBusy]
StandardStatus=600
[SIP302]
MaxForwards=70
ContactURI=192.168.0.105:5060
[VoipIP]
1=<ip address of the MV-370 device>
[SipPort]
1=5060
[RtpPort]
1=60000
[Replace]
Trying=0
Contact=0
[NotifyTo]
Active=0
URL=192.168.0.164
Port=5040
[Stun]
Port1=3478
Port2=3479
[LogListView]
*=18
DateTime=114
Event=460
Remark=60
[StatusListView]
CH=32
MvIP=100
port=48
sq=48
state=60
remote=140
[SetListView]
*=100
Item=150
Data=150
[EventListView]
*=32
id=60
ch=26
cimi=105
lan=212
dir=32
mobile=96
tStart=128
tAns=50
tEnd=50
state=100
remark=100
[Window]
Xpos=256
Ypos=129
Width=701
Height=612

Launch DialPeer.exe and.. that’s all !

Att.: The CDR will gathered only when the DialPeer software in running !

Linkografia
http://www.portech.com.tw