forked from thomasklingbeil/chan_datacard
-
Notifications
You must be signed in to change notification settings - Fork 1
License
Sendinel/chan_datacard
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
--------------------------------------------------
chan_datacard channel driver for Huawei UMTS cards
--------------------------------------------------
WARNING:
This channel driver is in beta stage.
I am not responsible if this channel driver will eat your money on
your SIM card or do any unpredicted things.
This channel driver should work with the folowing UMTS cards:
* Huawei K3715
* Huawei E169 / K3520
This channel is known NOT to work with the folowing UMTS cards:
* Huawei E160 / K3565
Before using the channel driver make sure to:
* Disable call waiting on your SIM card
* Disable PIN code on your SIM card
Supported features:
* Place voice calls and terminate voice calls
* Send SMS and receive SMS
* Send and receive CUSD commands / messages
Here is an example for the dialplan:
[datacard-incoming]
exten => sms,1,Verbose(Incoming SMS from ${SMSSRC} ${SMSTXT})
exten => sms,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${CHANNEL} - ${SMSSRC}: ${SMSTXT}' >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()
exten => cusd,1,Verbose(Incoming CUSD: ${CUSDTXT})
exten => cusd,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${CHANNEL}: ${CUSDTXT}' >> /var/log/asterisk/cusd.txt)
exten => cusd,n,Hangup()
exten => s,1,Dial(SIP/2001@othersipserver)
exten => s,n,Hangup()
[othersipserver-incoming]
exten => _X.,1,Dial(Datacard/r1/${EXTEN})
exten => _X.,n,Hangup
you can also use
exten => _X.,1,Dial(Datacard/g1/${EXTEN})
or
exten => _X.,1,Dial(Datacard/datacard0/${EXTEN})About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published