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 <[email protected]> au nom de solarmon 
<[email protected]>
Répondre à : OpenSIPS users mailling list <[email protected]>
Date : vendredi 17 décembre 2021 à 16:37
À : Bogdan-Andrei Iancu <[email protected]>
Cc : OpenSIPS users mailling list <[email protected]>
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 <[email protected]> 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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 

_______________________________________________ Users mailing list 
[email protected] 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to