<div dir="ltr">Hi Markus,<div><br></div><div>not testet but looked at latest doc 'sockname' instead of socket could be a solution.<br>So you label your sockets with "name" in the listen directive (in config file) and use 'sockname' in dispatcher table.<a href="https://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.ex.attributes">https://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.ex.attributes</a><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:15px;text-align:justify"><br></span></div><div><pre class="gmail-programlisting" style="background-color:rgb(252,255,252);border:1px solid rgb(153,204,204);color:rgb(0,0,0);padding-left:15pt;overflow:auto;border-radius:2.5px;font-size:15px">listen=udp:<a href="http://1.2.3.4:5060">1.2.3.4:5060</a> name "sock1"</pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 19. Okt. 2021 um 15:13 Uhr schrieb Markus Bönke <<a href="mailto:mb@tenios.de">mb@tenios.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
I’ve a question regarding the dispatcher module. So far we use on every server a separate database table, where the attribute column is set to the local internal or external socket like "socket=udp:192.168.1.70:5060“ or socket=udp:80.239.xxx.xxx:5060. Is there a way to use constants here like socket=udp:IPADDR_INTERN:5060 or socket=udp:IPADDR_EXTERN:5060 which are replaced when the data is loaded from the DB? <br>
<br>
<br>
Thanks and regards<br>
<br>
Markus<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mit freundlichen Grüßen<br>*Karsten Horsmann*<br></div>