Re: [SR-Users] What is the alignment of shm_malloc and friends?

2022-06-21 Thread Richard Chan
Hello Daniel,

On Mon, 20 Jun 2022 at 19:09, Daniel-Constantin Mierla 
wrote:

> Hello,
>
> iirc, the alignment is to sizeof(void*), which is 8.
>

The qm allocator naturally returns 16-byte aligned memory. However the
definition
of DBG_SR_MEMORY(from 'make cfg' with all the defaults.) causes 16 to drop
to 8.

Is this intentional?

Regards
S-P
//qm naturally aligns on 16 bytes without DBG_QM_MALLOC!

#ifdef DBG_QM_MALLOC
#if defined(__CPU_sparc64) || defined(__CPU_sparc)
/* tricky, on sun in 32 bits mode long long must be 64 bits aligned
 * but long can be 32 bits aligned => malloc should return long long
 * aligned memory */
#define ROUNDTO sizeof(long long)
#else
#define ROUNDTO sizeof(void*) /* minimum possible ROUNDTO

* ->heavy debugging*/
#endif
#else /* DBG_QM_MALLOC */
#define ROUNDTO 16UL /* size we round to, must be = 2^n
 and also
*
sizeof(qm_frag)+sizeof(qm_frag_end)
* must be multiple
of ROUNDTO!
*/
#endif
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] 5.6 Package for Ubuntu 22.04 LTS?

2022-06-21 Thread Mark Boyce
Hi all

Any chance of Ubuntu 22.04 LTS "Jammy Jellyfish” being added to the Jenkins 
package builder for kamailio 5.6?

Ubuntu native repo seems to have 5.5 in it.

Thanks
Mark


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Finding advertised address of socket

2022-06-21 Thread Daniel-Constantin Mierla
If dispatcher sets a socket for sending out, you can get its address
with $fs.


Also, there is a mode parameter for dispatcher that allows you to
specify you want the socket value from attributes to be set as string in
a field of an xavp -- right now I have now quick option to check it
myself and point to it, just look at the dispatcher readme.


Cheers,
Daniel


On 21.06.22 12:14, Tor Petterson wrote:
> I guess I didn't explain myself well enough.
> I would like to find the socket address programatically from the
> kamailio.cfg script.
> so after I do this:
>         if (ds_select_domain($var(dispgroup), "4")) {
>                 xavp_params_explode($xavp(dsdst=>attrs), "dstattr");
>
> is there a way to get the IP address of the selected socket?
> 
> *From:* sr-users  on behalf of
> Mathias WOLFF 
> *Sent:* Tuesday, June 21, 2022 11:58
> *To:* Kamailio \(SER\) - Users Mailing List 
> *Subject:* Re: [SR-Users] Finding advertised address of socket
>  
> Hello,
> Yes, you can add it in the configuration file, it is the 'socket' ->
> used to set the sending socket for the gateway. It is used for sending
> the SIP traffic as well as OPTIONS keepalives.
>
> Regards
>
> .
> Mathias WOLFF
> Tel : +33 9.72.13.22.62
> Gsm : +33 6.79.59.43.32
> .
> *CONFIDENTIALITE.*
> Cet email (y compris les éventuelles pièces jointes) peut contenir des
> informations confidentielles. Il ne peut être utilisé que pour la
> finalité pour laquelle il a été envoyé. Au cas où il ne vous serait
> pas destiné, merci de le supprimer et d'en avertir l'expéditeur.
> *CONFIDENTIALITY.*
> This email (including any attachments) may contain confidential
> information. It may not be used other than for the purpose for which
> it has been sent. If you are not the intendedrecipient, please delete
> it and notify the sender.
>
>
> Envoyé avec la messagerie sécurisée Proton Mail
> .
>
>
> --- Original Message ---
> Le mardi 21 juin 2022 à 11:53, Tor Petterson
>  a écrit :
>
>> Hi
>>
>> I have a setup where Kamailio is connected to several telephony
>> providers using different IP addresses to communicate with them.
>> So I have a socket per provider.
>> I am using the dispatcher module to route calls to the different
>> providers.
>> My question is if there is a way to get the advertised address of the
>> socket chosen by dispatcher?
>> I have a socket pointer in the XAVP, but I can't figure out if it is
>> possible to get the advertised address from it somehow.
>>
>> Thanks in advance.
>> Tor
>
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Finding advertised address of socket

2022-06-21 Thread Mathias WOLFF
Hello,
Yes, you can add it in the configuration file, it is the 'socket' -> used to 
set the sending socket for the gateway. It is used for sending the SIP traffic 
as well as OPTIONS keepalives.
Regards

.
Mathias WOLFF
Tel : +33 9.72.13.22.62
Gsm : +33 6.79.59.43.32
.
CONFIDENTIALITE.
Cet email (y compris les éventuelles pièces jointes) peut contenir des 
informations confidentielles. Il ne peut être utilisé que pour la finalité pour 
laquelle il a été envoyé. Au cas où il ne vous serait pas destiné, merci de le 
supprimer et d'en avertir l'expéditeur.
CONFIDENTIALITY.
This email (including any attachments) may contain confidential information. It 
may not be used other than for the purpose for which it has been sent. If you 
are not the intendedrecipient, please delete it and notify the sender.


Envoyé avec la messagerie sécurisée Proton Mail.

--- Original Message ---
Le mardi 21 juin 2022 à 11:53, Tor Petterson  a 
écrit :


> Hi
> I have a setup where Kamailio is connected to several telephony providers 
> using different IP addresses to communicate with them.
> So I have a socket per provider.
> I am using the dispatcher module to route calls to the different providers.
> My question is if there is a way to get the advertised address of the socket 
> chosen by dispatcher?
> I have a socket pointer in the XAVP, but I can't figure out if it is possible 
> to get the advertised address from it somehow.
> 

> Thanks in advance.
> Tor

publickey - mathias@celea.org - 0x212FDD2D.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] update PAI Header User part

2022-06-21 Thread Patrick Karton
hello is there a cleaner/fastest way to update PAI header user part other than 
using subst

i come up with
subst('/^P-Asserted-Identity:(.*)(sip|sips|tel|tels):([^@]*)@([a-zA-Z0-9.]+)(.*)$/P-Asserted-Identity:\1\2:$var(newPAIUser)@\4\5/ig');

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Finding advertised address of socket

2022-06-21 Thread Daniel-Constantin Mierla
Hello,


if you want to get the socket attribute in the xavp, see the options
that can be set for:


  *
https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.p.xavp_dst_mode


Cheers,
Daniel


On 20.06.22 14:32, Tor Petterson wrote:
> Hi
>
> I have a setup where Kamailio is connected to several telephony
> providers using different IP addresses to communicate with them.
> I am using the dispatcher module to route calls to the different
> providers.
> My question is if there is a way to get the advertised address of the
> socket chosen by dispatcher?
> I have a socket pointer in the XAVP but I can't figure out if it is
> possible to get the advertised address from it somehow.
>
> Thanks in advance.
> Tor
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users