Re: [SR-Users] Kamailio DB lookup

2016-11-06 Thread Gonzalo Gasca Meza
It worked perfectly with alias_db_lookup and add transport in domain field. Thanks On Sat, Nov 5, 2016 at 10:00 AM, Gonzalo Gasca Meza wrote: > Thanks for replying, > > What I want to achieve is once I receive the SIP INVITE, I need to > translate it to a different SIP URI, this new SIP reques

Re: [SR-Users] Kamailio DB lookup

2016-11-05 Thread Gonzalo Gasca Meza
Thanks for replying, What I want to achieve is once I receive the SIP INVITE, I need to translate it to a different SIP URI, this new SIP request needs to be initiated using different URI and TLS. Example: INVITE -> sip:gonz...@sip.parzee.io -- TLS/TCP/UDP -> *KAMAILIO* - DB Lookup -> INVITE sip:

Re: [SR-Users] Kamailio DB lookup

2016-11-05 Thread Anthony Joseph Messina
On Friday, November 4, 2016 1:58:48 AM CDT Gonzalo Gasca Meza wrote: > Example. > > sip:gonzal...@test.external.com;transport=tls > > I started looking into dbaliases table in LOCATION. > > > #!ifdef WITH_ALIASDB > # search in DB-based aliases > if(alias_db_lookup("dbalias

Re: [SR-Users] Kamailio DB lookup

2016-11-04 Thread Alberto Llamas
Hi Gonzalo, I think you are doing wrong setting 'transport=tls' in the alias_domain. You should implement a combination of aliasdb and checking for protocol as below: *alias_username*: gonzalo58 *alias_domain*: test.external.com *username*: gonzalo *domain*: sip.parzee.io In kamailio's script

Re: [SR-Users] Kamailio DB lookup

2016-11-04 Thread Daniel-Constantin Mierla
Hello, it's not very clear for me what you try to achieve. Do you get the call via TLS and want to forward to another server via a different hostname also using TLS? In alias_db module, the alias record is matching in coming r-uri and it is translated to user record. Cheers, Daniel On 04/11/16

[SR-Users] Kamailio DB lookup

2016-11-04 Thread Gonzalo Gasca Meza
Hi Kamailions, Kamailio 4.3 will receive calls (SIP TLS) for users in this domain: *sip.parzee.io . *Example sip:gonz...@sip.parzee.io When call is received by Kamailio I need to overwrite R-URI and transport. I should keep a mapping per user. ( gonzalo -> gonzalo58) Exam

Re: [SR-Users] kamailio db

2014-04-01 Thread Slava Bendersky
- From: i...@vintageelectronics.ca To: mico...@gmail.com, "Kamailio (SER) - Users Mailing List" Sent: Sunday, March 30, 2014 2:32:55 PM Subject: Re: [SR-Users] kamailio db Daniel: Following up. Thank you! On 03/28/2014 08:29 PM, i...@vintageelectronics.ca wrote:

Re: [SR-Users] kamailio db

2014-03-30 Thread Slava Bendersky
Hello Daniel, Here debug of first invite, but I can't see. what actually not right. 7(4161) INFO:

Re: [SR-Users] kamailio db

2014-03-30 Thread Slava Bendersky
inal Message - From: i...@vintageelectronics.ca To: mico...@gmail.com, "Kamailio (SER) - Users Mailing List" Sent: Sunday, March 30, 2014 2:32:55 PM Subject: Re: [SR-Users] kamailio db Daniel: Following up. Thank you! On 03/28/2014 08:29 PM, i...@vintageel

Re: [SR-Users] kamailio db

2014-03-30 Thread info
Daniel: Following up. Thank you! On 03/28/2014 08:29 PM, i...@vintageelectronics.ca wrote: Daniel, Following up. Thanks ve On 03/27/2014 04:44 PM, i...@vintageelectronics.ca wrote: Daniel, I found your writeup at http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour and

Re: [SR-Users] kamailio db

2014-03-28 Thread Slava Bendersky
nil) 9(2046) DEBUG: [receive.c:296]: receive_msg(): receive_msg: cleaning up Slava. - Original Message - From: i...@vintageelectronics.ca To: mico...@gmail.com, "Kamailio (SER) - Users Mailing List" Sent: Friday, March 28, 2014 8:29:53 PM Subject: Re: [SR-Users] kamaili

Re: [SR-Users] kamailio db

2014-03-28 Thread info
Daniel, Following up. Thanks ve On 03/27/2014 04:44 PM, i...@vintageelectronics.ca wrote: Daniel, I found your writeup at http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour and tried to follow it. Jitsi would not connect even though it is running in the same box as Kama

