[OpenSIPS-Users] Custom field in dialog list (dlg_list)

Alain Bieuzent alain.bieuzent at free.fr
Fri Dec 17 15:51:20 UTC 2021


Hi solarmon,

 

the method I use to do what you want is to go through the profiles (https://opensips.org/docs/modules/3.1.x/dialog#func_set_dlg_profile)

 

exemple : 

 set_dlg_profile("Provider",$var(Provider));

 set_dlg_profile("DID",$tU);

 

in dlg_list output we can find information in context part :

 

        "context": {

                "profiles": [

                    {

                        "DID": "32696XXXXXX"

                    },

                    {

                        "Provider": “ORANGE"

                    }

                ]

            }

 

Regards 

De : Users <users-bounces at lists.opensips.org> au nom de solarmon <solarmon at one-n.co.uk>
Répondre à : OpenSIPS users mailling list <users at lists.opensips.org>
Date : vendredi 17 décembre 2021 à 16:37
À : Bogdan-Andrei Iancu <bogdan at opensips.org>
Cc : OpenSIPS users mailling list <users at lists.opensips.org>
Objet : Re: [OpenSIPS-Users] Custom field in dialog list (dlg_list)

 

Hi Bogdan,

 

Yes, correct - I meant the fields available in the output of dlg_list and dlg_list_ctx 

 

I'm using this out to sort/filter/search and wondered whether I could include custom SIP headers that might also be useful for the sort/filter/search.

 

Cheers!

 

On Fri, 17 Dec 2021 at 15:24, Bogdan-Andrei Iancu <bogdan at opensips.org> wrote:

Hi,

By "dialog list" you mean the output of the MI "dlg_list" command ?

Regards,

Bogdan-Andrei Iancu
 
OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021 
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/
On 12/14/21 11:05 AM, solarmon wrote:

Hi,

 

In opensips 2.4.x is there a way to inject a custom field into the dialog list? For example, inject a custom SIP header into it?

 

Thank you!



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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211217/ffc02321/attachment.html>


More information about the Users mailing list