[Kamailio-Users] How to change request uri with Header value?
Daniel-Constantin Mierla
miconda at gmail.com
Fri Feb 27 22:14:17 CET 2009
On 02/27/2009 10:55 PM, Ramu wrote:
> Hi,
>
> For some reason it doesn't meet my requirement.
>
> Am able to change request uri with To header values
this is single operation:
$ru = $tu;
no need to mess with avpops module.
I didn't understood from your email if you still have an issues, and if
yes, what is that.
Cheers,
Daniel
> as follows:
>
> avp_pushto("$ruri/username", "$tU");
> avp_pushto("$ruri/domain","$td");
> avp_delete("*");
>
> Then doing a lookup("location")
>
> It is working fine.
>
> On Thu, Feb 26, 2009 at 2:36 PM, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
> Hello,
>
>
> On 02/26/2009 09:25 AM, LetMeKnow wrote:
>
> Hi, Ramu Garu,
> You have use avpops module and use pseudo variables,
> http://kamailio.org/dokuwiki/doku.php/pseudovariables:1.4.x
>
> no need for avpops module, using pseudo-variables is just enough
> and is as simple as:
>
> $ru = $tu;
>
> From the example I understood you want to replace request uri with
> To header uri.
>
> Cheers,
> Daniel
>
>
>
>
>
> Thanks &Regards
> Ravi Prakash Sunkara
> VoIP Architect & JAVA-SIP Developer
> +91-9999882776
>
>
> 2009/2/26 Ramu <contactramu at gmail.com
> <mailto:contactramu at gmail.com> <mailto:contactramu at gmail.com
> <mailto:contactramu at gmail.com>>>
>
>
> Hi All,
>
> I have situation where I need to change the request uri with To
> header value.
>
> Scenario:
>
> OpenServ will receive INVITE as follows
> INVITE sip:2000 at open-ser-ip SIP/2.0.
> To: "2000"<sip:2000 at sip.mydomain.com
> <mailto:sip%3A2000 at sip.mydomain.com>
> <mailto:sip%3A2000 at sip.mydomain.com
> <mailto:sip%253A2000 at sip.mydomain.com>>>.
>
>
> Now I would like to change the request uri as follows:
> INVITE sip:2000 at sip.mydomain.com
> <mailto:sip%3A2000 at sip.mydomain.com>
> <mailto:sip%3A2000 at sip.mydomain.com
> <mailto:sip%253A2000 at sip.mydomain.com>> SIP/2.0.
>
> To: "2000"<sip:2000 at sip.mydomain.com
> <mailto:sip%3A2000 at sip.mydomain.com>
> <mailto:sip%3A2000 at sip.mydomain.com
> <mailto:sip%253A2000 at sip.mydomain.com>>>.
>
>
> and will do a lookup location.
>
> Ramu
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org <mailto:Users at lists.kamailio.org>
> <mailto:Users at lists.kamailio.org
> <mailto:Users at lists.kamailio.org>>
>
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org <mailto:Users at lists.kamailio.org>
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com
>
>
>
>
> --
> Ramu
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the Users
mailing list