[OpenSIPS-Users] rabbitMq_publish (async ?)

Răzvan Crainea razvan at opensips.org
Thu Feb 2 11:22:21 UTC 2023


rabbitmq_publish currently only runs in blocking mode, you cannot make 
async requests with it. Unless the command is async at the protocol 
level, i.e. you are not waiting for the response.

Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 1/17/23 23:30, Wadii ELMAJDI | Evenmedia wrote:
> Hello,
> 
> I am using the new rabbitmq module to send some informations as AMQP 
> messages to a rabbitmq server. Mostly fraud detection + CDR.
> 
> I wanted to know if rabbitmq_publish is considered a blocking function? 
> for example in the case of fraud detection warning, my use case is to 
> publish the message to rabbitmq server and continue the sip routing 
> decision without hanging up the call.
> 
> Should i use the launch statement , or is rabbitmq_publish not a 
> blocking function already ?
> 
> Ex : launch(rabbitmq_publish(...));
> 
> Thank you
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list