[Vtigercrm-developers] Asterisk Integration

Pinaki Das pinaki at vtiger.com
Fri Jul 24 09:58:22 PDT 2009


Hi Alan,
This issue has been fixed in the GA release of vtiger. Can you please check
and update us?

Regards
Pinaki
vtiger Team


On Fri, Jul 24, 2009 at 8:39 PM, Alan Lord (News) <alanslists at gmail.com>wrote:

> Can someone explain what this chunk of code is for in function function
> transfer($from,$to) in /modules/PBXManager/utils/AsteriskClass.php?
>
>
>                 $arr = explode(":", $to);
>                 if(is_array($arr)){
>                         $typeCalled = $arr[0];
>                         $to = trim($arr[1]);
>                 }
>
>
> This is being called via the Ajax stuff for initiating outbound calls.
>
> Our telephone numbers for contacts/leads etc are usually in the form of
> either:
>
> $AREA $NUMBER
>
> or they have an international prefix:
>
> +$INT (0)$AREA $NUMBER
>
>
> explode() always results in an Array.
>
> As we do *not* have a colon in our phone numbers this chunk of code
> mangles them and afterwards $to is empty.
>
> I don't think it should be called for an outgoing call.
>
> Alan
>
>
> _______________________________________________
> Reach hundreds of potential candidates - http://jobs.vtiger.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20090724/696e471a/attachment-0003.html 


More information about the vtigercrm-developers mailing list