Re: [SR-Users] Unable to use json module

2016-02-21 Thread ycaner

  

  
  
Hello; 
      i remembered that problem. There is a problem with json
  version news or olds which one i cant remember.you should install
  json version as mentioned. i dont get any error with this version. 

22.02.2016 09:40 tarihinde Sunil More
  [via SIP Router] yazdı: 


  Tried,


same error while installation. upon completion of
  installation still cant use json module. 
  
  

  
Thanking You, 
  Sunil More 
  Ph : 9503338275 
  


On Wed, Feb 17, 2016 at 12:28 PM,
  ycaner < [hidden
  email] > wrote: 
  Hello; 
my kamailio is kamailio 4.4.0-pre0 (x86_64/linux) on Centos
6.6 and json 
module is installed that useful. Could you reinstall json
and jansson libs 
again. 
json-c.x86_64                          0.11-12.el6 
@base 
json-c-devel.x86_64                    0.11-12.el6 
@base 




-- 
View this message in context: 
http://sip-router.1086192.n5.nabble.com/Unable-to-use-json-module-tp145788p145819.html
 
Sent from the Users mailing list archive at Nabble.com. 

___ 
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list 
[hidden
  email] 
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users 
  


  
  
  ___
  
  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
  list
  
  [hidden email] 
  
  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users 
  
  
  
  
If you reply to this email, your
  message will be added to the discussion below: 

http://sip-router.1086192.n5.nabble.com/Unable-to-use-json-module-tp145788p145914.html
 
  
  
To unsubscribe from Unable to use json module, click
  here . 
NAML  


-- 
  
  
  

  

  

  

  



yasin-imza-2014.jpg (51K) 





--
View this message in context: 
http://sip-router.1086192.n5.nabble.com/Unable-to-use-json-module-tp145788p145915.html
Sent from the Users mailing list archive at Nabble.com.___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to use json module

2016-02-21 Thread Sunil More
Tried,

same error while installation. upon completion of installation still cant
use json module.

Thanking You,
Sunil More
Ph : 9503338275

On Wed, Feb 17, 2016 at 12:28 PM, ycaner  wrote:

> Hello;
> my kamailio is kamailio 4.4.0-pre0 (x86_64/linux) on Centos 6.6 and json
> module is installed that useful. Could you reinstall json and jansson libs
> again.
> json-c.x86_64  0.11-12.el6
> @base
> json-c-devel.x86_640.11-12.el6
> @base
>
>
>
>
> --
> View this message in context:
> http://sip-router.1086192.n5.nabble.com/Unable-to-use-json-module-tp145788p145819.html
> Sent from the Users mailing list archive at Nabble.com.
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] PUBLISH request receives 404 response, and loops on loopback interface

2016-02-21 Thread Daniel-Constantin Mierla
Hello,


On 22/02/16 07:54, Marrold wrote:
>
>
> On 22 Feb 2016 6:48 am, "Daniel-Constantin Mierla"  > wrote:
> >
> >
> > Hello,
> >
> >
> > for handling publish you have to enable presence services.
> >
>
> Currently I don't want to enable location services. I can drop the
> PUBLISH requests but first I'd like to under stand the reason for the
> loop.
>
> > The looping happens when the domain in the R-URI is pointing to same
> server, but it is not listed as local domain for kamailio. You have to
> add it as alias or use it with domain module.
> >
> > For adding it as alias, add:
> >
> > alias=kamailio.marrold.co.uk 
>
> This is already in the original configuration I posted.
>
>
The capture the traffic on the server and paste it to the mailing list
to see routing addresses:

ngrep -d any -qt -W byline "sip" port 5060

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Installation issues

2016-02-21 Thread Ed Todd
I tried installing the pre-compiled version of 4.3 under Debian and had all 
sorts of problems. I found there were 2 sets of paths involved in 
documentation/procedures plus a reference to a 3rd which caused a complete 
failure when the directory referred to was missing. I ran into more problems 
when I tried to access my server from outside my network (static IP). So I 
thought I’d bite the bullet and install from source. I get to the bit where I 
am creating the database and even more errors: 
  a.. cannot connect to local mysql server 
  b.. kamdbctl.mysql 112: unary operator expected
