Menu

Possible to change modemnumber per job?

Help
2020-11-05
2020-11-09
  • Hans Melgers

    Hans Melgers - 2020-11-05

    Hi All,

    Maybe unusual question but would it be possible to change the modem phone number on a per job basis ?
    I would like to use it for different users with their own incoming fax numbers. Would be nice to send their faxes with the corresponding numbers in addition to TSI.

     
    • Lee Howard

      Lee Howard - 2020-11-05

      Yes. Use JobControl. See:

      https://hylafax.sourceforge.io/man/jobcontrol.php

      There are very few configuration features that cannot be altered via JobControl for outbound faxing.

       
  • Hans Melgers

    Hans Melgers - 2020-11-06

    That's wonderful, thanks!
    Maybe i should ask this on the iaxmodem forums but do you know how to get this variable CID used by iaxmodem too ?

     
    • Lee Howard

      Lee Howard - 2020-11-09

      In the HylaFAX modem config file for the iaxmodems put:

      #
      # Enabling this will use the hfaxd-protocol to set Caller*ID
      #
      ModemSetOriginCmd:  "AT+VSID=\"%s\",\"%d\""
      

      The 'hylafax-config' man page says:

         ModemSetOriginCmd
                The command to use to set the call origin information before placing a call.  The command may include a single ``%d'' where the job request ``faxnumber'' string is to be substituted.  The command may also include a single ``%s'' where the job request ``faxname'' string is to be subsituted.
      

      So, you could either set ModemSetOriginCmd from your JobControl script or you could rely on the fax clients to set "faxnumber" and "faxname" appropriately. Those two values get passed to Asterisk as the CallerID Number and CallerID Name.

       

Log in to post a comment.