Skip to content

Porting from chan_datacard

opless edited this page Dec 26, 2016 · 2 revisions

CLI changes

Manager's changes

Porting instructions from chan datacard to chan dongle

Module configuration changes

  • change config file name from datacard.conf to dongle.conf
  • change parameter from 'resetdatacard' to 'resetdongle' resetdatacard=yes resetdongle=yes Dialplan changes

change channel technology from 'Datacard' to 'Dongle'

Dial(Datacard/d1/+79139131234) Dial(Dongle/d1/+79139131234)

change device status function from 'DatacardStatus' to 'DongleStatus'

DatacardStatus(d1,VAR) DongleStatus(d1,VAR)

change SMS send function from 'DatacardSendSMS' to 'DongleSendSMS'

DatacardSendSMS(d1,+79139131234,"Hello how are you, Danila?",1440,yes) DongleSendSMS(d1,+79139131234,"Hello how are you, Danila?",1440,yes) change channel variables DATACARD to DONGLENAME PROVIDER to DONGLEPROVIDER IMEI to DONGLEIMEI IMSI to DONGLEIMSI CNUMBER to DONGLENUMBER CLI changes

##all commands of datacard changed to dongle like

datacard show devices dongle show devices Manager's changes

Actions and events begining from “Datacard” changed to begining from “Dongle” for example

DatacardShowDevices DongleShowDevices or

DatacardNewUSSD DongleNewUSSD