Re: [SR-Users] How does Kamailio decide which protocol to use when fwding to another proxy?

2017-01-24 Thread Pranathi Venkatayogi
In the case below though TLS session is established between proxy1 and proxy2, 
invite is fwded on UDP.

1.  How to force Kamailio to use existing tls session to communicate? 
(proxy1)

2.  What is the command to look at if existing tls sessions are present 
from proxy1

a.  kamcmd tls.list does it, but I need one which works from within config.

From: Pranathi Venkatayogi
Sent: Tuesday, January 24, 2017 11:02 AM
To: 'Kamailio (SER) - Users Mailing List' 
Subject: How does Kamailio decide which protocol to use when fwding to another 
proxy?

Hi,
  I have two instances of Kamailio acting as edge proxies. One on the customer 
side and one on the agent side.
  Like: customer -> proxy1 -> proxy2 -> agent.
  Both customer and agent are registered to proxy1/proxy2 via TLS.

  However when proxy1 forwards to proxy2, it is using UDP. How can I force it 
to use TLS?
  Attached is the result of nslookup on the domain: 
translation.sms-test.cyracom.com.

Thanks
Pranathi

[cid:image002.jpg@01D27654.0A627200]

___
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] RFC: Kamailio tutorials/cookbooks/docs - wiki or markdown

2017-01-24 Thread Annus Fictus

hello,

I think is a good way to improve Kamailio documentation.

Thank you

Regards

El 24/01/2017 a las 09:50, Daniel-Constantin Mierla escribió:

Hello,


On 23/01/2017 15:44, Daniel-Constantin Mierla wrote:

Hello,

I want to start a discussion about some of the kamailio tutorials from
the wiki, mainly those related to core cookbook, variables and
transformations. They are now in dokuwiki at:

- https://www.kamailio.org/wiki/#cookbooks

The wiki served us pretty well so far, however the contributions there
are not that active. From time to time we still get spammers, even we
added restriction that only registered and authenticated users can write.

I am thinking that maybe people don't like creating yet another account
just add some example or rephrase for clarity.

On the other hand, there are over 400 registered users, many of them I
expect to be either made because if misunderstanding the purpose or by
spammers that guessed the (sip) captcha (plenty of random usernames).

Besides that I think the wiki adds overhead when releasing a new version
as each time we have to copy and paste old version content to a new set
of pages and update the version number.

