On Sun, 4 Sep 2016 10:23:06 -0400
"D'Arcy J.M. Cain" <da...@vex.net> wrote:
> The docs for faxing seem a little light but I think I have managed to
> put something together.  It mostly works but I have a couple of
> issues.  The main one is identifying myself.  Setting CALLERID doesn't
> seem to have any effect.

For future searches here is my fix.

> How this works is that I have a script that calls Asterisk through
> AMI,  It defines a number of variables and does an originate.  It
> looks something like this:
> 
> Action: Originate
> Channel: SIP/thinktel/%%(destination)s

I added the following:

CallerID: %%(sender_name)s <%%(sender_num)s>

>   same => n,Set(CALLERID(NAME)=${sender_name})
>   same => n,Set(CALLERID(NUM)=${sender_num})
> ; attempting to set caller ID but it doesn't work

Not needed or used.  The CallerID in the AMI script fixes this.

>   same => n,Set(FAXOPT(headerinfo)=${sender_name})
>   same => n,Set(FAXOPT(localstationid=${sender_num})
> ; another attempt to identify ourselves

I believe that this is still useful for adding info to the fax pages.

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to