<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 07.11.17 15:51, Abdul Basit wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGQG5MaJuEQq3kLopnPaheprrbY-w4z=hCUvFDRmbSK+sF6u4g@mail.gmail.com">
<div dir="ltr">
<div>Hi list,<br>
<br>
I am configuring CGRateS with kamailio 4.4 using deb packages
on debian 8.<br>
<br>
</div>
I am facing a issue while processing <span
style="font-family:monospace,monospace">event_route[dialog:start]</span>
for answering call INVITE at<br>
<span style="font-family:monospace,monospace">evapi_async_relay("{\"event\":\"CGR_CALL_START\",<br>
</span>
<div><br>
<span style="font-family:monospace,monospace"></span></div>
<div><span style="font-family:arial,helvetica,sans-serif">with
following error</span><br>
</div>
<div><br>
<span
style="color:rgb(0,0,0);font-family:Consolas,"Lucida
Console",monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(240,247,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">/usr/sbin/kamailio[13887]:
ERROR: evapi [evapi_mod.c:288]: w_evapi_async_relay():
failed to suspend request processing</span><br>
</div>
<div><br>
</div>
<div>However, after discussion with Dan on IRC i replaced
function <span style="font-family:monospace,monospace">evapi_async_relay</span>()
with <span style="font-family:monospace,monospace">evapi_relay</span>()
resolved the issue.</div>
<div><br>
</div>
<div>Whats causing this error?</div>
<div>Can anyone suggest some way out for keep using <span
style="font-family:monospace,monospace">evapi_async_relay</span>?</div>
</div>
</blockquote>
event_route[dialog:start] is executed when 200ok response for INVITE
is received, so there is no SIP request to suspend at that time.
Using evapi_relay() should be fine in my opinion here.<br>
<br>
There is support to suspend routing of sip responses as well, but
not sure if it is really useful in this case, you just need to
notify cgrates that the call has started, no reason to wait for a
reply from cgrates before forwarding the sip response.<br>
<br>
Note that evapi_relay() is not blocking the sip routing, so it terms
of performances is in pair with async option.<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>