Hello all
How can i generate an INVITE from OpenSER. That means that Openser make the role of UAC. Who have an idea for this pb.
Thanks Regards Aladin
2009/7/16 ALAEDDINE abbech alasupcom@yahoo.fr:
Hello all
How can i generate an INVITE from OpenSER. That means that Openser make the role of UAC. Who have an idea for this pb.
Read the documentation please.
Can you try uac_req_send() from UAC module ? http://www.kamailio.org/docs/modules/1.5.x/uac.html#id2467913
-pascal
On Thu, Jul 16, 2009 at 5:02 PM, ALAEDDINE abbech alasupcom@yahoo.frwrote:
Hello all
How can i generate an INVITE from OpenSER. That means that Openser make the role of UAC. Who have an idea for this pb.
Thanks Regards Aladin
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 17.07.2009 14:14 Uhr, Pascal Maugeri wrote:
Can you try uac_req_send() from UAC module ? http://www.kamailio.org/docs/modules/1.5.x/uac.html#id2467913
Another option to initiate requests is via MI. TM module exports a mi command for this purpose: http://kamailio.org/docs/modules/1.5.x/tm.html#id2531975
Cheers, Daniel
-pascal
On Thu, Jul 16, 2009 at 5:02 PM, ALAEDDINE abbech <alasupcom@yahoo.fr mailto:alasupcom@yahoo.fr> wrote:
Hello all How can i generate an INVITE from OpenSER. That means that Openser make the role of UAC. Who have an idea for this pb. Thanks Regards Aladin _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
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
On 10.08.2009 17:21 Uhr, karhu wrote:
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...
note that this function works only for established dialogs -- so you have to track the call with dialog module.
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
Probably the filter is not right. Watch all the network interfaces you have.
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 !!
You can have a body with the uac_req_send(), see the readme of the uac module. But probably won't help you much, since kamailio does not handle media.
Cheers, Daniel
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
note that this function works only for established dialogs -- so you have to track the call with dialog module.
Hi, I've been trying to track established call to use dlg_bye("callee") function. It works but i had to track it with : if (dlg_get("callID", "from_tag", "to_tag") and has you know call ID f_tag and t_tag are changing every time a call is established.So i would like to know how can i track a call dynamically ?
I've been trying to play with set_dlg_profile("caller", "$fu") but i don't get the point of this function..
Thanks.
karhu wrote:
note that this function works only for established dialogs -- so you have to track the call with dialog module.
Hi, I've been trying to track established call to use dlg_bye("callee") function. It works but i had to track it with : if (dlg_get("callID", "from_tag", "to_tag") and has you know call ID f_tag and t_tag are changing every time a call is established.So i would like to know how can i track a call dynamically ?
I've been trying to play with set_dlg_profile("caller", "$fu") but i don't get the point of this function..
You need to pick some constant that doesn't change, or changes in ways that are appropriate to the sort of matching you would like to do. $fu (the From URI) is just an example. It is likely you have no use for the From URI whatsoever in your tracking, so pick something else.
You need to pick some constant that doesn't change, or changes in ways that are appropriate to the sort of matching you would like to do. $fu (the From URI) is just an example. It is likely you have no use for the From URI whatsoever in your tracking, so pick something else.
Thanks Alex. I don't get everything but let's use exemple..let me know if i'm in a wrong way.. First let's do easy stuff, by sending Bye to a user on 10.10.10.2 domain.
Following script will be in Kamailio.cfg :
if (dlg_get("$ci", "$ft", "$tt") && to_uri=~"sip:.+@10.10.10.2") { dlg_bye("callee"); }
if (dlg_get("$ci", "$ft", "$tt") && from_uri=~"sip:.+@10.10.10.2") { dlg_bye("caller"); }
That should track the call in a dynamic way if i get it right!?
Now let's imagine Alice and Bob(on 10.10.10.2 domain) are in call. How can i do to have a SIP Bye request on Bob side... That's not clear in my head, and my poor english doesn't help that much :s
Best regards,
karhu
karhu wrote:
I've been trying to play with set_dlg_profile("caller", "$fu") but i don't get the point of this function..
The point of the function is to associate the current dialog with a profile.
Think of a profile as a "container" of dialogs open at any given moment that have a common characteristic; they are united by the profile. The profile name is statically set in the configuration.
In most applications of profiles, you cannot anticipate the appropriate profile criteria. For example, you could create a profile called "globalcalls" and just put all calls going through the system in it. But, if you'd like to be able to count only calls initiated by a particular user, you'd have to use a "key" within that profile - this is like a FROM clause in an SQL SELECT statement.
The second argument to set_dlg_profile() is the key. So, for example, if you have a custom header that contains an account ID for a user, say:
X-Account-ID: 4
Then, you can use that account ID as a key:
set_dlg_profile("callsperaccount", "$hdr(X-Account-Id)");
Then, when you want to see how many calls are up for account ID X, use get_profile_size() with a specific key value:
get_profile_size("callsperaccount", "4", "$var(s:calls_up)");
-- Alex