[SR-Users] force_send_socket

Juha Heinanen jh at tutpro.com
Mon Oct 8 13:07:23 CEST 2018


> Le 08/10/2018 à 02:27, Alex Balashov a écrit :
> > Hi,
> >
> > 1. force_send_socket() is essentially deprecated in favour of mutating
> > $fs:
> >
> >     $fs = 'udp:67.215.186.219:5060';

According to wiki, $fs cannot deprecate force_send_socket.

In force_send_socket, proto can be left out:

  force_send_socket

  Force to send the message from the specified socket (it _must_ be one of
  the sockets specified with the “listen” directive). If the protocol
  doesn't match (e.g. UDP message “forced” to a TCP socket) the closest
  socket of the same protocol is used.

wheres:

  $fs - Forced socket

  $fs - reference to the forced socket for message sending (if any) in
  the form proto:ip:port

-- Juha



More information about the sr-users mailing list