91Abdullah / webfax-ari-module

Automatically exported from code.google.com/p/webfax-ari-module
2 stars 0 forks source link

Send fax caller ID #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Send fax from ARI module,
outbound caller ID is not set, where can this be add so each user will show 
their own caller ID based on number entered in "local station identifier" box.

Original issue reported on code.google.com by jiang.ch...@gmail.com on 25 Apr 2011 at 4:41

GoogleCodeExporter commented 9 years ago
Another issue with this is if you are using A2Billing it requires the 
accountcode from user to be preserved and set thru for authentication before it 
will allow the fax to send

any help here would be greatly appreciated :)

Tony S

Original comment by sampano....@gmail.com on 17 Oct 2011 at 4:37

GoogleCodeExporter commented 9 years ago
//creating a call file and write it in /tmp
            $callfile = "Channel: Local/".$POST['dest']."@".$this->outbound_route."\n" . 
                        "Callerid: \"\" <" . $POST['localID'] . ">\n" . 
                        "MaxRetries: 1\n" . 
                        "RetryTime: 60\n" . 
                        "WaitTime: 60\n"  . 
                        "Archive: yes\n"  . 
                        "Context: ".$this->outboundfax_context."\n"  . 
                        "Extension: s\n" . 
                        "Priority: 1\n" . 
                        "Set: FAXFILE=".$file."\n" . 
                        "Set: FAXHEADER=".$POST['faxHeader']."\n" . 
                        "Set: TIMESTAMP=" . date("d/m/y : H:i:s",time()) . "\n" .
                        "Set: DESTINATION=".$POST['dest']."\n". 
                        "Set: LOCALID=".$POST['localID']."\n" . 
                        "Set: EMAIL=".$POST['email']."\n";

Original comment by rip...@j0n.me on 6 Jun 2012 at 3:12