With the above in mind, I wonder if won't be better to store those
tutorials in markdown format and use mkdocs.org or gitbook
(https://github.com/GitbookIO/gitbook) tools to generate the html and
host it in kamailio.org. The wiki will still be used to index them.

Among the benefits I see:

* store in github.com (a new repo, like: kamailio-docs) and all devs
can contribute directly, other users can make pull requests

* create branches for each major version of kamailio and backport
across them with git whenever is applicable

* the edit can be done directly via github.com website (similar to
the wiki right now) and even read it directly from github in html
transformed from markdown by github

* one can get them offline by cloning the git repo, use them or
enhance when offline

Many if the tutorials will stay in the wiki, but I think those that are
related to documenting per kamailio version should be migrated to gihub
storage + markdown. If there is a strong pro opinion for this change, I
can try to convert one of the cookbooks very soon so people can feel
better the difference. If we get to a consensus, then I think we can
have those tutorials in the new format for v5.0.

Should anyone have comments, other suggestions or improvements, let's
put them on debate.

I created the markdown version for the tutorial to install Kamailio
devel from git to make it easier to compare.

The html version build with mkdocs (http://mkdocs.org) is available in
html format at:

- http://kamailio.org/docs/tutorials/kamailio-install-guide-git-devel/

Git repo is at:

   -
https://github.com/kamailio/kamailio-docs/tree/master/kamailio-install-guide-git

Viewing the content via github:

   -
https://github.com/kamailio/kamailio-docs/blob/master/kamailio-install-guide-git/docs/index.md

You can compare with the old tutorial in the wiki:

- https://www.kamailio.org/wiki/install/devel/git

Again, the main reason of this discussion is not the look, but the
collaboration mechanisms and tools behind building the docs and
maintaining/versioning them.

Cheers,
Daniel




___
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] How does Kamailio decide which protocol to use when fwding to another proxy?

2017-01-24 Thread Pranathi Venkatayogi
Hi,
  I have two instances of Kamailio acting as edge proxies. One on the customer 
side and one on the agent side.
  Like: customer -> proxy1 -> proxy2 -> agent.
  Both customer and agent are registered to proxy1/proxy2 via TLS.

  However when proxy1 forwards to proxy2, it is using UDP. How can I force it 
to use TLS?
  Attached is the result of nslookup on the domain: 
translation.sms-test.cyracom.com.

Thanks
Pranathi

[cid:image001.jpg@01D27631.42773770]

From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Ryan 
Wagoner
Sent: Tuesday, January 24, 2017 8:26 AM
To: sr-users@lists.sip-router.org
Subject: [SR-Users] Asterisk Proxy Multiple Devices / BLF Issues

I'm following the latest Kamailio and Asterisk Realtime guide to offload 
registrations from my FreePBX / Asterisk setup and possibly load balance down 
the road. I'm running Kamailio 4.4.5 and Asterisk 11.6-cert15.  I realize 
FreePBX isn't realtime and will work around  that with a database view, etc.

I was excited to see Kamailio will handle multiple devices registering to the 
same device/extension and placing / receiving calls works. I did run into an 
issue when any device unregisters Kamailio always forwards the register with 
expires 0 to Asterisk. To workaround this I modified the route[REGFWD] and 
added the if($hdr(Expires)==$null) chunk of code. I wanted to use 
caller->count, but ran into stale contact records with expires set to deleted. 
I then tried enumerating the contacts, but don't understand why 
ulc(caller->expires) is 10 when kamctl ul show shows expires deleted. The code 
below works, but I was hoping for an explanation of the expires = 10 or if 
there was a better way to handle this scenario.

Additionally I enabled presence (WITH_PRESENCE) but Kamailio responds 489 bad 
event for subscribe requests from devices registered to it. I was hoping it 
would proxy these to Asterisk for BLF support. If somebody could point me in 
the right direction it would be appreciated.

# Forward REGISTER to Asterisk
route[REGFWD] {
if(!is_method("REGISTER"))
{
return;
}

if($hdr(Expires)==$null)
{
reg_fetch_contacts("location", "$sel(contact.uri)", "caller");

$var(i) = 0;
$var(j) = 0;
while($var(i) < $(ulc(caller=>count)))
{
if($(ulc(caller=>expires)[$var(i)])!=10)
{
$var(j) = $var(j) + 1;
}

$var(i) = $var(i) + 1;
}

if($var(j)>=1)
{
return;
}
}

$var(rip) = $sel(cfg_get.asterisk.bindip);
$uac_req(method)="REGISTER";
$uac_req(ruri)="sip:" + $var(rip) + ":" + 
$sel(cfg_get.asterisk.bindport);
$uac_req(furi)="sip:" + $au + "@" + $var(rip);
$uac_req(turi)="sip:" + $au + "@" + $var(rip);
$uac_req(hdrs)="Contact: \r\n";
if($sel(contact.expires) != $null)
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + 
$sel(contact.expires) + "\r\n";
else
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $hdr(Expires) + 
"\r\n";
uac_req_send();
}

Thanks,
Ryan
___
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] FOSDEM 2017

2017-01-24 Thread Torrey Searle
Let me know a headcount by next Monday and I will do the booking.

Torrey

On 24 January 2017 at 15:04, Daniel-Constantin Mierla 
wrote:

> Hello,
>
> anyone else interested in having a dinner event at Fosdem?
>
> Soon there has to be a decision and hopefully Torrey (cc-ed) can help
> again like last year.
>
> Cheers,
> Daniel
>
>
> On 22/01/2017 13:40, DanB wrote:
> > Hey Daniel,
> >
> > if anything to be reserved, please count us also in. Will come back
> > regarding number of seats but just to be aware that we are interested
> > to join the dinner.
> >
> > Thanks!
> >
> > DanB
> >
> > ___
> > 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
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) -
> www.asipto.com
> Kamailio World Conference - May 8-10, 2017 - 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] kamdbctl error.

2017-01-24 Thread Venkatesh Macha
Thanks, Denial. It is working now. 



--
View this message in context: 
http://sip-router.1086192.n5.nabble.com/kamdbctl-error-tp155288p155345.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] Event when acc is written?

2017-01-24 Thread Tobias
Hi Daniel,


I'd still like the acc record to be written, and then get notified about that 
writing was completed, including the mysql ID, callid and maybe something more, 
perhaps the whole record written? I'd like a notification for all writes, i.e. 
doesn't matter if it's acc.acc or acc.missed_calls, INVITEs or BYE, etc.


Kind regards,

/Tobias



From: sr-users  on behalf of 
Daniel-Constantin Mierla 
Sent: Tuesday, January 24, 2017 3:02 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Event when acc is written?


Hello,


On 24/01/2017 12:23, Tobias wrote:

Hi!


I'm wondering if there is a way for the acc-module to notify/send an event to 
Kamailio (so I can pick it up from the config, similar to event_route) once the 
acc-module has performed a write?


As an example I'm using acc and db-mysql to store acc data in MySQL, but 
instead of having a service polling the MySQL for new acc's written I'd like to 
make Kamailio send an event once an acc-row has been written. I realize this 
could most likely be done by using MySQL triggers "ON INSERT", but I'm 
wondering if there is another (reliable) way to do this directly from within 
Kamailio?


I haven't tested it, but I would guess that if I tried to use for example 
event_route[dialog:end] there could be times where the event would hit Kamailio 
before the acc-module have written to missed_calls?


