Hey Daniel, Many thanks for so fast answer. I think sleep() will still help me. Will experiment it here.
Cheers, DanB On Tue, Dec 14, 2010 at 9:09 PM, Daniel-Constantin Mierla <mico...@gmail.com> wrote: > Hello, > > On 12/14/10 6:33 PM, Dan-Cristian Bogos wrote: >> >> Hey Guys, >> >> I came in need to delay 200 OK sent to originator, I know that is not >> the job of a proxy (not a perfect world though), so if anyone think >> that should be in theory at least possible with kamailio/sr, I would >> appreciate any tip. >> >> Scenario: User A -> Proxy -> User B. >> User B will send 183 and then 200 to the User A. >> >> I would need to delay the 200 OK sent to User A with a number of >> seconds, but still send ACK to User B to "fake" the receiving of the >> message in time. When the ACK for the delayed 200 OK comes back from >> User A, I would simply absorb it. >> >> Would that be possible with kamailio/sr without using an external >> application? > > delaying of any kind of sip message is possible with sleep() function from > cfgutils module. Beware it is blocking operation. > > Sending ACK is not something you can do out of the box. There is > uac_req_send() from uac module, but it is about sending out of dialog > requests. However, writing a function for config to send in-dialog request > would not be that complex. > > Cheers, > Daniel > > -- > Daniel-Constantin Mierla > Kamailio (OpenSER) Advanced Training > Jan 24-26, 2011, Irvine, CA, USA > http://www.asipto.com > > _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users