Re: [SR-Users] How to turn on debugging in kamailio?

2014-03-28 Thread Olle E. Johansson
On 27 Mar 2014, at 21:31, mark li limar...@yahoo.com wrote: Olle I've added some debug statements using the XLOG function like so: xlog(L_INFO, my custom message); but none of my debug statements appear in syslog. I don't get any errors either when I restart kamailio. any

[SR-Users] dialog expire, acc

2014-03-28 Thread Kelvin Chua
I have a situation here, when a dialog expires, it sends a BYE to both call legs and this does not generate an entry on acc table. however, when i use acc_db_request() on event_route[tm:local-request], i get 2 entries on acc, 1 for the downstream, and 1 for the upstream. is there a way of

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Alex Balashov
On 03/28/2014 03:53 AM, Kelvin Chua wrote: I have a situation here, when a dialog expires, it sends a BYE to both call legs and this does not generate an entry on acc table. however, when i use acc_db_request() on event_route[tm:local-request], i get 2 entries on acc, 1 for the downstream,

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Alex Balashov
Oh, you were talking about the BYEs that are internally generated by 'dialog'. In that case, ignore my advice; it's not applicable, because locally generated BYEs will not have the RR header and this won't work. In those situations, in my personal opinion, your best bet is to use a

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Kelvin Chua
Hi Alex, yes, locally generated BYEs I was trying to avoid the unique constraint approach as it is not very elegant. I tried, AVPs, they are not accessible on the event_route[tm:local-request] however, your idea on $dlg_vars was spot on, why didn't i think of that. Thanks a bunch! Kelvin Chua

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Alex Balashov
On 03/28/2014 04:32 AM, Kelvin Chua wrote: I tried, AVPs, they are not accessible on the event_route[tm:local-request] That's because AVPs are only transaction-persistent, not dialog-persistent. however, your idea on $dlg_vars was spot on, why didn't i think of that. Thanks a bunch!

[SR-Users] Dimension a kamailio server

2014-03-28 Thread Rizwan Khan
HI Guys, can you refer me to some resources which help me dimension the hardware for a setup. Total users will be 20,000. What percentage should i assume for concurrent audio and video calls? What is the standard practice? How does this all map to the cpu, ram and storage etc. given that I will

Re: [SR-Users] Dimension a kamailio server

2014-03-28 Thread Alex Balashov
1. Kamailio does not handle RTP, so audio is not a scaling factor at all; 2. The only scaling factors are transactional memory (TM) and any dialog state you are keeping; 3. Without I/O wait from external sources, Kamailio can handle a practically infinite amount of concurrent calls and CPS.

Re: [SR-Users] How to turn on debugging in kamailio?

2014-03-28 Thread mark li
Here's a copy of my cfg file:  http://pastebin.com/GtDwWKWr I tried to run with the switches you mentioned... but i still don't get anything logged to syslog. ? sorry... and thanks for your patience. From: Olle E. Johansson o...@edvina.net To: mark li

[SR-Users] Forward copy of Register information to FreeSWITCH

2014-03-28 Thread Alexandr Usov
I am already have some practice to integrate Kamailio with Asterisk, when all users creates and registers in Kamailio, and calls go to/from Asterisk with static host=kamailio_ip settings for each user on Asterisk side. I can't (don't know - how to) use in same way integration with FreeSWITCH.

[SR-Users] Disjoint REGISTER and INVITE username/uri sets

2014-03-28 Thread James Cloos
Given a proxy where the only registrations will be next-hop pbxes, where those names will not be INVITEable, what is the ideal way to tell kama the list of accepted usernames and authentication info for REGISTER? It is important to ensure that any INVITE to any of the REGISTERable usernames 404s.

Re: [SR-Users] Dimension a kamailio server

2014-03-28 Thread Rizwan Khan
Thanks Alex. What are the components that I should take into account. Based on answer in another thread I will be using SIP trunk with an NGN to route the outside traffic (other than SIP-SIP). I'll have NATed clients so I'll need the media proxy or rtp proxy as well. What about their

Re: [SR-Users] Forward copy of Register information to FreeSWITCH

2014-03-28 Thread Frank Carmickle
On Mar 28, 2014, at 11:36 AM, Alexandr Usov blessen...@gmail.com wrote: I am already have some practice to integrate Kamailio with Asterisk, when all users creates and registers in Kamailio, and calls go to/from Asterisk with static host=kamailio_ip settings for each user on Asterisk side.

[SR-Users] Crash on REGISTER