Do you still want the acc record to be written in the database or catch the 
event before storing and directing it somewhere else?

Cheers,
Daniel

--
Daniel-Constantin Mierla
www.twitter.com/miconda -- 
www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
www.asipto.com
Kamailio World Conference - May 8-10, 2017 - 
www.kamailioworld.com

Kamailio World - Our site will be launched soon
www.kamailioworld.com
the 5th edition May 8-10, 2017 - Berlin, Germany. Website of the event and more 
details will be available very soon!


Daniel-Constantin Mierla | LinkedIn
www.linkedin.com
View Daniel-Constantin Mierla's professional profile on LinkedIn. LinkedIn is 
the world's largest business network, helping professionals like 
Daniel-Constantin Mierla discover inside connections to recommended job 
candidates, industry experts, and business partners.


miconda (@miconda) | Twitter
www.twitter.com
The latest Tweets from miconda (@miconda). Co-founder and leader of Kamailio 
SIP Server project (former OpenSER). C Dev. Open Source RTC advocate. SIP, 
VoIP, VoLTE and WebRTC consultancy at Asipto. Berlin, Germany


___
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] How to determine correct port to set in record-route header

2017-01-24 Thread Pranathi Venkatayogi
I have set that from the beginning, but of no avail. 

advertised_address="63.149.103.72"
listen=udp:MY_IP_ADDR:5060 advertise MY_PUBLICIP_ADDR:5060

-Original Message-
From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
Daniel Tryba
Sent: Tuesday, January 24, 2017 7:59 AM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] How to determine correct port to set in record-route 
header

On Tue, Jan 24, 2017 at 03:50:24PM +, Pranathi Venkatayogi wrote:
>   I am using Kamailio behind NAT, unable to figure how to make it put “public 
> ip” in Record-route header, I am manually inserting the hard-coded header 
> myself as below.
>   However now I am having trouble choosing the right port number in all 
> scenarios.


Take a look at https://www.kamailio.org/wiki/cookbooks/4.4.x/core#listen
and the mentioned set_advertised_address() / set_advertised_port() cfg 
functions.

To quote the documentation:
 A typical use case for advertise address is when running SIP server  behind a 
NAT/Firewall, when the local IP address (to be used for bind)  is different 
than the public IP address (to be used for advertising). 


___
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] Asterisk Proxy Multiple Devices / BLF Issues

2017-01-24 Thread Ryan Wagoner
I'm following the latest Kamailio and Asterisk Realtime guide to offload
registrations from my FreePBX / Asterisk setup and possibly load balance
down the road. I'm running Kamailio 4.4.5 and Asterisk 11.6-cert15.  I
realize FreePBX isn't realtime and will work around  that with a database
view, etc.

I was excited to see Kamailio will handle multiple devices registering to
the same device/extension and placing / receiving calls works. I did run
into an issue when any device unregisters Kamailio always forwards the
register with expires 0 to Asterisk. To workaround this I modified the
route[REGFWD] and added the if($hdr(Expires)==$null) chunk of code. I
wanted to use caller->count, but ran into stale contact records with
expires set to deleted. I then tried enumerating the contacts, but don't
understand why ulc(caller->expires) is 10 when kamctl ul show shows expires
deleted. The code below works, but I was hoping for an explanation of the
expires = 10 or if there was a better way to handle this scenario.

Additionally I enabled presence (WITH_PRESENCE) but Kamailio responds 489
bad event for subscribe requests from devices registered to it. I was
hoping it would proxy these to Asterisk for BLF support. If somebody could
point me in the right direction it would be appreciated.

# Forward REGISTER to Asterisk
route[REGFWD] {
if(!is_method("REGISTER"))
{
return;
}

if($hdr(Expires)==$null)
{
reg_fetch_contacts("location", "$sel(contact.uri)",
"caller");

$var(i) = 0;
$var(j) = 0;
while($var(i) < $(ulc(caller=>count)))
{
if($(ulc(caller=>expires)[$var(i)])!=10)
{
$var(j) = $var(j) + 1;
}

$var(i) = $var(i) + 1;
}

if($var(j)>=1)
{
return;
}
}

$var(rip) = $sel(cfg_get.asterisk.bindip);
$uac_req(method)="REGISTER";
$uac_req(ruri)="sip:" + $var(rip) + ":" +
$sel(cfg_get.asterisk.bindport);
$uac_req(furi)="sip:" + $au + "@" + $var(rip);
$uac_req(turi)="sip:" + $au + "@" + $var(rip);
$uac_req(hdrs)="Contact: \r\n";
if($sel(contact.expires) != $null)
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " +
$sel(contact.expires) + "\r\n";
else
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " +
$hdr(Expires) + "\r\n";
uac_req_send();
}

Thanks,
Ryan
___
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] How to determine correct port to set in record-route header

