[OpenSIPS-Users] variable info in dlg_list_ctx

Liviu Chircu liviu at opensips.org
Thu Mar 5 17:46:29 CET 2015


The dialog must be created, otherwise setting your $dlg_val will fail 
(check for "ERROR:core:do_assign: setting PV failed")

The code you posted is for sequential request handling. Normally, the 
dialog should have been created by the time this block is reached.

On 05.03.2015 18:39, Satish Patel wrote:
> 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 
> <mailto: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 Developer
>     http://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 list
>>     Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto: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/20150305/548b8820/attachment.htm>


More information about the Users mailing list