You means say i just need to add following in in top of config? route {
... ... create_dialog(); $dlg_val(customer_name) = $var(name); On Thu, Mar 5, 2015 at 11:46 AM, Liviu Chircu <li...@opensips.org> wrote: > 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 <li...@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@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > > > _______________________________________________ > Users mailing > listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users