2017-01-24 Thread Daniel Tryba
On Tue, Jan 24, 2017 at 03:50:24PM +, Pranathi Venkatayogi wrote:
>   I am using Kamailio behind NAT, unable to figure how to make it put “public 
> ip” in Record-route header, I am manually inserting the hard-coded header 
> myself as below.
>   However now I am having trouble choosing the right port number in all 
> scenarios.


Take a look at https://www.kamailio.org/wiki/cookbooks/4.4.x/core#listen
and the mentioned set_advertised_address() / set_advertised_port() cfg
functions.

To quote the documentation:
 A typical use case for advertise address is when running SIP server
 behind a NAT/Firewall, when the local IP address (to be used for bind)
 is different than the public IP address (to be used for advertising). 


___
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] How to determine correct port to set in record-route header

2017-01-24 Thread Pranathi Venkatayogi
Any help?

From: Pranathi Venkatayogi
Sent: Monday, January 23, 2017 2:35 PM
To: 'Kamailio (SER) - Users Mailing List' 
Subject: How to determine correct port to set in record-route header

Hi,
  I am using Kamailio behind NAT, unable to figure how to make it put “public 
ip” in Record-route header, I am manually inserting the hard-coded header 
myself as below.
  However now I am having trouble choosing the right port number in all 
scenarios.

$var(dstPort) = 5061;
if (dst_port==5060)
{
   $var(dstPort) = 5060;
}
insert_hf("Record-Route: 
\r\n", 
"Record-Route");

   In one scenario I see the conflicting port numbers in “via” header vs 
“Record route”.
   The ACK is being set to port 5060 based on Record route header and is not 
being received by the callee.

2017-01-23 14:52:49.970233 [blink.exe 2780]: SENDING: Packet 11, +0:00:36.411867
10.0.27.108:58217 -(SIP over TLS)-> 172.31.211.31:5061
SIP/2.0 180 Ringing
Via: SIP/2.0/TLS 
63.149.103.72:5061;received=172.31.211.31;branch=z9hG4bK4799.7067bd2a48063748a4c353fa408eaefa.0
Via: SIP/2.0/UDP 
10.0.16.52;rport=5060;branch=z9hG4bK4799.935a27c6ef5ad112225964cbe7c1be44.0;i=2
Via: SIP/2.0/TLS 
10.11.200.12:51793;rport=51793;received=10.11.200.12;branch=z9hG4bKPj49f6aeca3f9b4155ab4c5304b544aa4d;alias
Record-Route: 
Record-Route: 
Call-ID: 09ce10efa6a946bf9445ccc21857393e
From: "cust1" 
;tag=95082caabecc42548c2fec5ccd29e5de
To: 
;tag=ec365cc8489b48a7bc5725d21b7d97a1
CSeq: 17422 INVITE
Server: Blink 3.0.0 (Windows)
Contact: 
Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, 
REFER
Content-Length:  0
Questions:
1. How can I let in-built record-route function automatically choose “public 
ip” so I can get rid of my manual insertion altogether.
2. If no option, what is the right way to choose the port on which packet is 
being received, so it is same as what is on “VIA”.
3. Any other pointers to improve the logic here?

___
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] RFC: Kamailio tutorials/cookbooks/docs - wiki or markdown

2017-01-24 Thread Daniel-Constantin Mierla
Hello,


