<div dir="ltr"><div><br></div>I've find out that the desired function has been exported via API to other modules here (I am using kamailio source from tag 4.3.5):<div><br></div><div><a href="https://github.com/kamailio/kamailio/blob/4.3/modules/uac/api.h#L8">https://github.com/kamailio/kamailio/blob/4.3/modules/uac/api.h#L8</a><br></div><div><br></div><div><br></div><div>The function obviously didn't have any arguments so how should 'create' the SIP message I want to send from my custom module? In the kamailio.cfg (see previous email) there is need to create some pseudo-variable which this function parses automatically but I am not sure how I can create such a pseudo-variable in custom module and then pass it somehow to exported function (<a href="https://github.com/kamailio/kamailio/blob/4.3/modules/uac/uac_send.c#L758">https://github.com/kamailio/kamailio/blob/4.3/modules/uac/uac_send.c#L758</a>).</div><div><br></div><div>`_uac_req` which seems to be used in `uac_send` seems to be static and inaccessible from another modules (<a href="https://github.com/kamailio/kamailio/blob/4.3/modules/uac/uac_send.c#L75">https://github.com/kamailio/kamailio/blob/4.3/modules/uac/uac_send.c#L75</a>).</div><div><br></div><div><br></div><div>Any ideas?</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 16, 2016 at 8:35 PM, Cockhootec Yahrabee <span dir="ltr"><<a href="mailto:cockootec@gmail.com" target="_blank">cockootec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have found out that the UAC module can be used to send SIP messages from within the kamailio config file.<div><br></div><div><a href="http://www.kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_req_send()" target="_blank">http://www.kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_req_send()</a><br></div><div><br></div><div>I am wondering if it is possible to use these functions from within my custom module which I am developing? I am not sure how can I create pseudo variables within the module.</div><div><br></div><div><br></div><div>Thanks a lot for any help.</div></div>
</blockquote></div><br></div></div>