[SR-Users] Maintaining order of messages in a sip dialog on forwarding

Daniel Tryba d.tryba at pocos.nl
Tue Aug 4 16:41:46 CEST 2015


On Tuesday 04 August 2015 15:12:31 Daniel-Constantin Mierla wrote:
> Anyhow, I can't remember any changes in ack processing that could add to
> this. Are you doing accounting of ACK requests?

Ehh, yes, accounting in mysql. That explains +/- 0.01 delay in routing the 
ACK. I think the previously it was myisam with db_insert_mode set to 1.

I see there is now a 2 as value for db_insert_mode, to do this async. Sounds 
like the solution.

> As of a solution, perhaps hash table comes handy again, filter on this
> customer and then of the ack and 2nd invite are received in really short
> time in between, then add some usleep() for invite, that should take the
> cpu from the process handling it.

I'm just usleeping for 5ms on all INVITEs within dialog for now. I'll look 
into the async inserting as the permanent solution.

Once again many thanks for your reply.



More information about the sr-users mailing list