I will have to generate an INVITE later on so i am using this topic to ask you something. I'm working on having in one side a sequence (BYE + (re-INVITE+ newSDP)). The new SDP will have some more media parameters than the initial one.
I have been reading documentation, and it seems there is an issue to generate a bye, by using :
dlg_bye(side) function from dialog module or uac_req_send() from uac module. I've been trying to use these functions in Kamailio.cfg but it doesn't generate any bye at all on wireshark trace !!
Using dialog module : Informations about caller, callee, callid are well stored into the DB but When i am calling : dlg_bye("callee") no BYE is send to the callee...
Using uac module : $uac_req(method)="BYE"; $uac_req(furi)="sip:bob@10.10.10.2" $uac_req(turi)="sip:alice@10.10.10.2" uac_req_send();
to execute one of these functions i puted them in route[66] with a xlog line and using rtimer module to be sure it is well executed. xlog line is executed but no BYE on wireshark :s
About the INVITE+SDP :
Is it possible to generate an INVITE from the cfg file ? will uac_req_send() can have a body on his method? i guess no !! The only way i found to generate INVITE+SDP is to use MI commands from tm module : t_uac_dlg !! am i right ?
Best regards,
karhu