[Vtigercrm-commits] [vtiger development] #6244: Cannot dial out with asterisk if number contains spaces
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Aug 13 07:18:15 EDT 2009
#6244: Cannot dial out with asterisk if number contains spaces
------------------------+---------------------------------------------------
Reporter: delboy711 | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: 5.1.1
Component: vtigercrm | Version: 5.1.0
Keywords: |
------------------------+---------------------------------------------------
Asterisk dial out does not work if the telephone number contains special
characters such as space or '-'.
Vtiger should strip out all special characters before passing the number
to asterisk.
I have worked out a fix which works for me.
In AsteriskClass.php at line 123
function createCall($from, $to, $context){
$arr = explode("/", $from);
$request = "Action: Originate\r\n".
"Channel: $from\r\n".
"Exten: ".ereg_replace("\ |-", "", $to)."\r\n".
"Context: $context\r\n".
"Priority: 1\r\n".
"Callerid: $arr[1]\r\n".
"Async: yes\r\n\r\n";[/code]
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6244>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list