Jump to content

AMQP notification of calls from Auth by IP device


huwsc90

Recommended Posts

Hi,

 

I'm using Kazoo 4.3 (4.3.165 for Kazoo Apps, 4.3.140 for Kazoo Core).

 

When receiving an incoming call from an Auth by IP device after a period of inactivity from that device, Kazoo seems to only send a route.req AMQP message with a routing key of "route.req.audio.{AUTH_BY_IP_DEVICE_IP}", whereas all subsequent calls from that device result in two AMQP route.req messages, the one mentioned previously, plus "route.req.audio.{ACCOUNT_ID}".

 

My app is only subscribing for route.req messages to a particular account ID, which means when only the first message is sent by Kazoo, my app doesn't get notified, so can't answer the call and instead the caller receives a 604 Nope nope nope. Is there any reason for this behaviour? It seems strange that it only happens when nothing has been received from that device in a while, like Kazoo has a static registration that expires after inactivity?

 

Thanks,

Huw

Link to comment
Share on other sites

  • 2600Hz Employees

@huwsc90 Hi!

One guess is that the auth-by-ip information has left the cache and has to be pulled from your database. This process is delayed long enough that the reorder app's response of Nope Nope Nope is received first. Subsequent calls then work as expected as the cache is primed.

Compare logs of the first call that fails against the subsequent call that succeeds to see where the slowdown might be (thinking stepswitch_inbound and related processing to resolve IP to account).

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...