Changes

Jump to navigation Jump to search
2,275 bytes added ,  03:56, 15 March 2019
no edit summary
Line 51: Line 51:  
  sudo gedit /etc/asterisk/dongle.conf
 
  sudo gedit /etc/asterisk/dongle.conf
 
  <Save and close the dongle.conf file after adding IMEI number of the dongle>
 
  <Save and close the dongle.conf file after adding IMEI number of the dongle>
      
Step 7: Setup Asterisk and swara to make calls:
 
Step 7: Setup Asterisk and swara to make calls:
Line 57: Line 56:  
  sudo gedit /etc/asterisk/dongle.conf
 
  sudo gedit /etc/asterisk/dongle.conf
 
  <Save and close the dongle.conf file
 
  <Save and close the dongle.conf file
      
Step 8: Setup Asterisk to use swara configs
 
Step 8: Setup Asterisk to use swara configs
Line 72: Line 70:  
----------------------
 
----------------------
   −
  1. Open the terminal. change to root using the command "sudo -s"
+
  1. Open the terminal.
  2. Now run the command "asterisk -vvvvvvc". This should run without fail and the CLI prompt should come
+
  2. Now run the command "sudo asterisk -vvvvvvc". This should run without fail and the CLI prompt should come
  3. On the CLI command prompt run the command "agi set debug on"
+
  3. Check Dongle is ready "dongle show devices". If you see network provider name here, then the dongle is ready to make calls.
4. Call to the number and you should hear the IVR prompt
  −
5. Stop to this run "core stop gracefully"
  −
6. Stop and Restart " core restrat gracefully"
  −
7. check Dongle is ready "dongle show devices"
      
==Sending Voice-SMS==
 
==Sending Voice-SMS==
Line 92: Line 86:  
  ubuntu ALL=(ALL) NOPASSWD: ALL
 
  ubuntu ALL=(ALL) NOPASSWD: ALL
   −
Now press Ctrl+O and then press Enter and then Ctrl+X to come out of editor.
+
Replace *ubuntu* with your own username. Now press Ctrl+O and then press Enter and then Ctrl+X to come out of editor.
    
Next type below command in Terminal:
 
Next type below command in Terminal:
Line 134: Line 128:  
# Hold your phone at exactly 45<sup>0</sup> degree angle and at half-feet distance from your mouth for better audio capture by phone's microphone.(Use earphones if available)
 
# Hold your phone at exactly 45<sup>0</sup> degree angle and at half-feet distance from your mouth for better audio capture by phone's microphone.(Use earphones if available)
 
# Stop the recording when you are done and transfer audio file to your computer.
 
# Stop the recording when you are done and transfer audio file to your computer.
# Use Audocity to remove any noise from the audio file and export it to same *.wav format with 8,000GHz frequency.(Listen to your audio file in earphones if available)
+
# Use Audacity to remove any noise from the audio file and export it to same *.wav format with 8,000GHz frequency.(Listen to your audio file in earphones if available)
 
# Use the exported audio file to send Voice SMS in the IVRS applciation.
 
# Use the exported audio file to send Voice SMS in the IVRS applciation.
   −
[[Category:Ubuntu]]
+
==Troubleshooting==
 +
If the IVRS isn't working, it could be because of one or more of the below reasons. Also follow instructions right below which can help to troubleshoot the problem.
 +
 
 +
=== How to Insert Sim card in the dongle ===
 +
* Click on the [http://support.three.co.uk/SRVS/CGI-BIN/WEBISAPI.DLL/,/?New,Kb=Mobile,Ts=Mobile,T=Device,varset_pid=6174,varset_cid=6175,Case=EXT(EM80399) link] to view the steps.
 +
* Click on  the [https://www.youtube.com/watch?v=aRKIZ5VIqfI link] to view a short video to insert the sim.
 +
 
 +
=== ''Using the micro/nano and Jio sim cards'' ===
 +
Data cards used here require full sim cards and if they are cut like in micro/nano card then they are not properly placed in the sim card slot. A new sim card without cutting it can be placed or if they are cut then external card support can be used to fix this issue. Also note that Jio sim cards won't work to make calls on this IVRS.
 +
 
 +
=== ''Data card not detected or not switching to network mode'' ===
 +
'''opentty: unable to open /dev/ttyUSB2: No such file or directory''' error message is generally shown when the data card is not detected or if it's in modem mode. To fix it, below steps can be followed.
 +
# Command used to check the device mode "lsusb".
 +
# Command used to switch the device mode manually.
 +
sudo usb_modeswitch -v 0x12d1 -p 0x1446 -M 55534243000000000000000000000011060000000000000000000000000000 -V 0x12d1 -P 0x1436 -s 30 -m 0x01
 +
A gap of 30 seconds is needed before we see the switch.
 +
 
 +
=== To Resolve the existing call error ===
 +
Command to resolve the error:
 +
sudo rm -rf /var/spool/asterisk/outgoing
 +
 
 +
=== ''Audio quality is bad or nothing is heard'' ===
 +
This could happen because of issues in audio file (.wav). Make sure the frequency of audio file is 8000, track is mono and is saved in 16-bit *.wav format. By default, audacity saves file in 16-bit *.wav format but frequency and track settings have to be confirmed. This will fix the audio issues.
 +
 
 +
== Ubuntu Kalpavriksha(IVRS Pre-installed) ==
 +
Click on the link '''[https://drive.google.com/open?id=1CkIkRv5N2E6ggt2w-KAtb7DhYEKoOGfZ Kalpavriksha(With_IVRS).ISO]''' to download the ISO which includes IVRS1,IVRS2 and Modem switching  shortcuts in the office menu..
 +
 
 +
But need to change the IMEI number,and set it to your dongle IMEI number before launching the IVRS1 and IVRS2.  Command used to change the IMEI number is :
 +
sudo gedit /etc/asterisk/dongle.conf
 +
[[Category:Ubuntu]]
228

edits

Navigation menu