Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

jueves, 23 de noviembre de 2017

freepbx modules

https://wiki.freepbx.org/display/FPG/Module+List

https://www.freepbx.org/store/commercial-modules/

https://wiki.freepbx.org/pages/viewpage.action?pageId=37912685

miércoles, 8 de noviembre de 2017

a2billing caller id authentication

CLID Enablecid_enableyes

Ask PINcid_askpincode_ifnot_calleridYes
Then add the CID to the customer ( in this case  customer id is1  ) and all calls from my cell pjobe having this caller id will be authenticated automatically





enable direct dialing on a2billing( disabled enter pin)

use_dnid=yes  , number_try=1 , play_audio=no

Note  need to disabled Caller Id Verification

CLID Enablecid_enableNoenable the callerid authentication if this option is active the CC system will check the CID of caller .agi-conf1  Edit this Configuration
Ask PINcid_askpincode_ifnot_calleridNoif the CID does not exist, then the caller will be prompt to enter his cardnumber .agi-conf1

a2billing rate

_

 A2BILLING 7 DIGITS RATE  EXAMPLE : 3051010

domingo, 5 de noviembre de 2017

a2billing enabled calling card with pin number


inbound calls to

[a2billing-out]
exten => _X.,1,AGI(a2billing.php,1)
exten => _X.,n,Hangup()



a2billing settings


cid_askpincode_ifnot_callerid=yes

use_dni=no

number_try=2

play_audio=yes

this will eneable  the ivr asking for pin # ( card number)

jueves, 2 de noviembre de 2017

restarting freepbx every midnight

crontab -e
@midnight /usr/sbin/fwconsole restart > /root/asterisk-results.txt 2> /root/asterisk-errror.txt


verify crontab -l

miércoles, 1 de noviembre de 2017

recording conference system

  1. [conferencesys]
  2. exten=>_x.,1,Answer()
  3. ;same=>n,System(php /var/www/html/conference/insert.php ${UNIQUEID} ${CDR(billsec)} ${CALLERID(num)} ${UNIQUEID})
  4. same=>n,Set(Id=${SHELL(php /var/www/html/conference/insert.php ${UNIQUEID} ${CDR(billsec)} ${CALLERID(num)} ${UNIQUEID})})
  5. same=>n,Playback(confirm-number-is)
  6. same=>n,Saydigits(${Id})
  7. same=>n,Set(CONFBRIDGE(bridge,record_conference)=yes)
  8. same=>n,Set(CONFBRIDGE(bridge,record_file)=/var/www/html/conference/${UNIQUEID}.wav)
  9. same=>n,Set(CONFBRIDGE(bridge,max_members)=1)
  10. same=>n,ConfBridge(${UNIQUEID})
  11. same=>n,hangup()
  12. exten=>h,1,Noop(${UNIQUEID} ..)
  13. same=>n,Set(path=${SHELL(find /var/www/html/conference -name ${UNIQUEID}*)})
  14. same=>n,System(mysql --user=root --password='1234' conferences -e "update recordings set path='${path:0:-1}',duration='${CDR(billsec)}' where Id='${Id}'")
  15. [listenrec]
  16. exten=>_x.,1,Answer()
  17. same=>n,read(idnum,enter-conf-call-number)
  18. same=>n,Set(Id=${SHELL(mysql --user=root --password='1234' --skip-column-names  conferences -e "select path from recordings where Id='${idnum}'")})
  19. same=>n,Noop(${Id:0:-5})
  20. same=>n,Playback(${Id:0:-5})
  21. <?php
  22. $link = mysqli_connect("localhost", "root", "1234", "conferences");
  23. /* check connection */
  24. if (mysqli_connect_errno()) {
  25.     printf("Connect failed: %s\n", mysqli_connect_error());
  26.     exit();
  27. }
  28. $conf_name=$argv[1];
  29. $duration=$argv[2];
  30. $cid=$argv[3];
  31. $path="/var/www/html/conference/$argv[4]";
  32. $query = "INSERT INTO  `conferences`.`recordings` (
  33. `id` ,
  34. `path` ,
  35. `conference_name` ,
  36. `duration` ,
  37. `callerid` ,
  38. `date` ,
  39. `reserved1` ,
  40. `reserved2`
  41. )
  42. VALUES (
  43. NULL ,  '$path',  '$conf_name',  '$duration',  '$cid',
  44. CURRENT_TIMESTAMP , NULL , NULL
  45. )";
  46. if(mysqli_query($link, $query)) {
  47. printf(mysqli_insert_id($link));
  48. exit();
  49. }
  50. else {
  51.  printf("Error: %s\n", mysqli_error($link));
  52. }
  53. /* close connection */
  54. mysqli_close($link);
  55. ?>
  56. Creating table
CREATE TABLE IF NOT EXISTS `recordings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `path` varchar(150) DEFAULT NULL,
  `conference_name` varchar(20) NOT NULL,
  `duration` varchar(10) NOT NULL,
  `callerid` varchar(20) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reserved1` varchar(20) DEFAULT NULL,
  `reserved2` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`,`conference_name`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;



RAW Paste Data