Hello all,
I have a new problem. I am using Open SER (1.3.3 tls) as a presence server with an Open IMS Core. On the event presence, the OpenIMS server redirects to OpenSER. I am also using UCTImsclient for testing. The registration is ok, the messages also. The problem is the presence: it works once and after that it doesn't work all the day.
Have anyone tested all theses?
Thanks for your help,
Loredana
Hello,
On 03/17/2009 10:44 AM, Luntras Loredana wrote:
Hello all,
I have a new problem. I am using Open SER (1.3.3 tls) as a presence server with an Open IMS Core. On the event presence, the OpenIMS server redirects to OpenSER. I am also using UCTImsclient for testing. The registration is ok, the messages also. The problem is the presence: it works once and after that it doesn’t work all the day.
Have anyone tested all theses?
Thanks for your help,
I suggest you use kamailio (openser) 1.5.0 as presence server, it has more features and was better tested: http://www.kamailio.org/mos/view/Download/
Then watch the sip traffic and see what happens that you do not get presence updates (you can use ngrep or wireshark).
Cheers, Daniel
Thanks a lot for your help. I have installed kamailio 1.5.0 and the first time I used it it works. Since then I've tried a lot of time, but it doesn't work any more. The error that I have right now is "Unresolvable destination (476/TM) (for SUBSCRIBE)" And the same for publish.
Regards, Loredana
-----Original Message----- From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Sent: Tuesday, March 17, 2009 9:50 AM To: Luntras Loredana Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Using OpenSer as presence server, with OpenIMS and UCT client
Hello,
On 03/17/2009 10:44 AM, Luntras Loredana wrote:
Hello all,
I have a new problem. I am using Open SER (1.3.3 tls) as a presence server with an Open IMS Core. On the event presence, the OpenIMS server redirects to OpenSER. I am also using UCTImsclient for testing.
The registration is ok, the messages also. The problem is the presence: it works once and after that it doesn't work all the day.
Have anyone tested all theses?
Thanks for your help,
I suggest you use kamailio (openser) 1.5.0 as presence server, it has more features and was better tested: http://www.kamailio.org/mos/view/Download/
Then watch the sip traffic and see what happens that you do not get presence updates (you can use ngrep or wireshark).
Cheers, Daniel
Hi,
Since then I've tried a lot of time, but it doesn't work any more. The error that I have right now is "Unresolvable destination (476/TM) (for SUBSCRIBE)" And the same for publish.
I guess - as the error message says - that the SUBSCRIBE request uses a target address (R-URI or Route header field) with an address which cannot be resolved by DNS. Without a trace-file I cannot say more.
The next question then would also bo: which of the involved network nodes causes the error?
Franz
Thank you, Franz.
In fact I have the Open IMS and Open SER.5 installed on different servers. Maybe this is the problem. So I installed them both on the same server. So, I have on the same server: OpenIMS(4060), OpenSER1.3(:5067) and OpenSER(Kamailio1.5)(:5065). I don't understand any more: for the new kamailio I have 3 different messages: 600 busy everywhere; 403 forbidden to subscribe and 408 time out. I had done a test for seeing if I have the same thing as before with OpenSER1.3. So I changed the redirection server address in the OpenIMS so that it points to OpenSER 1.3. The firs time I registered it worked. I put here 2 screen shots which show that. After that, it does not work any more . I have the next errors in the terminal of UCTimsclient:
/*****************errors**************************************/ Error building presence.winfo subscribe refresh request. Refreshing presence subscription for buddy: sip:bruno@open-ims.test DID: 9 Error building subscription refresh Refreshing presence subscription for buddy: sip:alice@open-ims.test DID: 8 Error building subscription refresh Refreshing presence subscription for buddy: sip:loredana@open-ims.test DID: 10 Error building subscription refresh Refreshing subscription to winfo. Error building presence.winfo subscribe refresh request. /******************errors*********************************/
When I change so that OpenIMS points to the new kamailio, I have the error: 403, 408 and 600. There is also a Wireshark screenshot "kamailio" which show that.
I really don't know what to test here, any more.
-----Original Message----- From: Franz Edler [mailto:franz-edler@aon.at] Sent: Thursday, March 19, 2009 5:42 AM To: Luntras Loredana; 'Daniel-Constantin Mierla' Cc: users@lists.kamailio.org Subject: RE: [Kamailio-Users] Using OpenSer as presence server,with OpenIMS and UCT client
Hi,
Since then I've tried a lot of time, but it doesn't work any more. The error that I have right now is "Unresolvable destination (476/TM) (for SUBSCRIBE)" And the same for publish.
I guess - as the error message says - that the SUBSCRIBE request uses a target address (R-URI or Route header field) with an address which cannot be resolved by DNS. Without a trace-file I cannot say more.
The next question then would also bo: which of the involved network nodes causes the error?
Franz
Hi again,
I'll tell you what I've done. I have copied the < Routing Logic > from the openser(1.3).conf and I put into Kamailio.conf. In the new Kamailio there are lots of "route" that I do not use. The one I copied is very simple, only for what I need for now:
Now it works. But I can not deregister and register again with the uctimsclient. I have to quit the client and register again. Once register, we can publish new status and the publish and subscribes are ok.
Please let me know if you have other ideas. Thanks,
Loredana
From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Luntras Loredana Sent: Thursday, March 19, 2009 10:47 AM To: Franz Edler; Daniel-Constantin Mierla Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Using OpenSer as presence server,with OpenIMS and UCT client
Thank you, Franz.
In fact I have the Open IMS and Open SER.5 installed on different servers. Maybe this is the problem. So I installed them both on the same server. So, I have on the same server: OpenIMS(4060), OpenSER1.3(:5067) and OpenSER(Kamailio1.5)(:5065). I don't understand any more: for the new kamailio I have 3 different messages: 600 busy everywhere; 403 forbidden to subscribe and 408 time out. I had done a test for seeing if I have the same thing as before with OpenSER1.3. So I changed the redirection server address in the OpenIMS so that it points to OpenSER 1.3. The firs time I registered it worked. I put here 2 screen shots which show that. After that, it does not work any more . I have the next errors in the terminal of UCTimsclient:
/*****************errors**************************************/ Error building presence.winfo subscribe refresh request. Refreshing presence subscription for buddy: sip:bruno@open-ims.test DID: 9 Error building subscription refresh Refreshing presence subscription for buddy: sip:alice@open-ims.test DID: 8 Error building subscription refresh Refreshing presence subscription for buddy: sip:loredana@open-ims.test DID: 10 Error building subscription refresh Refreshing subscription to winfo. Error building presence.winfo subscribe refresh request. /******************errors*********************************/
When I change so that OpenIMS points to the new kamailio, I have the error: 403, 408 and 600. There is also a Wireshark screenshot "kamailio" which show that.
I really don't know what to test here, any more.
-----Original Message----- From: Franz Edler [mailto:franz-edler@aon.at] Sent: Thursday, March 19, 2009 5:42 AM To: Luntras Loredana; 'Daniel-Constantin Mierla' Cc: users@lists.kamailio.org Subject: RE: [Kamailio-Users] Using OpenSer as presence server,with OpenIMS and UCT client
Hi,
Since then I've tried a lot of time, but it doesn't work any more. The error that I have right now is "Unresolvable destination (476/TM) (for SUBSCRIBE)" And the same for publish.
I guess - as the error message says - that the SUBSCRIBE request uses a target address (R-URI or Route header field) with an address which cannot be resolved by DNS. Without a trace-file I cannot say more.
The next question then would also bo: which of the involved network nodes causes the error?
Franz
Hello to all I enabled the Kamailio acc modules but it isn't writing to "acc" or "missed_calls" table. How can I see in real time the SQL querys that Kamailio is sending to Mysqld? Here are some parts of my configuration file.
(...) loadmodule "db_mysql.so" loadmodule "acc.so"
(...)
# ----- acc params ----- /* what sepcial events should be accounted ? */ modparam("acc", "early_media", 1) modparam("acc", "report_ack", 1) modparam("acc", "report_cancels", 1) modparam("acc", "detect_direction", 0) /* account triggers (flags) */ modparam("acc", "failed_transaction_flag", 3) modparam("acc", "log_flag", 1) modparam("acc", "log_level", 2) modparam("acc", "log_missed_flag", 2) modparam("acc", "log_extra", "src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd") /* uncomment the following lines to enable DB accounting also */ modparam("acc", "db_flag", 1) modparam("acc", "db_missed_flag", 2) modparam("domain", "db_url", "mysql://dbusername:dbpass@localhost/openser") modparam("acc", "db_extra","src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
Flags 1 and 2 are in the configuration (the same way as in the sample that comes with Kamailio)
(...)
if (has_totag()) { # sequential request withing a dialog should # take the path determined by record-routing if (loose_route()) { if (is_method("BYE")) { setflag(1); # do accounting ... setflag(3); # ... even if the transaction fails } route(1); (...)
# account only INVITEs if (is_method("INVITE")) { setflag(1); # do accounting }
So, if accounting is enabled and the flags in the right place... why is the "acc" table still empty? Thanks Regards Joao Pereira
Hello,
have you set db_url for acc module?
modparam("acc", "db_url", "mysql://dbusername:dbpass@localhost/openser")
Cheers, Daniel
On 03/19/2009 05:55 PM, Joao Gomes Pereira wrote:
Hello to all I enabled the Kamailio acc modules but it isn't writing to "acc" or "missed_calls" table. How can I see in real time the SQL querys that Kamailio is sending to Mysqld? Here are some parts of my configuration file.
(...) loadmodule "db_mysql.so" loadmodule "acc.so"
(...)
# ----- acc params ----- /* what sepcial events should be accounted ? */ modparam("acc", "early_media", 1) modparam("acc", "report_ack", 1) modparam("acc", "report_cancels", 1) modparam("acc", "detect_direction", 0) /* account triggers (flags) */ modparam("acc", "failed_transaction_flag", 3) modparam("acc", "log_flag", 1) modparam("acc", "log_level", 2) modparam("acc", "log_missed_flag", 2) modparam("acc", "log_extra", "src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd") /* uncomment the following lines to enable DB accounting also */ modparam("acc", "db_flag", 1) modparam("acc", "db_missed_flag", 2) modparam("domain", "db_url", "mysql://dbusername:dbpass@localhost/openser") modparam("acc", "db_extra","src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
Flags 1 and 2 are in the configuration (the same way as in the sample that comes with Kamailio)
(...)
if (has_totag()) { # sequential request withing a dialog should # take the path determined by record-routing if (loose_route()) { if (is_method("BYE")) { setflag(1); # do accounting ... setflag(3); # ... even if the transaction fails } route(1); (...)
# account only INVITEs if (is_method("INVITE")) { setflag(1); # do accounting }
So, if accounting is enabled and the flags in the right place... why is the "acc" table still empty? Thanks Regards Joao Pereira
On Thursday 19 March 2009, Joao Gomes Pereira wrote:
I enabled the Kamailio acc modules but it isn't writing to "acc" or "missed_calls" table. How can I see in real time the SQL querys that Kamailio is sending to Mysqld? [..]
Hi Joao,
this is possible without any involvment of kamailio: http://dev.mysql.com/doc/refman/5.1/en/query-log.html
Cheers,
Henning
I'll tell you what I've done. I have copied the < Routing Logic > from the openser(1.3).conf and I put into Kamailio.conf. In the new Kamailio there are lots of "route" that I do not use. The one I copied is very simple, only for what I need for now:
Now it works. But I can not deregister and register again with the uctimsclient. I have to quit the client and register again. Once register, we can publish new status and the publish and subscribes are ok.
That's is obviously because you have no logic for handling REGISTER requests within your Routing logic.
Regards Franz
Thanks, Franz.
I have another question. I'm not sure if Kamailio contains a RLS. Or do I have to use Xcap server?
Regards, Loredana
-----Original Message----- From: Franz Edler [mailto:franz-edler@aon.at] Sent: Saturday, March 21, 2009 6:55 AM To: Luntras Loredana Cc: users@lists.kamailio.org Subject: RE: [Kamailio-Users] Using OpenSer as presence server,with OpenIMS and UCT client
I'll tell you what I've done. I have copied the < Routing Logic > from the openser(1.3).conf and I put into Kamailio.conf. In the new
Kamailio
there are lots of "route" that I do not use. The one I copied is very simple, only for what I need for now:
Now it works. But I can not deregister and register again with the uctimsclient. I have to quit the client and register again. Once register, we can publish new status and the publish and subscribes are ok.
That's is obviously because you have no logic for handling REGISTER requests within your Routing logic.
Regards Franz