In one part of the procedure it refers to db_mysql and another to mysql. Is 
there a simple installation guide around anywhere which will help me get around 
all these problems? All I want is a Debian with KAMAILIO running on it!___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] PUBLISH request receives 404 response, and loops on loopback interface

2016-02-21 Thread Marrold
On 22 Feb 2016 6:48 am, "Daniel-Constantin Mierla" 
wrote:
>
>
> Hello,
>
>
> for handling publish you have to enable presence services.
>

Currently I don't want to enable location services. I can drop the PUBLISH
requests but first I'd like to under stand the reason for the loop.

> The looping happens when the domain in the R-URI is pointing to same
server, but it is not listed as local domain for kamailio. You have to add
it as alias or use it with domain module.
>
> For adding it as alias, add:
>
> alias=kamailio.marrold.co.uk

This is already in the original configuration I posted.

Thanks for your assistance

>
> Restart kamailio and try again.
>
> Cheers,
> Daniel
>
>
> On 21/02/16 00:55, Matthew Harrold wrote:
>>
>> Hi all,
>>
>> I am new to Kamailio but have previous experience with Asterisk,
Freeswitch and SIP.
>>
>> I am using a fairly default config file with some sections removed (E.G
NAT) to simplify things, and some extra logging so I can see the way
packets traverse the configuration.
>>
>> Config here - http://pastebin.com/raw/CCgT0C78
>>
>> I have noticed that when a UAC sends a PUBLISH request, Kamailio
immediately responds '404 Not Found' and more worryingly the logs and a
packet capture running on the lo interface indicate it's sending the
PUBLISH request to itself in a loop until it hits the Max-Forwards limit.
>>
>> Publish URI is PUBLISH sip:2...@kamailio.marrold.co.uk;transport=UDP
SIP/2.0
>>
>> I have two questions,
>>
>> 1) Why is this request being sent a 404, when the UAC is in the USRLOC
table?
>> 2) Why is the request looping until Max Forwards is exhausted?
>>
>> Any help appreciated,
>>
>> Marrold
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com
> http://miconda.eu
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] PUBLISH request receives 404 response, and loops on loopback interface

2016-02-21 Thread Daniel-Constantin Mierla

Hello,


for handling publish you have to enable presence services.

The looping happens when the domain in the R-URI is pointing to same
server, but it is not listed as local domain for kamailio. You have to
add it as alias or use it with domain module.

For adding it as alias, add:

alias=kamailio.marrold.co.uk

Restart kamailio and try again.

Cheers,
Daniel

On 21/02/16 00:55, Matthew Harrold wrote:
> Hi all,
>
> I am new to Kamailio but have previous experience with Asterisk,
> Freeswitch and SIP.
>
> I am using a fairly default config file with some sections removed
> (E.G NAT) to simplify things, and some extra logging so I can see the
> way packets traverse the configuration.
>
> Config here - http://pastebin.com/raw/CCgT0C78
>
> I have noticed that when a UAC sends a PUBLISH request, Kamailio
> immediately responds '404 Not Found' and more worryingly the logs and
> a packet capture running on the lo interface indicate it's sending the
> PUBLISH request to itself in a loop until it hits the Max-Forwards limit. 
>
> Publish URI is PUBLISH sip:2...@kamailio.marrold.co.uk
> ;transport=UDP SIP/2.0
>
> I have two questions, 
>
> 1) Why is this request being sent a 404, when the UAC is in the USRLOC
> table?
> 2) Why is the request looping until Max Forwards is exhausted?
>
> Any help appreciated,
>
> Marrold
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] db_cluster.so module and kamctlrc DBHOST= field

2016-02-21 Thread Derek Bolichowski
I hate to reply to myself, but the DNS SRV /DOES/ work now.  I was apparently 
impatient in waiting for my ISP's DNS servers to receive the changes, while 
Google and Level3 DNS were already updated :)

Derek B.

From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
Derek Bolichowski
Sent: February 15, 2016 4:33 PM
To: sr-users@lists.sip-router.org
Subject: [SR-Users] db_cluster.so module and kamctlrc DBHOST= field

