Re: [SR-Users] SIP Autentication Failed

2016-03-08 Thread Bruno Henrique Gomes Gouvêa
Hello,

Here new debug:

Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: *** cfgtrace:
c=[//etc/kamailio/kamailio.cfg] l=946 a=25 n=xlog
Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: 

Re: [SR-Users] Kamailio 5.0 - Scripted DB Migrations

2016-03-08 Thread Victor Seva
On 03/03/2016 04:30 PM, Daniel-Constantin Mierla wrote:
> Hello,
> 
> kamcli tool is a good candidate for such feature, it is python and quite
> modular:
> 
>   - https://github.com/asipto/kamcli
> 
> Adding migrating db feature was one of my goals for this tool, but lack
> of time didn't allow me to dig much into python, as I am not using this
> programming language that often. Maybe others can jump on board and help
> here.

Seems like a nice feature!



signature.asc
Description: OpenPGP digital signature
___
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] Kamailio and UCARP with Multiple VIPs defined

2016-03-08 Thread Jonathan Hunter
Hi Daniel,
Did you have any thoughts on this or is it more ip routing related or ucarp 
configuration on the server itself?
Looks like kamailio has it as a listening socket.
Thanks
Jon

From: hunter...@hotmail.com
To: mico...@gmail.com; sr-users@lists.sip-router.org
Date: Fri, 4 Mar 2016 12:31:29 +
Subject: Re: [SR-Users] Kamailio and UCARP with Multiple VIPs defined




Hi Daniel,
Thanks for the reply.  Yes its listed, however I see mhomed set to no? however 
I have defined as on.
socket: {proto: udpaddress: 10.70.0.75  
  ipaddress: 10.70.0.75proto: 5060mcast: no 
   mhomed: no}

ERROR: tm [ut.h:345]: uri2dst2(): no corresponding socket found for 
"10.70.0.73" af 2 (udp:10.70.0.73:5080)Mar  4 12:28:43 bt1proxy1 
/usr/sbin/kamailio[7264]: ERROR: tm [t_fwd.c:522]: prepare_new_uac(): ERROR: 
can't fwd to af 2, proto 1  (no corresponding listening socket)Mar  4 12:28:43 
bt1proxy1 /usr/sbin/kamailio[7264]: ERROR: tm [t_fwd.c:1779]: 
t_forward_nonack(): ERROR: t_forward_nonack: failure to add branchesMar  4 
12:28:43 bt1proxy1 /usr/sbin/kamailio[7264]: ERROR: sl [sl_funcs.c:387]: 
sl_reply_error(): ERROR: sl_reply_error used: I'm terribly sorry, server error 
occurred (1/SL)
Am I missing something?
Thanks
Jon

To: sr-users@lists.sip-router.org
From: mico...@gmail.com
Date: Wed, 2 Mar 2016 12:10:32 +0100
Subject: Re: [SR-Users] Kamailio and UCARP with Multiple VIPs defined


  

  
  
Hello,



can you see if the socket lists includes the IP address giving
problems? Use the command:



kamcmd core.sockets_list



Cheers,

Daniel



On 02/03/16 10:14, Jonathan Hunter
  wrote:



  
  
Hi Guys,



Using Centos 6.7, kamailio 4.2 and Ucarp I am testing
  multiple VIPs on the same server and having some issues.






I have ucarp running, with  1 Public and 1 Private VIP
  defined, and both are pingable and failover in a cluster.



The Public is for Subscribers to Register with, and the
  Private for Communication to the Asterisk media servers behind
  it.



My problem is kamailio when started states its listening on
  both the VIPS, however when I try and force_socket over the
   Private IP address, it states 



 ERROR:  [forward.c:218]: get_out_socket(): no
  socket found
Mar  1 20:04:35 bt1proxy1 /usr/sbin/kamailio[20372]: ERROR:
   [forward.c:220]: get_out_socket(): no
  corresponding socket found for(udp:10.70.0.72:5080)
Mar  1 20:04:35 bt1proxy1 /usr/sbin/kamailio[20372]: ERROR:
  tm [t_fwd.c:520]: prepare_new_uac(): ERROR: can't fwd to af 2,
  proto 1  (no corresponding listening socket)






This is when listening on the VIP which is 10.70.0.75 and I
  also look to force_socket out of this IP.  It just doesnt
  work, however  if I use the physical interface on the server,
  that being 10.70.0.70, it works fine and forwards requests on
  the Private LAN.