2014-03-28 Thread Igor Potjevlesch
Hello, I experienced an issue yesterday. I move a customer to Kamailio 4.0.4 (previously he was on an old SER instance without issue). He uses the same SIP account for connecting two IPBX (same platform, same firmware). When the second REGISTER came on Kamailio and, may be 500ms/1s after

Re: [SR-Users] Crash on REGISTER

2014-03-28 Thread Daniel-Constantin Mierla
Hello, it is recommended to use the latest 4.0.x, which is 4.0.6 at this moment. There was a fix to registrar module that might be the reason of the issue you faced. On the other hand, the backtrace is important, send the output of: bt full Cheers, Daniel On 28/03/14 19:10, Igor

Re: [SR-Users] Disjoint REGISTER and INVITE username/uri sets

2014-03-28 Thread Daniel-Constantin Mierla
Hello, if you want caching, look at htable or mtree modules, if you want with database real time query, see auth_db is_subscriber() or just use slqops. Cheers, Daniel On 28/03/14 17:53, James Cloos wrote: Given a proxy where the only registrations will be next-hop pbxes, where those names

[SR-Users] rport

2014-03-28 Thread Marc Soda
I have a Kamailio server forwarding REGISTERs to an Asterisk box, similar to the way Daniel shows here: http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb Can I force Kamailio to append rport=5060 to the topmost Via header, prior to forwarding the REGISTER to Asterisk?

Re: [SR-Users] rport

2014-03-28 Thread Marc Soda
Basically, I'm trying to get Asterisk to send all future INVITEs to Kamailio on port 5060 and not the source port of the REGISTER. My REGISTER looks like this: U 1.1.1.1:59738 - 2.2.2.2:5060 REGISTER sip:2.2.2.2:5060 SIP/2.0. Via: SIP/2.0/UDP 1.1.1.1:5060;branch=z9hG4bK404.05c2e5a7.0. Via:

Re: [SR-Users] rport

2014-03-28 Thread Daniel-Constantin Mierla
Hello, rport and Via headers are used for routing the SIP responses back to the device sending the request. They are not used at all for routing INVITE requests. The tutorial you refer to is generating a new REGISTER from Kamailio to Asterisk, putting in it the Contact header with the

Re: [SR-Users] Forward copy of Register information to FreeSWITCH

2014-03-28 Thread Richard Brady
Hi Alexandr On 28 March 2014 15:36, Alexandr Usov blessen...@gmail.com wrote: I am already have some practice to integrate Kamailio with Asterisk, when all users creates and registers in Kamailio, and calls go to/from Asterisk with static host=kamailio_ip settings for each user on Asterisk

Re: [SR-Users] rport

2014-03-28 Thread Marc Soda
I'm rewriting the Contact header in the REGISTER to be Kamailio on port 5060. For some reason Asterisk is sending INVITEs on the source port of the message and not 5060. I thought rport would correct that, but it sounds like rport is only intended to for subsequent messages in a given

[SR-Users] Kamailio custom header stored in acc db_extra

2014-03-28 Thread Ryan Brindley
Hey community, I'm trying to get a 2nd leg custom header value stored in my acc table. Right now I'm appending the header with append_hf in a failure route and trying to use: modparam(acc,db_extra,custom=$hdr(Custom)) A sip trace shows the header was properly added and xlog output shows the

Re: [SR-Users] Kamailio custom header stored in acc db_extra

2014-03-28 Thread Ryan Brindley
It's also worth noting that I tried to use avp and it successfully added the custom value, but was causing Kamailio to crash once it tried to handle multiple calls at once. I'm pretty green to Kamailio, so you'll have to pardon my inexperience on this probably pretty easy question. On Fri, Mar

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Kelvin Chua
It worked! perfect Kelvin Chua On Fri, Mar 28, 2014 at 1:34 AM, Alex Balashov abalas...@evaristesys.comwrote: On 03/28/2014 04:32 AM, Kelvin Chua wrote: I tried, AVPs, they are not accessible on the event_route[tm:local-request] That's because AVPs are only transaction-persistent, not

Re: [SR-Users] Kamailio custom header stored in acc db_extra

2014-03-28 Thread Daniel-Constantin Mierla
Hello, On 28/03/14 19:58, Ryan Brindley wrote: Hey community, I'm trying to get a 2nd leg custom header value stored in my acc table. Right now I'm appending the header with append_hf in a failure route and trying to use: modparam(acc,db_extra,custom=$hdr(Custom)) A sip trace shows the

