Thanks Ohad, Samuel. t_replicate worked fine. 

However, I faced one another problem.

If the Via header from UAC contains "rport" parameter,
then, removing Via header before calling t_replicate()
still adds the rport parameter with the value in the
newly added Via from Openser. Also, it doesn't add
"\r\n" to the new Via header, thereby, the next header
field concatanates with the Via header as below:

Here is the REGISTER received from openser using
t_replicate() function: 
-----------------------------------------------------------------------------------------------

Received from 172.16.13.100:5061 (UDP) the following
SIP message
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
REGISTER sip:172..16.13.91:5070 SIP/2.0^M
To: Binh<sip:[EMAIL PROTECTED]>^M
From: SER_4082221001
<sip:[EMAIL PROTECTED]:5061>;tag=1153994489
Via: SIP/2.0/UDP
172.16.13.100:5061;branch=z9hG4bK7be.87b21eb4.0^M
;rport=6527Contact:
<sip:[EMAIL PROTECTED]:5061>^M
Expires: 3600^M
Max-Forwards: 69^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
NOTIFY, MESSAGE, SUBSCRIBE, INFO^M
User-Agent: Open SER User Agent
Content-Length: 0^M
CSeq: 1000 REGISTER^M
Call-ID: 1153994489^M
^M

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

--------------------------------------

Note that Original "Via" is removed using remove_hf()
function before calling t_replicate. But, still
"rport" parameter is appended to the new "Via" header.
Also, the next header "Contact" is concatanated with
Via. 

Please advice how to avoid "rport" being appended?

Thanks,
Vivek
--- samuel <[EMAIL PROTECTED]> wrote:

> You can also try to do it outside the config, using
> the UNIX/FIFO
> interface and the t_uac "function".
> 
> just my 2 cents..
> SAmuel.
> 
> 2006/7/27, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]>:
> > What about t_replicate?
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Vivek Bhat
> > > Sent: Thursday, July 27, 2006 1:22 AM
> > > To: [email protected]
> > > Subject: [Users] Query on Registration
> > >
> > > Hi,
> > >
> > > I am trying to implement Third-Party
> registration in
> > > IMS environment using OPENSER as S-CSCF. Here is
> what
> > > I want to do:
> > >
> > > UAC
> > >
> >
>
........................................................................
> > ..
> > > ...........S-CSCF
> > > (Openser)
> > >
> > >                                      REGISTER
> > >
> > > ----------------------------------->
> > >
> > >                                       200 OK
> > >
> > > <--------------------------------------
> > >
> > > This part is working fine.
> > >
> > > Now, S-CSCF sends separate REGISTER to
> Application
> > > Server (AS) and needs to get the response. But,
> this
> > > response should NOT be sent to UAC.
> > >
> > > S-CSCF
> > >
> >
>
........................................................................
> > ..
> > > .
> > >  AS
> > >
> > >                                        REGISTER
> > >
> > > ------------------------------------->
> > >
> > >                                       Response
> > > ([1-6]xx
> > >
> > > <-----------------------------------------
> > >
> > > I tried to send this REGISTER by removing old
> headers
> > > from  the  first REGISTER received from UAC and
> > > creating my own (using remove_hf and append_hf).
> Also,
> > > I just removed the old "via" header, and Openser
> > > automatically added new Via header with  openser
> ip
> > > address.
> > >
> > > However, when AS sends the response, S-CSCF
> forwards
> > > this response to UAC even though Via header does
>   NOT
> > > contain    the UAC IP address. Why is that? How
> to
> > > stop relaying the  any  response received from
> AS to
> > > UAC? Or else, is it possible to create a new
> REGISTER
> > > request from OpenSER?
> > >
> > > Thanks,
> > > Vivek
> > >
> > >
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > > http://mail.yahoo.com
> > >
> > > _______________________________________________
> > > Users mailing list
> > > [email protected]
> > >
> http://openser.org/cgi-bin/mailman/listinfo/users
> >
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to