[OpenSIPS-Users] variable info in dlg_list_ctx

Satish Patel satish.txt at gmail.com
Thu Mar 5 17:39:34 CET 2015


Thanks Liviu,

Where should i put this variable in script? I have following code, should i
before it create dialog?


 if (has_totag()) {
                # sequential request withing a dialog should
                # take the path determined by record-routing
                if (loose_route() || match_dialog())  {
                        if ($DLG_status!=NULL && !validate_dialog() ) {
                                #xlog(" in-dialog bogus request \n");
                                fix_route_dialog();
                         } else {
                                 #xlog(" in-dialog valid request - $DLG_dir
!\n");
                                 fix_route_dialog();
                        }


On Thu, Mar 5, 2015 at 11:32 AM, Liviu Chircu <liviu at opensips.org> wrote:

>  Hello Satish,
>
> You can use dialog-persistent variables [1]. For example,
> $dlg_var(customer_name) = $var(name);
>
> [1] : http://www.opensips.org/html/docs/modules/2.1.x/dialog.html#id297182
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 05.03.2015 18:27, Satish Patel wrote:
>
> Hello,
>
>  How do i add customer info in opensipsctl fifo dlg_list_ctx output?
>
>  I want to add custom field ( customer name) in dlg_list_ctx output
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://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/20150305/329cd396/attachment.htm>


More information about the Users mailing list