Hi, I have found writing and reading these dlg vars work fine with the good proxies but the buggy ones (which have the Opensips IP as the RURI) that I need to use this method with I can't read the dlg values so it appears the dialog is not being matched or something
--- On Mon, 17/10/11, Nauman Sulaiman <[email protected]> wrote: > From: Nauman Sulaiman <[email protected]> > Subject: Re: [OpenSIPS-Users] Rewriting destination uri > To: "OpenSIPS users mailling list" <[email protected]> > Date: Monday, 17 October, 2011, 12:12 > Hi, > > I have tried using dialog vals to store the contact ip in > on_reply_route > the create dialog call succeeds, so is there anything else > you need to set up to use dialog vals, do you need to use > the Database?? > > if (status=~"(180)|(183)|2[0-9][0-9]") > { > > > store_dlg_value("contact_ip","$si"); > > store_dlg_value("contact_port","$sp"); > } > > } > > but then i can't access them in the sequential route for > the ACK > after loose_route return true > > route[2] > { > ... > > fetch_dlg_value("contact_ip","$var(ip)"); > > fetch_dlg_value("contact_port","$var(port)"); > > xlog("New ACK destination= $var(ip) > \n"); > xlog("New > port= $var(port) \n"); > > > } > --- On Fri, 14/10/11, Nauman Sulaiman <[email protected]> > wrote: > > > From: Nauman Sulaiman <[email protected]> > > Subject: Re: [OpenSIPS-Users] Rewriting destination > uri > > To: "OpenSIPS users mailling list" <[email protected]> > > Date: Friday, 14 October, 2011, 20:57 > > Hi, > > > > Thanks, yes its a buggy proxy. We won't have the > > scenario > > > > UAC ---- ProxyA ---- OpenSIPS ---- ProxyB > > > > so how best to rewrite the $du in this case > > > > Regards > > > > --- On Fri, 14/10/11, Vlad Paiu <[email protected]> > > wrote: > > > > > From: Vlad Paiu <[email protected]> > > > Subject: Re: [OpenSIPS-Users] Rewriting > destination > > uri > > > To: [email protected] > > > Date: Friday, 14 October, 2011, 10:19 > > > Hello, > > > > > > First of all, why does the 200 OK have in R-URI > the > > > OpenSIPS IP ? > > > It should have as R-URI the Contact URI in the > 200 OK > > ? Are > > > you dealing > > > with a buggy client/proxy behind OpenSIPS or is > there > > some > > > other kind of > > > miss-configuration ? > > > The solution that you are trying to achieve is > not > > generic, > > > because it > > > would not work > > > in case of > > > > > > UAC ---- ProxyA ---- OpenSIPS ---- ProxyB > > > > > > Regards, > > > > > > Vlad Paiu > > > OpenSIPS Developer > > > > > > > > > On 10/14/2011 01:02 AM, Nauman Sulaiman wrote: > > > > Hi, > > > > > > > > We have the following set up , inbound call > to > > UAC via > > > Opensips > > > > > > > > UAC<--------- Opensips<-------------- > Proxy > > 1 > > > > INVITE > > > INVITE > > > > > > > > --------> > > > > > > -----------------> > > > > 200OK > > > > > > 200OK > > > > > > > > > > <------------------ > > > > > > > ACK RURI= > > > Opensips IP > > > > > > > > > > > > We would like to set the $du variable after > > Opensips > > > receives the > > > > final ACK to be IP:port of the UAC. > > > > > > > > > > > > When Opensips receives the 200OK from the > UAC is > > it > > > possible to store the received ip and port > somewhere > > so we > > > can rewrite the $du when we receive the ACK.How > to do > > this? > > > Then how to rewrite the $du > > > > > > > > Currently the ACK is not routed back to the > UAC > > as the > > > RURI of the ACK has Opensips address. > > > > > > > > Regards > > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > _______________________________________________ > 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
