Re: [OpenSIPS-Users] Recover TCP Connections after restart

2018-05-01 Thread Alex Balashov
Unfortunately, binding to the same port will not preserve TCP connection state. 

On May 1, 2018 10:05:39 PM EDT, "Podrigal, Aron"  
wrote:
>Hi everyone I hope you are having a good time @opensipsSummit I wish I
>would be able to attend.
>
>Can anyone suggest how to handle graceful restart of opensips without
>effecting mid dialog transactions over TCP? Evert time I restart
>opensips I
>have at least a few clients that fail to send their messages with
>477/TM.
>
>Would it make sense for opensips to use *SO_REUSEPORT* socket option so
>that opensips could bind to the same port after restart?


-- Alex

--
Sent via mobile, please forgive typos and brevity. 

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Recover TCP Connections after restart

2018-05-01 Thread Podrigal, Aron
Hi everyone I hope you are having a good time @opensipsSummit I wish I
would be able to attend.

Can anyone suggest how to handle graceful restart of opensips without
effecting mid dialog transactions over TCP? Evert time I restart opensips I
have at least a few clients that fail to send their messages with 477/TM.

Would it make sense for opensips to use *SO_REUSEPORT* socket option so
that opensips could bind to the same port after restart?

-- 

-
Aron Podrigal
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Use Blacklist Module Question

2018-05-01 Thread Alexander Perkins
Hi.  I have successfully implemented the User Blacklist module, but I
noticed it checks the number the call is going to, not the CallerID.  Is it
possible to lookup the CallerID instead of the number?  I have tried
creating a dummy variable for $tU and then assiging the CallerID to $tU,
but OpenSIPs failed (I guess $tU is read-only?).  I am using the global
blacklist functionality.  This is the code I tried originally:

$var(TempVariable) = $tU;
$tU = $fU;

if (!check_blacklist("globalblacklist"))
{
sl_send_reply("403", "Forbidden");
exit;
}

$tU =  $var(TempVariable);

Any help is appreciated,
Alex
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users