Re: [SR-Users] kamailio db

2014-03-28 Thread Slava Bendersky
Hello Daniel, Please see screen shot, https://www.dropbox.com/s/zot54rs9d13dthy/loop1.png Slava. - Original Message - From: "Daniel-Constantin Mierla" To: "Slava Bendersky" , "Kamailio (SER) - Users Mailing List" Sent: Friday, March 28, 2014 6:54

Re: [SR-Users] kamailio db

2014-03-28 Thread Daniel-Constantin Mierla
Hello, there is no loop there -- the log is incomplete, not showing what happened with the INVITE request, only with its replies -- but anyhow, the replies 180 and 486 are coming from callee, the user-agen: z ... So all seems ok with routing of the invite, just the callee is busy, not answer

Re: [SR-Users] kamailio db

2014-03-28 Thread Slava Bendersky
Hello Daniel, I was looking where is problem, and I see call is looping meaning coming back to caller. I putted couple xlog to see where is breaks. $avp(oexten) = $rU; xlog("L_INFO", "This is $avp(oexten)"); if (!lookup("location")) { xlog("L_INFO", "This $rU and this $du"); this is log

Re: [SR-Users] kamailio db

2014-03-27 Thread info
Daniel, I found your writeup at http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour and tried to follow it. Jitsi would not connect even though it is running in the same box as Kamailio set up exactly as the linked page suggested. No firewalls exist between them. It connec

Re: [SR-Users] kamailio db

2014-03-27 Thread Daniel-Constantin Mierla
- *From: *"Alex Balashov" *To: *sr-users@lists.sip-router.org *Sent: *Wednesday, March 26, 2014 3:24:38 PM *Subject: *Re: [SR-Users] kamailio db On 03/26/2014 03:23 PM, Slava Bendersky wrote: > Hello Alex, > Here config in pastebin >

Re: [SR-Users] kamailio db

2014-03-27 Thread Slava Bendersky
Via: SIP/2.0/UDP 10.237.236.150:56892;branch=z9hG4bK-d8754z-4ac013f010b101fe-1---d8754z-. To: ;tag=b27e1a1d33761e85846fc98f5f3a7e58.eb89. From: "John Couch";tag=270d1828. Call-ID: ZGNhMDdmOGQ1MWFhZTA2NGYwMTE1YThlM2UwNTQxYzI.. CSeq: 2 INVITE. Server: kamailio (4.1.2 (x86_64/linux)

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
I didn't says clear. While you in busy I will try figure out my self. Thank you for all help. Slava. - Original Message - From: "Slava Bendersky" To: "Kamailio (SER) - Users Mailing List" Sent: Wednesday, March 26, 2014 3:31:33 PM Subject: Re: [SR-Users]

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
Hello Alex, Thank you. I will continue try figure out my self. Kamailio open world, that nice. Slava. - Original Message - From: "Alex Balashov" To: sr-users@lists.sip-router.org Sent: Wednesday, March 26, 2014 3:24:38 PM Subject: Re: [SR-Users] kamailio db On 03/

Re: [SR-Users] kamailio db

2014-03-26 Thread Alex Balashov
On 03/26/2014 03:23 PM, Slava Bendersky wrote: Hello Alex, Here config in pastebin http://pastebin.com/hKDZC1iY I'll take a look and get back to you as soon as I can. Right now, I need to catch a flight to Kamailio World. :) -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
Hello Alex, Here config in pastebin http://pastebin.com/hKDZC1iY Slava. - Original Message - From: "Alex Balashov" To: sr-users@lists.sip-router.org Sent: Wednesday, March 26, 2014 3:19:15 PM Subject: Re: [SR-Users] kamailio db Slava, It's pretty hard to t

Re: [SR-Users] kamailio db

2014-03-26 Thread Alex Balashov
sers Mailing List" *Sent: *Wednesday, March 26, 2014 1:21:24 PM *Subject: *Re: [SR-Users] kamailio db Hello Alex, Trying determine where is loop and on debug I can see like 6(2434) DEBUG: sanity [mod_sanity.c:255]: w_sanity_check(): sanity checks result: 1 6(2434) ERROR: *** cfgtr

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
) Slava. - Original Message - From: "Slava Bendersky" To: "Kamailio (SER) - Users Mailing List" Sent: Wednesday, March 26, 2014 1:21:24 PM Subject: Re: [SR-Users] kamailio db Hello Alex, Trying determine where is loop and on debug I can see like 6

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
: "Slava Bendersky" To: "Kamailio (SER) - Users Mailing List" Sent: Wednesday, March 26, 2014 12:29:36 PM Subject: Re: [SR-Users] kamailio db Hello Alex, Restart both clients and tried call and call is looping to same extension. Slava. - Original Message - Fr

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
Hello Alex, Restart both clients and tried call and call is looping to same extension. Slava. - Original Message - From: "Slava Bendersky" To: "Kamailio (SER) - Users Mailing List" Sent: Wednesday, March 26, 2014 12:16:29 PM Subject: Re: [SR-Users] kama

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
t: Re: [SR-Users] kamailio db On 03/26/2014 11:53 AM, Slava Bendersky wrote: > Hello Alex, > I added this section, right now I see mysql get updates. But still some > issue that is no rtp stream established. > When I place call between extensions I get dial tone and rings on &g

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
-users@lists.sip-router.org Sent: Wednesday, March 26, 2014 11:55:18 AM Subject: Re: [SR-Users] kamailio db On 03/26/2014 11:53 AM, Slava Bendersky wrote: > Hello Alex, > I added this section, right now I see mysql get updates. But still some > issue that is no rtp stream establis

Re: [SR-Users] kamailio db

2014-03-26 Thread Alex Balashov
On 03/26/2014 11:53 AM, Slava Bendersky wrote: Hello Alex, I added this section, right now I see mysql get updates. But still some issue that is no rtp stream established. When I place call between extensions I get dial tone and rings on answer it dead. Well, that's progress! Kamailio is not

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
ation")) { sl_reply_error(); xlog("L_INFO", "This $rU"); } #!endif Slava. - Original Message - From: "Alex Balashov" To: sr-users@lists.sip-router.org Sent: Wednesday, March 26, 2014 11:31:45 AM Subject: Re: [SR-Users] kamailio db On 03

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
Users Mailing List" Sent: Wednesday, March 26, 2014 11:13:05 AM Subject: Re: [SR-Users] kamailio db Hello Alex, That make sense, because all 3 digit extension which in log belong to voicemail server. They not local set it located on asterisk box. Also I see 484. In this case do I need

Re: [SR-Users] kamailio db

2014-03-26 Thread Alex Balashov
On 03/26/2014 11:30 AM, Slava Bendersky wrote: Hello Alex, Yes, all question that when I am checking location table I see only records for asterisk box, no information about registered extension. Do you think is will good idea put save location after authentication in request route section ? Y

Re: [SR-Users] kamailio db

2014-03-26 Thread Alex Balashov
On 03/26/2014 11:13 AM, Slava Bendersky wrote: U 2014/03/26 11:08:27.749579 192.168.100.145:5060 -> 192.168.100.145:5062 SIP/2.0 484 Address Incomplete. Via: SIP/2.0/UDP 192.168.100.145:5062;branch=z9hG4bK0d3ed7d2. From: "asterisk" ;tag=as014ee23b. To: ;tag=b27e1a1d33761e85846fc98f5f3a7e58.67c9.

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
(x86_64/linux)). Content-Length: 0. Look like LOCATION. - Original Message - From: "Alex Balashov" To: "Kamailio (SER) - Users Mailing List" Sent: Wednesday, March 26, 2014 3:34:38 AM Subject: Re: [SR-Users] kamailio db Yeah, but you're checking inside