On 23/01/2017 15:44, Daniel-Constantin Mierla wrote:
> Hello,
>
> I want to start a discussion about some of the kamailio tutorials from
> the wiki, mainly those related to core cookbook, variables and
> transformations. They are now in dokuwiki at:
>
>- https://www.kamailio.org/wiki/#cookbooks
>
> The wiki served us pretty well so far, however the contributions there
> are not that active. From time to time we still get spammers, even we
> added restriction that only registered and authenticated users can write.
>
> I am thinking that maybe people don't like creating yet another account
> just add some example or rephrase for clarity.
>
> On the other hand, there are over 400 registered users, many of them I
> expect to be either made because if misunderstanding the purpose or by
> spammers that guessed the (sip) captcha (plenty of random usernames).
>
> Besides that I think the wiki adds overhead when releasing a new version
> as each time we have to copy and paste old version content to a new set
> of pages and update the version number.
>
> With the above in mind, I wonder if won't be better to store those
> tutorials in markdown format and use mkdocs.org or gitbook
> (https://github.com/GitbookIO/gitbook) tools to generate the html and
> host it in kamailio.org. The wiki will still be used to index them.
>
> Among the benefits I see:
>
>* store in github.com (a new repo, like: kamailio-docs) and all devs
> can contribute directly, other users can make pull requests
>
>* create branches for each major version of kamailio and backport
> across them with git whenever is applicable
>
>* the edit can be done directly via github.com website (similar to
> the wiki right now) and even read it directly from github in html
> transformed from markdown by github
>
>* one can get them offline by cloning the git repo, use them or
> enhance when offline
>
> Many if the tutorials will stay in the wiki, but I think those that are
> related to documenting per kamailio version should be migrated to gihub
> storage + markdown. If there is a strong pro opinion for this change, I
> can try to convert one of the cookbooks very soon so people can feel
> better the difference. If we get to a consensus, then I think we can
> have those tutorials in the new format for v5.0.
>
> Should anyone have comments, other suggestions or improvements, let's
> put them on debate.

I created the markdown version for the tutorial to install Kamailio
devel from git to make it easier to compare.

The html version build with mkdocs (http://mkdocs.org) is available in
html format at:

   - http://kamailio.org/docs/tutorials/kamailio-install-guide-git-devel/

Git repo is at:

  -
https://github.com/kamailio/kamailio-docs/tree/master/kamailio-install-guide-git

Viewing the content via github:

  -
https://github.com/kamailio/kamailio-docs/blob/master/kamailio-install-guide-git/docs/index.md

You can compare with the old tutorial in the wiki:

   - https://www.kamailio.org/wiki/install/devel/git

Again, the main reason of this discussion is not the look, but the
collaboration mechanisms and tools behind building the docs and
maintaining/versioning them.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
www.asipto.com
Kamailio World Conference - May 8-10, 2017 - 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] FOSDEM 2017

2017-01-24 Thread Federico Cabiddu
Hi,
I'll be there and willing to participate to the dinner!

Cheers,

Federico

On Tue, Jan 24, 2017 at 3:04 PM, Daniel-Constantin Mierla  wrote:

> Hello,
>
> anyone else interested in having a dinner event at Fosdem?
>
> Soon there has to be a decision and hopefully Torrey (cc-ed) can help
> again like last year.
>
> Cheers,
> Daniel
>
>
> On 22/01/2017 13:40, DanB wrote:
> > Hey Daniel,
> >
> > if anything to be reserved, please count us also in. Will come back
> > regarding number of seats but just to be aware that we are interested
> > to join the dinner.
> >
> > Thanks!
> >
> > DanB
> >
> > ___
> > 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
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) -
> www.asipto.com
> Kamailio World Conference - May 8-10, 2017 - 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
>
___
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] FOSDEM 2017

2017-01-24 Thread Daniel-Constantin Mierla
Hello,

anyone else interested in having a dinner event at Fosdem?

Soon there has to be a decision and hopefully Torrey (cc-ed) can help
again like last year.

Cheers,
Daniel


On 22/01/2017 13:40, DanB wrote:
> Hey Daniel,
>
> if anything to be reserved, please count us also in. Will come back
> regarding number of seats but just to be aware that we are interested
> to join the dinner.
>
> Thanks!
>
> DanB
>
> ___
> 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
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
www.asipto.com
Kamailio World Conference - May 8-10, 2017 - 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] Event when acc is written?

2017-01-24 Thread Daniel-Constantin Mierla
Hello,



On 24/01/2017 12:23, Tobias wrote:
>
> Hi!
>
>
> I'm wondering if there is a way for the acc-module to notify/send an
> event to Kamailio (so I can pick it up from the config, similar to
> event_route) once the acc-module has performed a write?
>
>
> As an example I'm using acc and db-mysql to store acc data in MySQL,
> but instead of having a service polling the MySQL for new acc's
> written I'd like to make Kamailio send an event once an acc-row has
> been written. I realize this could most likely be done by using MySQL
> triggers "ON INSERT", but I'm wondering if there is another (reliable)
> way to do this directly from within Kamailio?
>
>
> I haven't tested it, but I would guess that if I tried to use for
> example event_route[dialog:end] there could be times where the event
> would hit Kamailio before the acc-module have written to missed_calls?
>
>
>
Do you still want the acc record to be written in the database or catch
the event before storing and directing it somewhere else?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
www.asipto.com
Kamailio World Conference - May 8-10, 2017 - 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] (no subject)

2017-01-24 Thread Daniel-Constantin Mierla
Hello,

I am open for any contribution to the code here, that's not a problem.

The log messages are from the core and relevant to troubleshoot when
some routing info is not good, so there has to be a switch to control
them. If you want a new global parameter to control it, I am not against
such changes, but I assume you still want to turn it on/off at runtime
via a rpc command whenever the IP is assigned or taken away from the
network interface, right?

Cheers,
Daniel