Hi there,

New user to Kamailio here. We currently have it up and running in a virtualized 
environment with 1 Kamailio sever, 1 Asterisk server and 1 MySQL server.

I'm currently writing install scripts to make deploying new nodes/servers easy 
and to keep settings the same across the board.  I've chosed to load the 
db_cluster.so module in kamailio.cfg, as we will have 2x MySQL servers in 
master-master replication which will contain the 'kamailio' and 'asterisk' 
tables.

I've just hit a stumbling block - in `kamctlrc`, there is a field called 
`DBHOST=`.  How can I reference my cluster here?

In kamailio.cfg, I simply define DBURL as "cluster//".  What is 
the syntax for 'DBHOST=' in 'kamctlrc'?  Can I reference the cluster? Can I 
have 2 separate DBHOST= lines?

Looking for some guidance on this one.

Thanks,
Derek B.

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to start kamailio

2016-02-21 Thread Derek Bolichowski
Likely running a "kamdbctl create" would have done it as well.   The error you 
highlighted is telling you that a table doesn't exist in the Kamailio database.

Happy to see you found a work-around for this. Enjoy using Kamailio!

Derek Bolichowski
Technician / VoIP Specialist
Empire Communications Inc.
T.F.  888-618-8847
P.  519-737-6668
F.  866-394-1864
E.  serv...@empire-team.com

Sent from my iPhone using Office365

On Feb 21, 2016, at 10:15 AM, sgy mailto:nuc...@163.com>> wrote:

Hi,
I have resolved it. Just run following command before "make all".

command: make include_module="db_mysql"
--
Best Regards,
Shengy