Re: [SR-Users] kamailio db

2014-03-26 Thread Alex Balashov
Yeah, but you're checking inside the if(!lookup(...)) block. ! is, in Kamailio, as in most programming language languages, a negation operator. It means "if the lookup failed" in this case, i.e. if lookup() returned a zero or negative value. And if you're seeing the xlog messages where you have

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
lex Balashov" To: "Kamailio (SER) - Users Mailing List" Sent: Tuesday, March 25, 2014 11:23:38 PM Subject: Re: [SR-Users] kamailio db Try get your client to reregister. But, that message suggests that there's something wrong with the binding. Can you paste the output of

Re: [SR-Users] kamailio db

2014-03-26 Thread Slava Bendersky
Hello Alex, The log showing $ru value $du, empty. $avp(oexten) = $rU; if (!lookup("location")) { xlog("L_INFO", "This $rU and this $du"); Mar 26 03:12:16 dsm01 /usr/sbin/kamailio[9706]: INFO:

Re: [SR-Users] kamailio db

2014-03-25 Thread Alex Balashov
t; >From: "Alex Balashov" >To: "Kamailio (SER) - Users Mailing List" > >Sent: Tuesday, March 25, 2014 10:44:33 PM >Subject: Re: [SR-Users] kamailio db > >That sounds like the registration lookup is resolving to a binding >which has as its domain the do

Re: [SR-Users] kamailio db

2014-03-25 Thread Slava Bendersky
To: "Kamailio (SER) - Users Mailing List" Sent: Tuesday, March 25, 2014 10:44:33 PM Subject: Re: [SR-Users] kamailio db That sounds like the registration lookup is resolving to a binding which has as its domain the domain of the proxy itself. Try printing the value of $ru and $

Re: [SR-Users] kamailio db

2014-03-25 Thread Alex Balashov
=fmtp:101 0-15 >a=sendrecv > > > >- Original Message - > >From: "Slava Bendersky" >To: "Kamailio (SER) - Users Mailing List" > >Sent: Tuesday, March 25, 2014 11:43:57 AM >Subject: Re: [SR-Users] kamailio db > >Hello Al

Re: [SR-Users] kamailio db

2014-03-25 Thread Slava Bendersky
.1 --> ? s=Z c=IN IP4 127.0.0.1 t=0 0 m=audio 8000 RTP/AVP 0 101 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv - Original Message - From: "Slava Bendersky" To: "Kamailio (SER) - Users Mailing List" Sent: Tuesday, March 25, 2014 11:43:57 AM Su

Re: [SR-Users] kamailio db

2014-03-25 Thread Slava Bendersky
can set to $avp(domain). Slava. - Original Message - From: "Slava Bendersky" To: "Kamailio (SER) - Users Mailing List" Sent: Monday, March 24, 2014 1:39:42 PM Subject: Re: [SR-Users] kamailio db Hello Alex, Here output from dig. Yes, for current setup I wan

Re: [SR-Users] kamailio db

2014-03-24 Thread Slava Bendersky
- Original Message - From: "Alex Balashov" To: sr-users@lists.sip-router.org Sent: Monday, March 24, 2014 12:43:58 AM Subject: Re: [SR-Users] kamailio db On 03/24/2014 12:33 AM, Slava Bendersky wrote: > 9(6003) DEBUG: [dns_cache.c:830]: dns_cache_add(): > dns_ca

Re: [SR-Users] kamailio db

2014-03-23 Thread Alex Balashov
On 03/23/2014 10:49 PM, Slava Bendersky wrote: Is possible run kamailio without database ? Well, sure. But its applications are considerably more limited, since, without a database, it's pretty tough to make any "dynamic" decisions. I got ldap working and extension is registered, but can't

Re: [SR-Users] kamailio db

2014-03-23 Thread Alex Balashov
On 03/24/2014 12:33 AM, Slava Bendersky wrote: 9(6003) DEBUG: [dns_cache.c:830]: dns_cache_add(): dns_cache_add: adding networklab.loc(14) 1 (flags=1) at 720 9(6003) ERROR: [resolve.c:1733]: sip_hostport2su(): ERROR: sip_hostport2su: could not resolve hostname: "networklab.loc" How are y

Re: [SR-Users] kamailio db

2014-03-23 Thread Slava Bendersky
: check_via_address(192.168.100.1, 192.168.100.1, 0) 9(6003) ERROR: sl [sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used: Unresolvable destination (478/SL) - Original Message - From: "Slava Bendersky" To: sr-users@lists.sip-router.org Sent: Sunday, March 23, 2014 1

[SR-Users] kamailio db

2014-03-23 Thread Slava Bendersky
Hello Everyone, Is possible run kamailio without database ? I got ldap working and extension is registered, but can't place calls between two extensions. Getting 404 all the time. Slava. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users

Re: [SR-Users] Kamailio DB version error

2013-01-06 Thread Klaus Darilion
Am 05.01.2013 02:14, schrieb Douglas Ugalde: Hi, I want to load the "dialplan.so" with parameters but when I reload kamailio, I got this error: /usr/local/sbin/kamailio[1348]: ERROR: [db.c:439]: invalid version 0 for table my_table found, expected 1 (check table structure and table "versio

[SR-Users] Kamailio DB version error

2013-01-04 Thread Douglas Ugalde
Hi, I want to load the "dialplan.so" with parameters but when I reload kamailio, I got this error: /usr/local/sbin/kamailio[1348]: ERROR: [db.c:439]: invalid version 0 for table my_table found, expected 1 (check table structure and table "version") Im using kamailio 3.3.3 Please what can I do