On 24/01/2017 12:43, jay binks wrote:
> Hi Daniel,
>
> Sorry, but Id like to dig this old subject up again.
> I know you said I can change debug level when the IP fails over, but
> that just feels nasty, and I dont really like it.
>
> Id like to ask again, if we can have these logged at a different log
> level ??
> ( its nore informational, maybe Debug or similar ? )
>
> if can we have a flag in kamailio, that says "im
> using ip_nonlocal_bind", so dont show these errors.. they are expected
> ( in some cases )
>
> Pretty Please !! :)
>
> Jay
>
>
>
>
>
>
> On 29 June 2016 at 20:36, jay binks  > wrote:
>
> haha wow yea ok, that is one option.
> I might investigate that.
>
> Thanks ! 
>
> On 29 June 2016 at 20:31, Daniel-Constantin Mierla
> mailto:mico...@gmail.com>> wrote:
>
> Hello,
>
> a solution: you can decrease/increase the debug parameter
> value via mi/rpc based on whether the ip is assigned or not to
> the host, like:
>
> kamctl mi debug -2
>
> The increase it to the default when the ip is assigned.
>
> Cheers,
> Daniel
>
>
> On 29/06/16 11:47, jay binks wrote:
>> Nah these are physical hosts in colocated DC space.
>>
>> so just for clarity, the issue is not with the floating IP.
>> that works perfect, as does keepalived
>> and net.ipv4.ip_nonlocal_bind =1
>>
>> my ONLY issue is that the non master host logs a LOT of messages,
>> because it dosnt have the floating IP ( and thus cant send
>> SIP OPTIONS, originating from the floating IP )
>>
>> I realise this cant be fixed..  I just want to hide the log
>> messages :P
>> EG: tell kamailio its in "nonlocal_bind" mode, so... yea dont
>> log the udp_send failed messages in my original message.
>>
>>  
>>
>> On 29 June 2016 at 19:09, Carsten Bock > > wrote:
>>
>> Hi,
>>
>> quick question:
>> Floating IP? Are you on Digital Ocean?
>>
>> DigitalOcean has an issue with UDP checksums on Floating
>> IPs. They've
>> been working on a fix, but that's not yet resolved.
>>
>> Quote from our Ticket:
>> "We're definitely working on fixing this, but have
>> managed to track
>> the issue upstream into open-vswitch itself! We're
>> working on fixing
>> it, but it'll take longer. Turns out, we're not the only
>> ones to see
>> this - we found a similar bug going on on the Google cloud!"
>>
>> Thanks,
>> Carsten
>>
>> 2016-06-29 9:55 GMT+02:00 jay binks > >:
>> > So here are my listen lines.
>> >
>> > listen=127.0.0.1
>> > listen=1.2.3.4
>> > listen=1.2.3.5
>> >
>> > perhaps I can remove the localhost listen, but I doubt
>> thats relevant here.
>> >
>> > I have changed the IPS for the next 2 listen lines just
>> so my IP's are not
>> > on the list archive.
>> >
>> > 1.2.3.4 is my floating IP
>> >
>> > 1.2.3.5 is a fixed IP on the box.
>> >
>> > The kamailio messages im talking about are complaining
>> because that
>> > particular box is not the master, and does not have the
>> floating ip at that
>> > point of time.
>> >
>> >
>> >
>> >
>> >
>> >
>> > On 28 June 2016 at 15:03, Joel Serrano | VOZELIA
>> mailto:j...@vozelia.com>> wrote:
>> >>
>> >> Hi Jay,
>> >>
>> >> Can you paste your listen= lines from kamailio.cfg?
>> >>
>> >> Best regards,
>> >> Joel.
>> >>
>> >> - Original Message -
>> >> > From: "jay binks" > >
>> >> > To: "Kamailio (SER) - Users Mailing List"
>> >> > > >
>> >> > Sent: Sunday, June 26, 2016 8:40:47 PM
>> >> > Subject: Re: [SR-Users] (no subject)
>> >>
>>

Re: [SR-Users] (no subject)

2017-01-24 Thread jay binks
Hi Daniel,

Sorry, but Id like to dig this old subject up again.
I know you said I can change debug level when the IP fails over, but that
just feels nasty, and I dont really like it.

Id like to ask again, if we can have these logged at a different log level
??
( its nore informational, maybe Debug or similar ? )

if can we have a flag in kamailio, that says "im using ip_nonlocal_bind",
so dont show these errors.. they are expected ( in some cases )

Pretty Please !! :)

Jay






On 29 June 2016 at 20:36, jay binks  wrote:

> haha wow yea ok, that is one option.
> I might investigate that.
>
> Thanks !
>
> On 29 June 2016 at 20:31, Daniel-Constantin Mierla 
> wrote:
>
>> Hello,
>>
>> a solution: you can decrease/increase the debug parameter value via
>> mi/rpc based on whether the ip is assigned or not to the host, like:
>>
>> kamctl mi debug -2
>>
>> The increase it to the default when the ip is assigned.
>> Cheers,
>> Daniel
>>
>>
>> On 29/06/16 11:47, jay binks wrote:
>>
>> Nah these are physical hosts in colocated DC space.
>>
>> so just for clarity, the issue is not with the floating IP.
>> that works perfect, as does keepalived and net.ipv4.ip_nonlocal_bind =1
>>
>> my ONLY issue is that the non master host logs a LOT of messages,
>> because it dosnt have the floating IP ( and thus cant send SIP OPTIONS,
>> originating from the floating IP )
>>
>> I realise this cant be fixed..  I just want to hide the log messages :P
>> EG: tell kamailio its in "nonlocal_bind" mode, so... yea dont log the 
>> udp_send
>> failed messages in my original message.
>>
>>
>>
>> On 29 June 2016 at 19:09, Carsten Bock  wrote:
>>
>>> Hi,
>>>
>>> quick question:
>>> Floating IP? Are you on Digital Ocean?
>>>
>>> DigitalOcean has an issue with UDP checksums on Floating IPs. They've
>>> been working on a fix, but that's not yet resolved.
>>>
>>> Quote from our Ticket:
>>> "We're definitely working on fixing this, but have managed to track
>>> the issue upstream into open-vswitch itself! We're working on fixing
>>> it, but it'll take longer. Turns out, we're not the only ones to see
>>> this - we found a similar bug going on on the Google cloud!"
>>>
>>> Thanks,
>>> Carsten
>>>
>>> 2016-06-29 9:55 GMT+02:00 jay binks < 
>>> jaybi...@gmail.com>:
>>> > So here are my listen lines.
>>> >
>>> > listen=127.0.0.1
>>> > listen=1.2.3.4
>>> > listen=1.2.3.5
>>> >
>>> > perhaps I can remove the localhost listen, but I doubt thats relevant
>>> here.
>>> >
>>> > I have changed the IPS for the next 2 listen lines just so my IP's are
>>> not
>>> > on the list archive.
>>> >
>>> > 1.2.3.4 is my floating IP
>>> >
>>> > 1.2.3.5 is a fixed IP on the box.
>>> >
>>> > The kamailio messages im talking about are complaining because that
>>> > particular box is not the master, and does not have the floating ip at
>>> that
>>> > point of time.
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On 28 June 2016 at 15:03, Joel Serrano | VOZELIA 
>>> wrote:
>>> >>
>>> >> Hi Jay,
>>> >>
>>> >> Can you paste your listen= lines from kamailio.cfg?
>>> >>
>>> >> Best regards,
>>> >> Joel.
>>> >>
>>> >> - Original Message -
>>> >> > From: "jay binks" < jaybi...@gmail.com>
>>> >> > To: "Kamailio (SER) - Users Mailing List"
>>> >> > 
>>> >> > Sent: Sunday, June 26, 2016 8:40:47 PM
>>> >> > Subject: Re: [SR-Users] (no subject)
>>> >>
>>> >> > I cant believe I sent this without a subject... OOPS !
>>> >> > if I might re-post ( with a subject ) if there are no replies in a
>>> few
>>> >> > days.
>>> >>
>>> >> > On 25 June 2016 at 10:40, jay binks < 
>>> jaybi...@gmail.com > wrote:
>>> >>
>>> >> >> Hi Guys,
>>> >>
>>> >> >> Im using a keepalived solution between 2 kamailio boxes, with
>>> >> >> net.ipv4.ip_nonlocal_bind =1 .
>>> >>
>>> >> >> On the "non master" I pretty much constantly get these logs in
>>> syslog.
>>> >> >> What Im looking for is a way to suppress these because they are
>>> >> >> expected in my
>>> >> >> configuration.
>>> >>
>>> >> >> is there any way to tell kamailio to not log this... ( or at
>>> least, not
>>> >> >> at CRIT
>>> >> >> and ERROR )
>>> >>
>>> >> >> Jun 25 10:32:53 lb2 /usr/sbin/kamailio[24869]: ERROR: tm
>>> >> >> [../../forward.h:208]:
>>> >> >> msg_send(): udp_send failed
>>> >>
>>> >> >> Jun 25 10:32:53 lb2 /usr/sbin/kamailio[24869]: ERROR: 
>>> >> >> [udp_server.c:576]:
>>> >> >> udp_send(): sendto(sock,0x7fc0732d5ab0,
>>> 380,0,xxx.xxx.xxx.xxx:5060,16):
>>> >> >> Invalid
>>> >> >> argument(22)
>>> >>
>>> >> >> Jun 25 10:32:53 lb2 /usr/sbin/kamailio[24869]: CRITICAL: 
>>> >> >> [udp_server.c:581]: udp_send(): invalid sendtoparameters#012one
>>> >> >> possible reason
>>> >> >> is the server is bound to localhost and#012attempts to send to the
>>> net
>>> >>
>>> >> >> --
>>> >> >> Sincerely
>>> >>
>>> >> >> Jay
>>> >>
>>> >> >> ___
>>> >> >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>>> list
>>> >> >> sr-users@lists.sip-router.org
>>> >> >> http://lists.sip-rout

Re: [SR-Users] kamdbctl error.

2017-01-24 Thread Daniel-Constantin Mierla
Hello,

try to set CHARSET env variable either in shell, command line or
kamctlrc. For example:

# CHARSET=latin1 kamdbctl create