At 2016-02-21 21:55:41, "sgy" mailto:nuc...@163.com>> wrote:
Hi,
Today I download the source codes in version 4.3 by git, and compile and 
install it. I configure the kamctlrc and kamailio.cfg, but I can't start it, 
Please refer to following error.

Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: db_mysql 
[km_dbase.c:124]: db_mysql_submit_query(): driver error on query: Table 
'kamailio.version' doesn't exist (1146)
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db_query.c:132]: db_do_query_internal(): error while submitting query
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db.c:397]: db_table_version(): error in db_query
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db.c:436]: db_check_table_version(): querying version for table location
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: usrloc 
[dlist.c:642]: register_udomain(): error during table version check.
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: registrar 
[reg_mod.c:561]: domain_fixup(): failed to register domain
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[route.c:1154]: fix_actions(): fixing failed (code=-1) at 
cfg:/usr/local/etc/kamailio//kamailio.cfg:647
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[route.c:1154]: fix_actions(): fixing failed (code=-1) at 
cfg:/usr/local/etc/kamailio//kamailio.cfg:649
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: INFO:  
[sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized


--
Best Regards,
Shengy









___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Registration Failure - IMS

2016-02-21 Thread Franz Edler
Hi Cristina,

> But I have another problem related to registration process. After REGISTER-
> 401 Unauthorized-REGISTER-200 OK, the IMS client sends the SUBSCRIBE
> message (for the "reg" event package subscription) to the S-CSCF, the latter
> replies with NOTIFY and the client correctly responds with 200 OK. In order to
> be notified on any change of registration state for the client, also the 
> P-CSCF
> sends the SUBSCRIBE message to the S-CSCF, the S-CSCF sends a NOTIFY to
> the proxy but, instead of replying with 200 OK, the P-CSCF replies with 404-
> Not Here (like it doesn't recognize that the recipient of the NOTIFY in the
> Req-URI is the P-CSCF itself).
> 
> Have you ever seen similar issue?

I have now spent some time to reproduce the issue.
First of all: I had to adapt module reg_mod.c in ims_registrar_pcscf, because 
it containes a hardcoded P-CSCF address:
str pcscf_uri = str_init("sip:pcscf.ims.smilecoms.com:4060");
which is only valid for smilecoms.
Did you also change that?

Then I got exactly the same problem. I found that the P-CSCF config causes in 
the part "# Check for Subsequent requests:" a reject " sl_send_reply("404","Not 
here");"
I have doubts that this is correctly designed and have to dig deeper into the 
logic of the config-file.
Fact is: the NOTIFY request does not contain a Route header and as it not an 
ACK it goes straight to the reject.
Maybe any IMS expert can shed some light on this code as shown below:

# Check for Subsequent requests: 
if (has_totag()) {   
# sequential request withing a dialog should   
# take the path determined by record-routing   
if (loose_route()) {   
if ($route_uri =~ "sip:mo@.*") {
 
setflag(FLT_MO);
   
}   
 
if(!isdsturiset()) {
 
handle_ruri_alias();
   
}   
 
# RTP-Relay, if necessary   
 
route(RTPPROXY);
 
t_relay();  
 
} else {   
if ( is_method("ACK") ) {   
 
if ( t_check_trans() ) {
   
# no loose-route, but stateful ACK; 
 
# must be an ACK after a 487
 
# or e.g. 404 from upstream server  
 
t_relay();  
 
exit;   
 
} else {
   
# ACK without matching transaction ... 
ignore and discard
exit;   
 
}   
   
}   
 
sl_send_reply("404","Not here");
 
}  
exit;  

BR Franz



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [SPAM]Re: Registration Failure - IMS

2016-02-21 Thread Franz Edler
Hi Cristina,

> But I have another problem related to registration process. After REGISTER-
> 401 Unauthorized-REGISTER-200 OK, the IMS client sends the SUBSCRIBE
> message (for the "reg" event package subscription) to the S-CSCF, the latter
> replies with NOTIFY and the client correctly responds with 200 OK. In order to
> be notified on any change of registration state for the client, also the 
> P-CSCF
> sends the SUBSCRIBE message to the S-CSCF, the S-CSCF sends a NOTIFY to
> the proxy but, instead of replying with 200 OK, the P-CSCF replies with 404-
> Not Here (like it doesn't recognize that the recipient of the NOTIFY in the
> Req-URI is the P-CSCF itself).
> 
> Have you ever seen similar issue?

I have now spent some time to reproduce the issue.
First of all: I had to adapt module reg_mod.c in ims_registrar_pcscf, because 
it containes a hardcoded P-CSCF address:
str pcscf_uri = str_init("sip:pcscf.ims.smilecoms.com:4060");
which is only valid for smilecoms.
Did you also change that?

Then I got exactly the same problem. I found that the P-CSCF config causes in 
the part "# Check for Subsequent requests:" a reject " sl_send_reply("404","Not 
here");"
I have doubts that this is correctly designed and have to dig deeper into the 
logic of the config-file.
Fact is: the NOTIFY request does not contain a Route header and as it not an 
ACK it goes straight to the reject.
Maybe any IMS expert can shed some light on this code as shown below:

# Check for Subsequent requests: 
if (has_totag()) {   
# sequential request withing a dialog should   
# take the path determined by record-routing   
if (loose_route()) {   
if ($route_uri =~ "sip:mo@.*") {
 
setflag(FLT_MO);
   
}   
 
if(!isdsturiset()) {
 
handle_ruri_alias();
   
}   
 
# RTP-Relay, if necessary   
 
route(RTPPROXY);
 
t_relay();  
 
} else {   
if ( is_method("ACK") ) {   
 
if ( t_check_trans() ) {
   
# no loose-route, but stateful ACK; 
 
# must be an ACK after a 487
 
# or e.g. 404 from upstream server  
 
t_relay();  
 
exit;   
 
} else {
   
# ACK without matching transaction ... 
ignore and discard
exit;   
 
}   
   
}   
 
sl_send_reply("404","Not here");
 
}  
exit;  

BR Franz



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] catching lost websocket ua

2016-02-21 Thread Juha Heinanen
when a ua that has registered over tcp has lost its connection to sip
proxy, t_relay() succeeds and branch failure route is executed:

Feb 21 05:07:26 lohi /usr/bin/sip-proxy[20528]: INFO: ** entering 
branch_route [CONTACT_BRANCH]
Feb 21 05:07:26 lohi /usr/bin/sip-proxy[20528]: INFO: ** activating 
t_on_branch_failure("contact)"
Feb 21 05:07:26 lohi /usr/bin/sip-proxy[20528]: INFO: Routing INVITE 
 to contact via 

Feb 21 05:07:26 lohi /usr/bin/sip-proxy[20528]: WARNING: tm [t_fwd.c:1543]: 
t_send_branch(): ERROR: t_send_branch: sending request on branch 0 failed
Feb 21 05:07:26 lohi /usr/bin/sip-proxy[20528]: INFO: * t_relay success
Feb 21 05:07:31 lohi /usr/bin/sip-proxy[20480]: INFO: ** entering 
tm:branch-failure:contact

but when a ua that has registered over websocket over tcp has lost is
connection to sip proxy, t_relay() fails and branch failure route is not
executed:

Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: INFO: ** entering 
branch_route [CONTACT_BRANCH]
Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: INFO: ** activating 
t_on_branch_failure("contact)"
Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: INFO: Routing INVITE 
 to contact via 

Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: WARNING:  
[msg_translator.c:2756]: via_builder(): TCP/TLS connection (id: 0) for 
WebSocket could not be found
Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: ERROR:  
[msg_translator.c:1974]: build_req_buf_from_sip_req(): could not create Via 
header
Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: ERROR: tm [t_fwd.c:462]: 
prepare_new_uac(): could not build request
Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: ERROR: tm [t_fwd.c:1712]: 
t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Feb 21 05:08:26 lohi /usr/bin/sip-proxy[20523]: INFO: * t_relay failure

in the latter case, is there some means to get access to the failing
branch in order to be able to unregister it, delete its rtpengine
session, etc?

why can't kamailio behave the same way no matter if pure tcp connection
or one using websocket protocol over tcp connection fails?

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to start kamailio

2016-02-21 Thread sgy
Hi,

I have resolved it. Just run following command before "make all".


command: make include_module="db_mysql"
--

Best Regards,
Shengy

At 2016-02-21 21:55:41, "sgy"  wrote:

Hi,

Today I download the source codes in version 4.3 by git, and compile and 
install it. I configure the kamctlrc and kamailio.cfg, but I can't start it, 
Please refer to following error. 


Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: db_mysql 
[km_dbase.c:124]: db_mysql_submit_query(): driver error on query: Table 
'kamailio.version' doesn't exist (1146)
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db_query.c:132]: db_do_query_internal(): error while submitting query
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db.c:397]: db_table_version(): error in db_query
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db.c:436]: db_check_table_version(): querying version for table location
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: usrloc 
[dlist.c:642]: register_udomain(): error during table version check.
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: registrar 
[reg_mod.c:561]: domain_fixup(): failed to register domain
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[route.c:1154]: fix_actions(): fixing failed (code=-1) at 
cfg:/usr/local/etc/kamailio//kamailio.cfg:647
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[route.c:1154]: fix_actions(): fixing failed (code=-1) at 
cfg:/usr/local/etc/kamailio//kamailio.cfg:649
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: INFO:  
[sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized




--

Best Regards,
Shengy




 ___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Unable to start kamailio

2016-02-21 Thread sgy
Hi,

Today I download the source codes in version 4.3 by git, and compile and 
install it. I configure the kamctlrc and kamailio.cfg, but I can't start it, 
Please refer to following error. 


Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: db_mysql 
[km_dbase.c:124]: db_mysql_submit_query(): driver error on query: Table 
'kamailio.version' doesn't exist (1146)
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db_query.c:132]: db_do_query_internal(): error while submitting query
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db.c:397]: db_table_version(): error in db_query
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[db.c:436]: db_check_table_version(): querying version for table location
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: usrloc 
[dlist.c:642]: register_udomain(): error during table version check.
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR: registrar 
[reg_mod.c:561]: domain_fixup(): failed to register domain
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[route.c:1154]: fix_actions(): fixing failed (code=-1) at 
cfg:/usr/local/etc/kamailio//kamailio.cfg:647
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: ERROR:  
[route.c:1154]: fix_actions(): fixing failed (code=-1) at 
cfg:/usr/local/etc/kamailio//kamailio.cfg:649
Feb 21 21:47:36 ubuntu /usr/local/sbin/kamailio[13672]: INFO:  
[sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized




--

Best Regards,
Shengy___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Make SIP session between two kamailio servers

2016-02-21 Thread Cockhootec Yahrabee
i am sorry my approach was probably unclear.

Nevertheless I realized that my thought was too overcomplicated. I realized
that for my purposes it will be sufficient to route SIP messages between
two instances of Kamailio eg.

UA1 <> K1 <> K2 <-> UA2

So yes this is exactly what did you suggest.

Is this common scenario? Is there any documentation on how to configure
Kamailio this way?

Thanks in advance

On Sun, Feb 14, 2016 at 5:30 PM, Alex Balashov 
wrote:

> Hello,
>
> On 02/14/2016 10:59 AM, Cockhootec Yahrabee wrote:
>
> But do you think, that it is possible to program some simple kamailo
>> module which will implement some really simple SIP client? (kamailio
>> can create/modify SIP messages, it is able to receive and send them
>> so I think that it is possible I am just not sure)
>>
>
> Kamailio has a UAC module which can be used to synthesise and send SIP
> messages:
>
> http://kamailio.org/docs/modules/4.3.x/modules/uac.html
>
> However, the capacity to send them does not in any way imply a UA layer
> functional to the necessary degree to receive them, nor does the
> capacity to send messages imply the ability to initiate and maintain a
> call leg, or any other complex stateful superset of "message". This is
> because the UAC module is intended to accomplish a rather narrow range
> of purposes for which it is necessary to endogenously originate messages
> in some way.
>
> In general, Kamailio has plenty of technical capabilities that reach
> beyond the formal limitations of a proxy. However, they often need to be
> filed under the heading of: "Just because you can doesn't mean you should."
>
> What I am trying to achieve is to encapsulate SIP communication
>> between "SIP client A1" and "SIP client B1" eg. communication
>> between these two endpoints will go through data link between
>> "kamailio server A" and "kamailio server B".
>>
>
> Well, that in and of itself doesn't seem problematic; if I understand
> this topology right, why would this pose a problem?
>
>UA A1 <--> Proxy P1 <--> Proxy P2 <--> UA B1
>
> In other words, perhaps there is some semantic confusion here arising
> from the use of the "SIP server" terminology?
>
> That's why I want to create SIP session between "kamailio server A"
>> and "kamailio server B" - probably for each call between two
>> endpoints (eg. A1:B1, A2:B1) there will be SIP session between these
>> two servers.
>>
>
> You can't do that. The session can only be constructed between the
> endpoints. But there's on reason why one or more Kamailio servers cannot
> remain inline to the signalling path for the duration of the session(s) and
> provide some useful functionality.
>
> So, in short, you need to clarify just what it is you're trying to
> accomplish. It may very well be that your choice of terminology is
> confusing the issue, and that Kamailio is capable of doing what you're
> asking. On the other hand, if you're genuinely trying to turn it into a
> UA/endpoint, it's the wrong tool for the job; it's simply not an endpoint.
>
> -- Alex
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
> 303 Perimeter Center North, Suite 300
> Atlanta, GA 30346
> United States
>
> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] PUBLISH request receives 404 response, and loops on loopback interface

2016-02-21 Thread Matthew Harrold
Hi all,

I am new to Kamailio but have previous experience with Asterisk, Freeswitch
and SIP.

I am using a fairly default config file with some sections removed (E.G
NAT) to simplify things, and some extra logging so I can see the way
packets traverse the configuration.

Config here - http://pastebin.com/raw/CCgT0C78

I have noticed that when a UAC sends a PUBLISH request, Kamailio
immediately responds '404 Not Found' and more worryingly the logs and a
packet capture running on the lo interface indicate it's sending the
PUBLISH request to itself in a loop until it hits the Max-Forwards limit.

Publish URI is PUBLISH sip:2...@kamailio.marrold.co.uk;transport=UDP SIP/2.0

I have two questions,

1) Why is this request being sent a 404, when the UAC is in the USRLOC
table?
2) Why is the request looping until Max Forwards is exhausted?

Any help appreciated,

Marrold
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users