Re: [SR-Users] Kamailio custom header stored in acc db_extra

2014-03-28 Thread Daniel-Constantin Mierla
Should not crash, can you send the backtrace from the core dump? What version are you using? Also, setting debug=3 in config file and sending the log messages will help. Saving $avps() is something very common in my configs and haven't encountered any issues in the past years. Cheers,

[SR-Users] Trying to dial 4000 into freeswitch's vmail system - Kam Proxy returning Status 403: Not allowed

2014-03-28 Thread mark li
Hi there.  I'm still trying to integrate Kamailio and freeswitch... where kamailio acts as a proxy and registrar ... and freeswitch provides conference calls and voicemail.  I have calls between two polycoms working and conference calls work.  But when I try to leave a voice message for a user

Re: [SR-Users] Kamailio custom header stored in acc db_extra

2014-03-28 Thread Ryan Brindley
I wasn't using msg_apply_changes and I could've been wrong that it showed up. That was yesterday when I was testing that. One of my tests though did get xlog to show the variable, but it could've been with avp. I'll convert my configs back to using avp and begin testing again with multiple

Re: [SR-Users] Patch to support symmetric UDP socket in mi_datagram

2014-03-28 Thread Daniel-Constantin Mierla
Thanks for the patch. Can you resend it without commented code? Just remove the lines that are no longer used, to have clean code. Cheers, Daniel On 28/03/14 01:29, Muhammad Shahzad wrote: Hi, After wasting most of the day trying to make mi_datagram over UDP socket work. I eventually

Re: [SR-Users] Trying to dial 4000 into freeswitch's vmail system - Kam Proxy returning Status 403: Not allowed

2014-03-28 Thread mark li
I found a part of the problem.  The kam cfg reg ex had a typo, which i've removed.   1. route[FSVBOX] { 2.         if(!($rU=~^1[0-9][0-9]+$)) 3.                 return; 4.         prefix(vb-); 5.         route(FSRELAY); 6. } So now when I dial

Re: [SR-Users] Kamailio custom header stored in acc db_extra

2014-03-28 Thread Ryan Brindley
Okay, good news. After reverting back to using avp, I'm handling 1000+ ports without any issues. Not sure what was wrong during the previous test, but it doesn't appear to be here now. Thanks for your help Daniel Ryan Ryan Brindley Software Development Officer Stratics Networks, Inc.

Re: [SR-Users] Patch to support symmetric UDP socket in mi_datagram

2014-03-28 Thread Muhammad Shahzad
Please find attached updated patch as requested. On Fri, Mar 28, 2014 at 8:49 PM, Daniel-Constantin Mierla mico...@gmail.com wrote: Thanks for the patch. Can you resend it without commented code? Just remove the lines that are no longer used, to have clean code. Cheers, Daniel On

Re: [SR-Users] Patch to support symmetric UDP socket in mi_datagram

2014-03-28 Thread Daniel-Constantin Mierla
Have you tested with async mi commands? The function build_async_handler() is cloning the information in shared memory, expecting that the response to the mi command to be done from another process. In that case, the socket is no longer valid, because it was created only in the mi process. I

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 Mar 28

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

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Alex Balashov
Sweet! On 28 March 2014 15:24:10 GMT-04:00, Kelvin Chua kel...@gmail.com wrote: It worked! perfect Kelvin Chua On Fri, Mar 28, 2014 at 1:34 AM, Alex Balashov abalas...@evaristesys.comwrote: On 03/28/2014 04:32 AM, Kelvin Chua wrote: I tried, AVPs, they are not accessible on the

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 mico...@gmail.com To: Slava Bendersky volga...@networklab.ca, Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org

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

Re: [SR-Users] kamailio db

2014-03-28 Thread Slava Bendersky
Hello Daniel, After looking on debug I have question, about this debug 9(2046) DEBUG: core [parser/parse_addr_spec.c:893]: parse_addr_spec(): end of header reached, state=29 9(2046) DEBUG: core [parser/msg_parser.c:190]: get_hdr_field(): DEBUG: get_hdr_field: To [82];

Re: [SR-Users] Patch to support symmetric UDP socket in mi_datagram

2014-03-28 Thread Muhammad Shahzad
humm, When datagram server is initialized in method mi_init_datagram_server, it set tx_sock equal to rx_sock, instead of creating a new reply socket. So that when an async command is received in method mi_datagram_server with tx_sock reference, i pass it to build_async_handler method which is