[OpenSIPS-Users] Adding data to a request before relaying it

Anca Vamanu anca at opensips.org
Tue Oct 5 13:28:54 CEST 2010


Hi Najib,

 From failure route you can access also the reply - with the context 
specification in front of the variable name - 
http://www.opensips.org/Resources/DocsCoreVar. By default the message 
that you have access to in failure route is the request.
To send the Invite to another destination just set the $du and do t_relay().

Regards,

-- 
Anca Vamanu
www.voice-system.ro





On 10/05/2010 01:12 PM, Najib Hara wrote:
> Hi,
>
> Probably , the best way is to use 302 replies, but I'm still looking 
> for a way to collect the data from these replies (or from 600 errors). 
> Is there a function or a module who can handle it ?
> I also need to get my INVITEs back so I could insert the collected 
> data in their bodies.  I know that The TM module can duplicate SIP 
> messages in memory, but how to deal with 2 messages at the same time ?
> As a memo, here are the steps:
>
>     * send the received INVITE to a server
>     * get a 302 reply from the server with data on the body
>     * collect the data from the 302 reply
>     * insert data on the INVITE
>     * resend it to the initial destination
>
>
> Thanks
>
> ------------------------------------------------------------------------
> From: lebron_najib at hotmail.com
> To: users at lists.opensips.org
> Date: Fri, 1 Oct 2010 13:24:07 +0000
> Subject: Re: [OpenSIPS-Users] Adding data to a request before relaying it
>
> Thank you Anca, I'm working on it and I'll post the specific part of 
> the routing logic as soon as finished.
>
> ------------------------------------------------------------------------
> From: lebron_najib at hotmail.com
> To: users at lists.opensips.org
> Subject: Adding data to a request before relaying it
> Date: Fri, 1 Oct 2010 08:55:05 +0000
>
> Hi everybody,
>
> I'm a newer in the OpenSIPS world and I'm trying to learn how to use 
> it efficiently.
> I'm working on a project where I have to modify incoming requests 
> before relaying them to their first destination.
> By modifying, I mean sending those requests to a server which will 
> send back messages with the additional data to implement in the requests.
> The next step is to collect those informations from the responses and 
> add them to the initial requests which will be relayed to their 
> initial destination.
> My question is: is OpenSIPS capable of doing this ?
>
> For more detail, here is a scheme.
>
> Thank you in advance for your responses
>
> _______________________________________________ Users mailing list 
> 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/20101005/095ab861/attachment.htm 


More information about the Users mailing list