I have added net.ipv4.ip_nonlocal_bind = 1 to sysctl.conf
  as well but no joy.



If 1 VIP is defined I have no issue, its just with 2, has
  anyone had this issue before ?



Any help would be great.



Many thanks



Jon
  
  

  
  

  ___
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
Kamailio Advanced Training, Berlin, March 7-9, 2016 - http://www.asipto.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   
  ___
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] SIP Autentication Failed

2016-03-08 Thread Daniel-Constantin Mierla
Hello,

On 08/03/16 09:27, Bruno Henrique Gomes Gouvêa wrote:
> Hello,
>
> Here new debug:
>
> Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: *** cfgtrace:
> c=[//etc/kamailio/kamailio.cfg] l=946 a=25 n=xlog
> Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: 

Re: [SR-Users] Kamailio and UCARP with Multiple VIPs defined

2016-03-08 Thread Daniel-Constantin Mierla
Hello,

oh, forgot to follow up, as I read your response at some point.

Are you doing force_send_socket() or $fs = ...? If yes, what is the
socket value you are forcing?

The log message said:

Mar  1 20:04:35 bt1proxy1 /usr/sbin/kamailio[20372]: ERROR: 
[forward.c:220]: get_out_socket(): no corresponding socket found
for(udp:10.70.0.72:5080)

The socket listen in the rpc command output is udp:10.70.0.75:5060.

Cheers,
Daniel

On 08/03/16 11:29, Jonathan Hunter wrote:
> Hi Daniel,
>
> Did you have any thoughts on this or is it more ip routing related or
> ucarp configuration on the server itself?
>
> Looks like kamailio has it as a listening socket.
>
> Thanks
>
> Jon
>
> 
> From: hunter...@hotmail.com
> To: mico...@gmail.com; sr-users@lists.sip-router.org
> Date: Fri, 4 Mar 2016 12:31:29 +
> Subject: Re: [SR-Users] Kamailio and UCARP with Multiple VIPs defined
>
> Hi Daniel,
>
> Thanks for the reply.  Yes its listed, however I see mhomed set to no?
> however I have defined as on.
>
> socket: {
> proto: udp
> address: 10.70.0.75
> ipaddress: 10.70.0.75
> proto: 5060
> mcast: no
> mhomed: no
> }
>
>
> ERROR: tm [ut.h:345]: uri2dst2(): no corresponding socket found for
> "10.70.0.73" af 2 (udp:10.70.0.73:5080)
> Mar  4 12:28:43 bt1proxy1 /usr/sbin/kamailio[7264]: ERROR: tm
> [t_fwd.c:522]: prepare_new_uac(): ERROR: can't fwd to af 2, proto 1
>  (no corresponding listening socket)
> Mar  4 12:28:43 bt1proxy1 /usr/sbin/kamailio[7264]: ERROR: tm
> [t_fwd.c:1779]: t_forward_nonack(): ERROR: t_forward_nonack: failure
> to add branches
> Mar  4 12:28:43 bt1proxy1 /usr/sbin/kamailio[7264]: ERROR: sl
> [sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used: I'm
> terribly sorry, server error occurred (1/SL)
>
> Am I missing something?
>
> Thanks
>
> Jon
>
>
> 
> To: sr-users@lists.sip-router.org
> From: mico...@gmail.com
> Date: Wed, 2 Mar 2016 12:10:32 +0100
> Subject: Re: [SR-Users] Kamailio and UCARP with Multiple VIPs defined
>
> Hello,
>
> can you see if the socket lists includes the IP address giving
> problems? Use the command:
>
> kamcmd core.sockets_list
>
> Cheers,
> Daniel
>
> On 02/03/16 10:14, Jonathan Hunter wrote:
>
> Hi Guys,
>
> Using Centos 6.7, kamailio 4.2 and Ucarp I am testing multiple
> VIPs on the same server and having some issues.
>
>
> I have ucarp running, with  1 Public and 1 Private VIP defined,
> and both are pingable and failover in a cluster.
>
> The Public is for Subscribers to Register with, and the Private
> for Communication to the Asterisk media servers behind it.
>
> My problem is kamailio when started states its listening on both
> the VIPS, however when I try and force_socket over the  Private IP
> address, it states 
>
>  ERROR:  [forward.c:218]: get_out_socket(): no socket found
> Mar  1 20:04:35 bt1proxy1 /usr/sbin/kamailio[20372]: ERROR: 
> [forward.c:220]: get_out_socket(): no corresponding socket found
> for(udp:10.70.0.72:5080)
> Mar  1 20:04:35 bt1proxy1 /usr/sbin/kamailio[20372]: ERROR: tm
> [t_fwd.c:520]: prepare_new_uac(): ERROR: can't fwd to af 2, proto
> 1  (no corresponding listening socket)
>
>
> This is when listening on the VIP which is 10.70.0.75 and I also
> look to force_socket out of this IP.  It just doesnt work, however
>  if I use the physical interface on the server, that being
> 10.70.0.70, it works fine and forwards requests on the Private LAN.
>
> I have added net.ipv4.ip_nonlocal_bind = 1 to sysctl.conf as well
> but no joy.
>
> If 1 VIP is defined I have no issue, its just with 2, has anyone
> had this issue before ?
>
> Any help would be great.
>
> Many thanks
>
> Jon
>
>
> ___
> 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
> Kamailio Advanced Training, Berlin, March 7-9, 2016 - http://www.asipto.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

-- 
Daniel-Constantin Mierla
http://www.asipto.com
http://twitter.com/#!/miconda - htt

Re: [SR-Users] In kamailio.log not print log message

2016-03-08 Thread Daniel Tryba
On Mon, Mar 07, 2016 at 11:18:17PM +0530, Shiv Patidar wrote:
> thank you for  help
> i am new and i don't have brief knowledge
> so please  tell me where i add this code
> and please explain in brief

Take a good look at what I wrote, the solution was already in there (it
contained the default config and the lines needed to add and where to do
that(see the else with the xlog)).

Any further details can't be given unless you tell/show us what your
config looks like for authentication. 



___
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] SIP Autentication Failed

2016-03-08 Thread Bruno Henrique Gomes Gouvêa
Hello,


Record in subscriber table, i cant see any problem:
+-+-+---+--+
| username   | domain   | ha1| ha1b |
+-+-+---+--+
|101_pabx99.ligou.me|pabx99.ligou.me|xyz|NULL|


Thank you.



Bruno H. G. Gouvêa

CEO - CiberCloud LTDA
http://cibercloud.com.br
http://ligou.me


---
 Bruno H. G. Gouvêa


 Tel.: (31)99554646
---


2016-03-08 12:36 GMT-03:00 Daniel-Constantin Mierla :

> Hello,
>
> On 08/03/16 09:27, Bruno Henrique Gomes Gouvêa wrote:
>
> Hello,
>
> Here new debug:
>
> Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: *** cfgtrace:
> c=[//etc/kamailio/kamailio.cfg] l=946 a=25 n=xlog
> Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: 

Re: [SR-Users] TCP connection select problem

2016-03-08 Thread 张顺通
Someone had this problem? Or It's a bug that has been resolved

2016-03-08 15:17 GMT+08:00 张顺通 :

> kamailio version is 4.2.1
>
> 2016-03-08 15:08 GMT+08:00 张顺通 :
>
>> my program structure is
>>
>> LinPhone--TCP--KA_EDGE--UDP--KA_REGISTER--UDP--FS
>>
>> KA_EDGE:all clients TCP connection is in this server
>> KS_REGSITER:all register info is process here
>>
>> when User A want to use program,Linphone send SIP REGISTER to KA_EDGE by
>> TCP(and  TCP is always present), and KA_EDGE send to KA_REGISTER by UDP.
>>
>> when  FS want to Call A, FS generate SIP:
>> INVITE A@KA_REGISTER_IP
>>
>> KA_REGISTER recive INVITE, lookup the register list, send to KA_EDGE
>> INVITE TCP_IP:TCP_PORT
>> Route:KA_EDGE_IP:KA_EDGE_PORT
>>
>> and LinPhone recive that INVITE.
>>
>>
>> *my question is:*
>>
>> LinPhone A and LinPhone B both register in KA_REGISTER.
>> FS send INVITE:
>> INVITE B: KA_REGISTER_IP
>> and KA_REGISTER lookup correct,send to KA_EDGE
>> INVITE TCP_IP_B:TCP_PORT_B
>> Route:KA_EDGE_IP:KA_EDGE_PORT
>>
>> but KA_EDGE is not correct.sip is correct,* but KA_EDGE send the INVITE
>> to A' TCP connnection*
>> INVITE TCP_IP_B:TCP_PORT_B
>> Route:KA_EDGE_IP:KA_EDGE_PORT
>>
>>
>> Someone had this problem?Is this a bug?
>>
>
>
___
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] TCP connection select problem

2016-03-08 Thread Daniel-Constantin Mierla
Are you using Path with received parameter on KA Edge?

Are bot Linphone behind the same NAT router?

Cheers,
Daniel

On 08/03/16 08:08, 张顺通 wrote:
> my program structure is 
>
> LinPhone--TCP--KA_EDGE--UDP--KA_REGISTER--UDP--FS
>
> KA_EDGE:all clients TCP connection is in this server
> KS_REGSITER:all register info is process here
>
> when User A want to use program,Linphone send SIP REGISTER to KA_EDGE
> by TCP(and  TCP is always present), and KA_EDGE send to KA_REGISTER by
> UDP.
>
> when  FS want to Call A, FS generate SIP:
> INVITE A@KA_REGISTER_IP
>
> KA_REGISTER recive INVITE, lookup the register list, send to KA_EDGE
> INVITE TCP_IP:TCP_PORT
> Route:KA_EDGE_IP:KA_EDGE_PORT
>
> and LinPhone recive that INVITE.
>
>
> *my question is:*
>
> LinPhone A and LinPhone B both register in KA_REGISTER.
> FS send INVITE:
> INVITE B: KA_REGISTER_IP
> and KA_REGISTER lookup correct,send to KA_EDGE
> INVITE TCP_IP_B:TCP_PORT_B
> Route:KA_EDGE_IP:KA_EDGE_PORT
>
> but KA_EDGE is not correct.sip is correct,*but KA_EDGE send the INVITE
> to A' TCP connnection*
> INVITE TCP_IP_B:TCP_PORT_B
> Route:KA_EDGE_IP:KA_EDGE_PORT
>
>
> Someone had this problem?Is this a bug?
>
>
> ___
> 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://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, Berlin, May 18-20, 2016 - 
http://www.kamailioworld.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] SIP Autentication Failed

2016-03-08 Thread Daniel-Constantin Mierla
Hello,

apparently it is ok in database table -- can you send here the modparams
for auth_db module and the piece of config how you execute the
auth_check() function?

Cheers,
Daniel

On 08/03/16 20:33, Bruno Henrique Gomes Gouvêa wrote:
> Hello,
>
>
> Record in subscriber table, i cant see any problem:
> +-+-+---+--+
> | username   | domain   | ha1| ha1b |
> +-+-+---+--+
> |101_pabx99.ligou.me
> |pabx99.ligou.me
> |xyz|NULL|
>
>
> Thank you.
>
> 
>
> Bruno H. G. Gouvêa
>
> CEO - CiberCloud LTDA
> http://cibercloud.com.br 
> http://ligou.me 
>
>
> --- 
>  Bruno H. G. Gouvêa
>
>
>  Tel.: (31)99554646 
> ---
>
>
> 2016-03-08 12:36 GMT-03:00 Daniel-Constantin Mierla  >:
>
> Hello,
>
> On 08/03/16 09:27, Bruno Henrique Gomes Gouvêa wrote:
>> Hello,
>>
>> Here new debug:
>>
>> Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: *** cfgtrace:
>> c=[//etc/kamailio/kamailio.cfg] l=946 a=25 n=xlog
>> Mar  8 03:25:10 p /usr/sbin/kamailio[1681]: ERROR: 

Re: [SR-Users] Branching v4.4

2016-03-08 Thread Daniel-Constantin Mierla
Hello,

short reminder that branching of 4.4 is planned for late tomorrow. Once
that is done, the master branch can take new features and all fixed than
need to be backported have to be cherry-picked to branch 4.4. More
details will be sent once the branch is created.

Cheers,
Daniel

On 01/03/16 09:08, Daniel-Constantin Mierla wrote:
> Hello,
>
> I am considering to branch v4.4 latest on March 10, after that the
> master branch can be used again for adding new features and fixes will
> be backported to branch 4.4. If it proves to worth branching earlier, it
> can be done.
>
> As an estimate date for the release of v4.4.0, a good candidate would be
> one of the days between March 22, 23 or 24.
>
> Any other suggestions or comments?
>
> Cheers,
> Daniel
>

-- 
Daniel-Constantin Mierla
http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, Berlin, May 18-20, 2016 - 
http://www.kamailioworld.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