forked from thomasklingbeil/chan_datacard
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.txt
More file actions
50 lines (36 loc) · 1.48 KB
/
README.txt
File metadata and controls
50 lines (36 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--------------------------------------------------
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})