Cheers,
Daniel


On 24/01/2017 10:50, Venkatesh Macha wrote:
> Hi Daniel,
>
>Thanks for your response,  I think there is character set mismatch in my
> VM. Is there any posibility to set character set while running the command.
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://sip-router.1086192.n5.nabble.com/kamdbctl-error-tp155288p155314.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

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
www.asipto.com
Kamailio World Conference - May 8-10, 2017 - 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


[SR-Users] Event when acc is written?

2017-01-24 Thread Tobias
Hi!


I'm wondering if there is a way for the acc-module to notify/send an event to 
Kamailio (so I can pick it up from the config, similar to event_route) once the 
acc-module has performed a write?


As an example I'm using acc and db-mysql to store acc data in MySQL, but 
instead of having a service polling the MySQL for new acc's written I'd like to 
make Kamailio send an event once an acc-row has been written. I realize this 
could most likely be done by using MySQL triggers "ON INSERT", but I'm 
wondering if there is another (reliable) way to do this directly from within 
Kamailio?


I haven't tested it, but I would guess that if I tried to use for example 
event_route[dialog:end] there could be times where the event would hit Kamailio 
before the acc-module have written to missed_calls?


Thanks!

/Tobias
___
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] kamdbctl error.

2017-01-24 Thread Venkatesh Macha
Hi Daniel,

   Thanks for your response,  I think there is character set mismatch in my
VM. Is there any posibility to set character set while running the command.

Thanks



--
View this message in context: 
http://sip-router.1086192.n5.nabble.com/kamdbctl-error-tp155288p155314.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] kamctl cr reload got 500 failed to re-built tree

2017-01-24 Thread Daniel-Constantin Mierla
Hello,

a reload at runtime is different than a load at startup, because it
typically requires twice the size of the memory. The old records are
kept in memory until all the new records are loaded in a separate
structure. Once that is done, the active structure is swapped and the
old one is freed. This is what happens with most of the modules I use
(e.g., dispatcher) and I expect to be the same for carrierroute.

Cheers,
Daniel


On 24/01/2017 11:14, Igor Potjevlesch wrote:
>
> Hello Daniel,
>
>  
>
> I don't see anything into /var/log/messages.
>
> I can try to allocate additional shared memory for Kamailio and try again.
>
>  
>
> If I restart Kamailio, it works fine.
>
> Regards,
>
>  
>
> Igor.
>
>  
>
>  
>
> *De :*sr-users [mailto:sr-users-boun...@lists.sip-router.org] *De la
> part de* Daniel-Constantin Mierla
> *Envoyé :* lundi 23 janvier 2017 20:53
> *À :* Kamailio (SER) - Users Mailing List 
> *Objet :* Re: [SR-Users] kamctl cr reload got 500 failed to re-built tree
>
>  
>
> Hello,
>
>  
>
> On 23/01/2017 17:15, Igor Potjevlesch wrote:
>
> Hello,
>
>  
>
> With more than 173k entriers into carrierroute, now I'm doing
> "kamctl cr reload", I got the following reply:500 failed to
> re-built tree, see log
>
>  
>
> What could going wrong?
>
> not a user of the module, but it might be the case if insufficient
> shared memory. Have you looked inside the syslog file for the error
> messages?
>
> Cheers,
> Daniel
>
>
> -- 
> Daniel-Constantin Mierla
> www.twitter.com/miconda  -- 
> www.linkedin.com/in/miconda 
> Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
> www.asipto.com 
> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com 
> 
>
>
> 
> Avast logo
> 
>   
>
> L'absence de virus dans ce courrier électronique a été vérifiée par le
> logiciel antivirus Avast.
> www.avast.com
> 
>
>
>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
www.asipto.com
Kamailio World Conference - May 8-10, 2017 - 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] kamctl cr reload got 500 failed to re-built tree

2017-01-24 Thread Igor Potjevlesch
Hello Daniel,



I don't see anything into /var/log/messages.

I can try to allocate additional shared memory for Kamailio and try again.



If I restart Kamailio, it works fine.

Regards,



Igor.





De : sr-users [mailto:sr-users-boun...@lists.sip-router.org] De la part de 
Daniel-Constantin Mierla
Envoyé : lundi 23 janvier 2017 20:53
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] kamctl cr reload got 500 failed to re-built tree



Hello,



On 23/01/2017 17:15, Igor Potjevlesch wrote:

Hello,



With more than 173k entriers into carrierroute, now I'm doing "kamctl cr 
reload", I got the following reply: 500 failed to re-built tree, see log



What could going wrong?

not a user of the module, but it might be the case if insufficient shared 
memory. Have you looked inside the syslog file for the error messages?

Cheers,
Daniel




--
Daniel-Constantin Mierla
www.twitter.com/miconda   -- 
www.linkedin.com/in/miconda 
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - 
www.asipto.com 
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com 



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus
___
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