Re: [SR-Users] Kamailio support for 5g

2020-09-18 Thread YASIN CANER
Hello ,
İt is a deployment option. Pcf can provide N interface and/or rx interface!

Best regards

iPhone’umdan gönderildi

Pavithra Mohanraja  şunları yazdı (18 Eyl 2020 14:33):


Hi,
I am using kamailio IMS server 5.3.6  where i am trying to integrate PCSCF and 
PCF (5g) over Rx Interface where PCF is accepting only the http messages. But 
from pcscf, I am unable to send the http messages thats where i am facing the 
problem. Can you give me some guidelines.

Thanks,
Pavithra

On Fri, Sep 18, 2020 at 4:59 PM Daniel-Constantin Mierla 
mailto:mico...@gmail.com>> wrote:

Hello,

Kamailio is a SIP server and its role in 5G is to connect the devices for voice 
(maybe video) calls and eventually SMS. I haven't heard of using other protocol 
than SIP for these purposes.

In other words, it is not a full 5G platform nor offers network access 
management system, some of these are handled at a lower level (e.g., EPC).

Cheers,
Daniel

On 18.09.20 13:20, Pavithra Mohanraja wrote:
Hi,

Does kamailio IMS support for 5g Network functions since in 5g everything is 
handled via http requests.

Could anyone please respond

Thanks,
Pavithra



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- 
www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to install kamailio symbols for debugging

2019-09-07 Thread YASIN CANER
Hello,

I want to debug kamailio with gdb  or try to get core.dump file but i failed. 
GDB wants to kamailio symbols. How to install them?

on Ubuntu - raspberry PI
Best regards.

Yasin CANER
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 4.4.4 fills IPv6 contact address when sending packet over IPv4

2019-07-11 Thread YASIN CANER
Hello,

did you try to set parameter server address?
http://kamailio.org/docs/modules/5.2.x/modules/pua_reginfo.html#idm1031504764
pua_reginfo Module - 
kamailio.org<http://kamailio.org/docs/modules/5.2.x/modules/pua_reginfo.html#idm1031504764>
Keeping different Servers in Sync regarding the location database Get notified, 
when a user registers: A presence-server, which handles offline message storage 
for an account, would get notified, when the user comes online.
kamailio.org


Yasin CANER


From: sr-users  on behalf of Pali Rohár 

Sent: Wednesday, July 10, 2019 9:29 PM
To: sr-users@lists.kamailio.org
Subject: Re: [SR-Users] kamailio 4.4.4 fills IPv6 contact address when sending 
packet over IPv4

Hi! Do you have any idea why Kamailio fills incorrect address into
Contact header? And how to avoid it?

On Sunday 30 June 2019 23:11:22 Pali Rohár wrote:
> Hi!
>
> I detected strange problem that sip.linphone.org refuse to accept
> presence information re-transmitted by kamailio 4.4.4 server.
>
> I debug this problem with tcpdump and I found out that problem is in
> kamailio which fills IPv6 address into UDP datagram and that datagram is
> sent via IPv4 socket to IPv4 address, to sip.linphone.org server. And
> sip.linphone.org server does not have IPv6 connectivity, so correctly
> return over IPv4 to sender just "400 Bad Contact Header" error.
>
> On my server is running kamailio 4.4.4 from Debian Stretch and I can
> 100% reproduce this problem against public sip.linphone.org server.
>
> My server has both IPv4 and IPv6 connectivity and kamailio is listening
> for both IPv4 and IPv6 connections.
>
> So why is kamailio sending IPv6 address over IPv4 and therefore makes it
> impossible to communicate with non-IPv6 enabled servers? Looks like a
> problem with choosing default/correct socket for Contact header.
>
> And how to fix this problem? Can you help me? I would like to have
> working interconnection with linphone servers.
>
> Just to note I'm seeing this problem only for presence information
> packets. Other requests, like INVITE or MESSAGE seems to work.
>
> Below is relevant tcpdump output. Some parts were replaced by {VAR}.
>
> PS: I'm not subscribed to list, so please CC my address when sending
> reply. Thank you!
>
>
> 17:22:58.121719 IP (tos 0x10, ttl 64, id 21629, offset 0, flags [none], proto 
> UDP (17), length 1266)
> {MY_IPV4_ADDRESS}.5060 > 91.121.209.194.5060: [bad udp cksum 0xa099 -> 
> 0x9825!] SIP, length: 1238
> NOTIFY 
> sip:{REMOTE_NAME}@{REMOTE_USER_IPV4_ADDRESS}:5060;registering_acc=sip_linphone_org
>  SIP/2.0
> Via: SIP/2.0/UDP 
> {MY_IPV4_ADDRESS};branch=z9hG4bK2b55.88f93c20.0
> To: ;tag=75559182
> From: ;tag=97d8e785fdf42bf9622a64c13c504961-2708
> CSeq: 2 NOTIFY
> Call-ID: 26cf9d5c019af2dc3302b770887bcc2e@0:0:0:0:0:0:0:0
> Route: 
> Content-Length: 597
> User-Agent: kamailio (4.4.4 (x86_64/linux))
> Max-Forwards: 70
> Event: presence
> Contact: 
> Subscription-State: active;expires=3600
> Content-Type: application/pidf+xml
>
> 
>  xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" 
> xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" entity="Pali 
> sip:{MY_SIP_URI}">
> 
> open
> Pali sip:{MY_SIP_URI}
> 
>
>   
> 
>   closed
> 
> sip:{MY_SIP_URI}
> 2019-04-19T17:20:36+02:00
>   
> 
>
> 17:22:58.151188 IP (tos 0x0, ttl 52, id 22949, offset 0, flags [none], proto 
> UDP (17), length 373)
> 91.121.209.194.5060 > {MY_IPV4_ADDRESS}.5060: [udp sum ok] SIP, length: 
> 345
> SIP/2.0 400 Bad Contact Header
> Via: SIP/2.0/UDP 
> {MY_IPV4_ADDRESS};branch=z9hG4bK2b55.88f93c20.0;rport=5060
> From: ;tag=97d8e785fdf42bf9622a64c13c504961-2708
> To: ;tag=75559182
> Call-ID: 26cf9d5c019af2dc3302b770887bcc2e@0:0:0:0:0:0:0:0
> CSeq: 2 NOTIFY
> Content-Length: 0
>
>

--
Pali Rohár
pali.ro...@gmail.com
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [EXT] Re: ICSCF mysql error

2019-06-07 Thread YASIN CANER
Hello,
Could you check preffered_scscf.  in addition, visited network is matched.

Yasin Caner

Bao, Yin mailto:y...@mitre.org>> şunları yazdı (7 Haz 2019 
17:21):

Yes I think you are right it’s the mismatch of uri. However we don’t know which 
configuration resulted that mismatch. Here are a bit more details:

ICSCF prepared this query:

select * from impu where identity=?And it provided 
sip:+al...@irisims.org as the parameter for the query

However the HSS impu table as well as the SIP INVITE only contains: 
sip:al...@irisims.org

I am suspecting the additional + may be causing this mismatch. But where is the 
+ coming from and why ICSCF add this in front of original INVITE line uri?

Thanks!

Yin

From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 on behalf of YASIN CANER 
mailto:caner_y...@hotmail.com>>
Reply-To: "Kamailio (SER) - Users Mailing List" 
mailto:sr-users@lists.kamailio.org>>
Date: Friday, June 7, 2019 at 2:47 AM
To: "Kamailio (SER) - Users Mailing List" 
mailto:sr-users@lists.kamailio.org>>
Subject: [EXT] Re: [SR-Users] ICSCF mysql error

Hello ,


It is a mismatch inconming uri and your uri in hss.

Yasin Caner


Henning Westerholt mailto:h...@skalatan.de>> şunları yazdı (7 
Haz 2019 09:28):

Hello,

not an expert on this particular module, but this is the internal error path 
from the module that probably caused this error reply:

- case RC_IMS_DIAMETER_ERROR_USER_UNKNOWN, will send message with:
- #define MSG_604_USER_UNKNOWN "Does not exist anywhere - HSS User Unknown"

The status comes probably from the CDP module:

diameter_epc_code_result.h
57: RC_EPC_DIAMETER_ERROR_USER_UNKNOWN  
= 5001,

Maybe this helps.

Henning
Am 03.06.19 um 06:43 schrieb Trinh, Jenny:
Hi,
I’m getting the error 604 when ICSCF did a query to mysql and failed with an 
INVITE. Please see my attached pcap. Would appreciate any feedbacks on what 
might the issue.

We’re using BOGHE client to register and make call with Kamailio IMS 5.2.2

May 22 09:15:10 imskamailio /usr/local/sbin/kamailio[22167]: DEBUG:  
[core/msg_translator.c:2305]: generate_res_buf_from_sip_res(): copied size: 
orig:143, new: 56, rest: 630 msg=#012SIP/2.0 604 Does not exist anywhere - HSS 
User Unknown#015#012Via: SIP/2.0/UDP 
0.0.0.0:4060;received=10.0.20.1;branch=z9hG4bK3c92.7402885f6124cf2862bde6f9458080b5.0#015#012Via:
 SIP/2.0/UDP 
10.141.161.85:56962;received=10.141.161.85;branch=z9hG4bK594030036;rport=56962#015#012From:
 
<mailto:sip:b...@ims522.irisims.org>;tag=594048364#015#012To:
 
<mailto:sip:al...@ims522.irisims.org>;tag=077cecf844e3c5622044f0dc84818fc7-09fb#015#012Call-ID:
 25759faf-6f50-5607-c8f9-162abbbff8cb#015#012CSeq: 19622 INVITE#015#012Server: 
Kamailio I-CSCF#015#012Content-Length: 0#015#012Warning: 392 10.0.20.1:5060 
"Noisy feedback tells:  pid=22149 req_src_ip=10.0.20.1 req_src_port=6060 
in_uri=sip:al...@ims522.irisims.org<mailto:in_uri=sip:al...@ims522.irisims.org> 
out_uri=sip:+al...@ims522.ir<mailto:out_uri=sip:+al...@ims522.ir>

Thank you



___

Kamailio (SER) - Users Mailing List

sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>

https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--

Henning Westerholt - https://skalatan.de/blog/

Kamailio services - https://skalatan.de/services
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] ICSCF mysql error

2019-06-07 Thread YASIN CANER
Hello ,


It is a mismatch inconming uri and your uri in hss.

Yasin Caner


Henning Westerholt mailto:h...@skalatan.de>> şunları yazdı (7 
Haz 2019 09:28):


Hello,

not an expert on this particular module, but this is the internal error path 
from the module that probably caused this error reply:

- case RC_IMS_DIAMETER_ERROR_USER_UNKNOWN, will send message with:
- #define MSG_604_USER_UNKNOWN "Does not exist anywhere - HSS User Unknown"

The status comes probably from the CDP module:

diameter_epc_code_result.h
57: RC_EPC_DIAMETER_ERROR_USER_UNKNOWN  
= 5001,

Maybe this helps.

Henning

Am 03.06.19 um 06:43 schrieb Trinh, Jenny:
Hi,
I’m getting the error 604 when ICSCF did a query to mysql and failed with an 
INVITE. Please see my attached pcap. Would appreciate any feedbacks on what 
might the issue.

We’re using BOGHE client to register and make call with Kamailio IMS 5.2.2

May 22 09:15:10 imskamailio /usr/local/sbin/kamailio[22167]: DEBUG:  
[core/msg_translator.c:2305]: generate_res_buf_from_sip_res(): copied size: 
orig:143, new: 56, rest: 630 msg=#012SIP/2.0 604 Does not exist anywhere - HSS 
User Unknown#015#012Via: SIP/2.0/UDP 
0.0.0.0:4060;received=10.0.20.1;branch=z9hG4bK3c92.7402885f6124cf2862bde6f9458080b5.0#015#012Via:
 SIP/2.0/UDP 
10.141.161.85:56962;received=10.141.161.85;branch=z9hG4bK594030036;rport=56962#015#012From:
 
<mailto:sip:b...@ims522.irisims.org>;tag=594048364#015#012To:
 
<mailto:sip:al...@ims522.irisims.org>;tag=077cecf844e3c5622044f0dc84818fc7-09fb#015#012Call-ID:
 25759faf-6f50-5607-c8f9-162abbbff8cb#015#012CSeq: 19622 INVITE#015#012Server: 
Kamailio I-CSCF#015#012Content-Length: 0#015#012Warning: 392 10.0.20.1:5060 
"Noisy feedback tells:  pid=22149 req_src_ip=10.0.20.1 req_src_port=6060 
in_uri=sip:al...@ims522.irisims.org<mailto:in_uri=sip:al...@ims522.irisims.org> 
out_uri=sip:+al...@ims522.ir<mailto:out_uri=sip:+al...@ims522.ir>

Thank you



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] run some extra things before relying message

2019-05-02 Thread YASIN CANER
Hello,

"write_sdp_pv" parameter helps to write a pvalue that includes modified sdp. 
Could you try it?

Yasin CANER



https://kamailio.org/docs/modules/5.2.x/modules/rtpengine.html#rtpengine.p.write_sdp_pv


From: sr-users  on behalf of Mojtaba 

Sent: Thursday, May 2, 2019 2:06 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] run some extra things before relying message

Hello,
I have encountered with problem in Kamailio.
At first glance it looks simple. Considering the Data Lump feature in
Kamailio, All changes in SIP body, does not apply quickly.
So if we are using RTPEngine or RTPProxy, How we can get body message
(Actually IP and port from SDP after rtpengine_manage function) before
relaying message?
Suppose i want get some information and run some extra things before
relying message?
I just added my extra things in t_on_reply  block, but it's strange
why it doesn't work before relaying!

-Mojtaba Esfandiari.S

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio 5.2.2 IMS authorization failed by the SCSCF

2019-05-01 Thread YASIN CANER
Hello,

you should check


  *   check realm parameter on function
  *   check user information in hss

even if there is a nonce paremeter in auth header , it always gives this error.

Yasin CANER


From: sr-users  on behalf of Woscek, 
Martin W. 
Sent: Thursday, May 2, 2019 2:30 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Kamailio 5.2.2 IMS authorization failed by the SCSCF


Hi,



We are getting a SIP 401 Unauthorized -Challenging the UE error originating by 
the SCSCF.  It looks to be related to the nonce/cnonce.

Is there something we have misconfigured in our SCSCF module?



Log output:



May  1 14:01:45 imskamailio /usr/local/sbin/kamailio[18489]: DEBUG: ims_auth 
[authorize.c:786]: authenticate(): Nonce or response missing: nonce len 
[-108158976], response16 len[1873606560]

May  1 14:01:45 imskamailio /usr/local/sbin/kamailio[18492]: DEBUG: ims_auth 
[utils.c:168]: get_nonce_response(): Calling find_credentials with realm 
[ims522.irisims.org]

May  1 14:01:45 imskamailio /usr/local/sbin/kamailio[18492]: DEBUG: ims_auth 
[utils.c:195]: get_nonce_response(): Found nonce response

May  1 14:01:45 imskamailio /usr/local/sbin/kamailio[18492]: INFO: ims_auth 
[authorize.c:827]: authenticate(): uri=sip:irisims.org 
nonce=9863c63855c8dd888c5c18e79fc61156 
response=ce7ce73872b92aff2defa76dd1aff1ac qop=auth-int nc=0001 
cnonce=4fe4daacd69fa3d609c8b396d331eae6 hbody=d41d8cd98f00b204e9800998ecf8427e

May  1 14:01:45 imskamailio /usr/local/sbin/kamailio[18492]: DEBUG: ims_auth 
[rfc2617.c:135]: calc_response(): 
calc_response(_ha1=7a1b479a0513914e71bcd6d005b3e17d, 
_nonce=9863c63855c8dd888c5c18e79fc61156, 
_nc=0001,_cnonce=4fe4daacd69fa3d609c8b396d331eae6, _qop=auth-int, 
_auth_int=1,_method=REGISTER,_uri=sip:irisims.org,_hentity=d41d8cd98f00b204e9800998ecf8427e)



Thanks,

Martin
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIP basic flow question: R-URI in ACK

2019-04-29 Thread YASIN CANER
Hello,
  I think   it is possible to choose wrong transport type to relay . so i 
prefer that add transport parameter to Route headers. Kamailio handles it with 
loose_route function and mhomed feature.

Yasin CANER



   F14 200 OK Proxy 1 -> Alice

   SIP/2.0 200 OK

   Contact: 


   ..



   F15 ACK Alice -> Proxy 1

   ACK sip:b...@client.biloxi.example.com SIP/2.0
   Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74b76
   Max-Forwards: 70
   Route: ,

   From: Alice ;tag=9fxced76sl
   To: Bob ;tag=314159
   Call-ID: 3848276298220188...@atlanta.example.com
   CSeq: 2 ACK
   Content-Length: 0


   F16 ACK Proxy 1 -> Proxy 2

   ACK sip:b...@client.biloxi.example.com SIP/2.0
   Via: SIP/2.0/TCP ss1.atlanta.example.com:5060;branch=z9hG4bK2d4790.1
   Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74b76
;received=192.0.2.101
   Max-Forwards: 69
   Route: 
   From: Alice ;tag=9fxced76sl
   To: Bob ;tag=314159
   Call-ID: 3848276298220188...@atlanta.example.com
   CSeq: 2 ACK
   Content-Length: 0



From: sr-users  on behalf of Yufei Tao 

Sent: Sunday, April 28, 2019 11:54 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] SIP basic flow question: R-URI in ACK


Hi,



I have a question regarding basic SIP flow for establishing a call session, and 
wonder if anyone can help me clarify.



For normal call set up, INVITE-OK-ACK, from RFC3261, I believe the ACK’s R-URI 
should be a copy of the Contact header of the OK message.



However in RFC3665 sections 3.1 and 3.2 for example, the ACK’s R-URI missed the 
parameters from the Contact header of the OK, e.g.



In OK the Contact header is:

   Contact: 



And  ACK the R-URI is:

ACK sip:b...@client.biloxi.example.com SIP/2.0



Which has got the parameter ‘transport=tcp’ removed – why is this?



In this case if the proxy connected to Bob handles ACK in the usual way as it 
would for all in-dialog requests, i.e. based on routing headers only and not 
extra processing, it’ll try to relay the ACK message to Bob using the default 
transport UDP which is not expected and will fail.



Can anyone help explain why the parameters are removed in RFC3665 examples 
please? Have I missed anything? Thank you very much!



Yufei
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Uri's user part parameters

2019-03-27 Thread YASIN CANER
Hello.
After take user part ,you can use  Parameters List Transformations to get 
param-value.
https://www.kamailio.org/wiki/cookbooks/5.0.x/transformations
Yasin Caner

iPhone’umdan gönderildi

Duarte Rocha mailto:duarteroch...@gmail.com>> şunları 
yazdı (27 Mar 2019 19:38):

Greetings,

Does Kamailio have a way of identifying the user-part parameters of an URI?

I have situations where i have sip:user;parameter=yes@host.

Best Regards,

Duarte Rocha
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to Absorb First Leg Re-Invites when no Response from Second Leg Invites

2019-03-02 Thread YASIN CANER
Hi,

In addition , there is a function in tm that helps to understand  branch 
timeout reason

https://www.kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.f.t_branch_replied

Yasin Caner

Alex Balashov mailto:abalas...@evaristesys.com>> 
şunları yazdı (2 Mar 2019 02:23):

Hi,

Reinvites are in-dialog requests; they would only be sent within the
context of an established dialog (2xx response, end-to-end ACK, the
whole works).

Perhaps what you are referring to is not reinvites but retransmissions
of the initial INVITE?

If so, have a look at this option:

https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.p.cancel_b_method

in concert with something like this:

  failure_route[...] {
  if(t_is_canceled())
  exit;

  # The scenario you're after.

  if(t_branch_timeout()) {
  t_reply("503", "Service Unavailable");
  exit;
  }
  }

-- Alex

On Fri, Mar 01, 2019 at 08:23:11AM -0600, JR Richardson wrote:

Hi All,

My mind is not right on this one, need a pointer. Here is the simple scenario:
Carrier>mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Masking Contact Header

2019-02-28 Thread YASIN CANER
Hello

I found TH header what is mean.It is related with Dialog module

SIP headers to be added when sending local generated requests (e.g., BYE) to 
callee. It can be useful when you use topoh module with call-id masking (see 
the docs of topoh module).

http://kamailio.org/docs/modules/5.2.x/modules/dialog.html

modparam("dialog", "lreq_callee_headers", "TH: dlh\r\n")

Yasin CANER

____
From: YASIN CANER 
Sent: Wednesday, February 13, 2019 12:58 PM
To: Nicolas Breuer; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Masking Contact Header

Hello,

if there is a unrelated chars  in SIP trace , there may be str len mismatch for 
that module . Could you share header?

Thanks


From: sr-users  on behalf of Nicolas 
Breuer 
Sent: Wednesday, February 13, 2019 11:54 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Masking Contact Header

I tried and indeed the contact header is masked with topoh.

Just one question :
The masquerading is done after siptrace module because the original trace is 
stored in database.
I suppose it's the expected behavior.

I can also see that line in the trace : TH: uch
Any ideas?


-Message d'origine-
De : sr-users  De la part de Henning 
Westerholt
Envoyé : mercredi 13 février 2019 09:20
À : sr-users@lists.kamailio.org
Objet : Re: [SR-Users] Masking Contact Header

Am Mittwoch, 13. Februar 2019, 00:05:46 CET schrieb Marcos Pytel:
> Im have an endpoint device that have a problem with long routers
> headers. I dont know why cut the route when send packet to the server
> and kamailio crash because cant parse the route. If i active topoh,
> the router header is encrypted but is bigest than the original. If i
> active the topos the kamailio crashed for another reason (I need try with the 
> lastest version).
>
>
> There is another way to send routes with less info? Or other config to
> fix it?
> [..]

Hello Marcos,

you can certainly use the textops module to remove headers, but in the case of 
the Route header it will probably break something regarding the SIP protocol.

Kamailio should not crash if it encounters a invalid header. Can you open a bug 
report with more information about this in our issue tracker on github?
Then this crash could be just fixed.

Best regards,

Henning
--
Henning Westerholt - https://skalatan.de/blog/ Kamailio services - 
https://skalatan.de/services Kamailio security assessment - 
https://skalatan.de/de/assessment

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio behind NAT or With Public IP - Which one is highly recommended

2019-02-27 Thread YASIN CANER
Hello Pintu

1 million TLS user? Have u ever test with tester on Kamailio ?Because I 
remembered in sr-mails that an user tested on 1000 client on TLS transport , it 
consumes so much CPU etc . I guess 1 milliyonTLSUser make big impact your 
system for all registration/call.

I tested option-2 for relaying registers about 1-2 years ago for proof of 
concept. It works fine.

you can replicate user location data by Dmq_usrloc module and can use path 
header then build a triangle topology to bridge calls.
Or
You can build a Location Information service to find which kamailio  has UAC 
data .

Best Regards.

Yasin CANER


From: Pintu Lohar 
Sent: Wednesday, February 27, 2019 12:27 PM
To: YASIN CANER
Cc: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio behind NAT or With Public IP - Which one is 
highly recommended

Hi Yasin,
Thanks indeed for your valuable input for the active-active cluster(Option-1) & 
 Option-2

We definitely would like to try setting up an active-active cluster for the 
next phase if not in current phase.
But In order to use  Kamailio in the active-active cluster,  I think we need to 
forward or replicate registration to both the active-active server?
in order to proxy the invite packet through the server where the UA is 
registered?

We use the following use cases   :
1. We use FCM and APNS push to wake up the app.
2. Multi forking / Late forking cases are also involved.
3. Using Kamailio as a stateful proxy.

Thanks & Regards
Pintu

On Wed, Feb 27, 2019 at 3:10 PM YASIN CANER 
mailto:caner_y...@hotmail.com>> wrote:
Hello,

My suggestion is that stay away from NAT if you dont have to. various  sip 
client/Firewalls make out troubles for registration and invites,  even if 
Kamailio can handle it.  If you have a high load TLS connection / subscriber , 
I think you should use load balancer and NAT options.

For example;
1 - Load balancer like F5  that balancing your connection active-active 
Kamailios


UAC > F5 --> Kamailio -1 (advertises public IP)
   |
--->  Kamailio -2 (advertises public IP)

2- Use kamailio as MultiHomed that convert transport layer to tcp/udp

UAC -> Kamailio(TLS-PUBLIC IP-mhomed) --->  Kamailio-1(TCP/UDP)

  |

   -> Kamailio-2(TCP/UDP)


Good luck

Yasin CANER


From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 on behalf of Pintu Lohar 
mailto:pintulohargce...@gmail.com>>
Sent: Tuesday, February 26, 2019 8:09 AM
To: sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Subject: [SR-Users] Kamailio behind NAT or With Public IP - Which one is highly 
recommended

Hi Everyone,

Which one among the below option is highly recommended for setting up Kamailio 
(for production)
  1.  Kamailio behind NAT or
   2. Setting up Kamailio using public IP?

 are there any disadvantages if we setup Kamailio behind NAT and use advertise 
option in listen parameters?

We have tested both the options, and both the options work great for us( a. 
Kamailio behind NAT with advertising in listen parameters b.Kamailio setup with 
public IP).  So wondering which one is best and highly recommended?

Some extra info :
1. We use TLS
2. Using coturn for media

Thanks
Pintu
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio behind NAT or With Public IP - Which one is highly recommended

2019-02-26 Thread YASIN CANER
Hello,

My suggestion is that stay away from NAT if you dont have to. various  sip 
client/Firewalls make out troubles for registration and invites,  even if 
Kamailio can handle it.  If you have a high load TLS connection / subscriber , 
I think you should use load balancer and NAT options.

For example;
1 - Load balancer like F5  that balancing your connection active-active 
Kamailios


UAC > F5 --> Kamailio -1 (advertises public IP)
   |
--->  Kamailio -2 (advertises public IP)

2- Use kamailio as MultiHomed that convert transport layer to tcp/udp

UAC -> Kamailio(TLS-PUBLIC IP-mhomed) --->  Kamailio-1(TCP/UDP)

  |

   -> Kamailio-2(TCP/UDP)


Good luck

Yasin CANER


From: sr-users  on behalf of Pintu Lohar 

Sent: Tuesday, February 26, 2019 8:09 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Kamailio behind NAT or With Public IP - Which one is highly 
recommended

Hi Everyone,

Which one among the below option is highly recommended for setting up Kamailio 
(for production)
  1.  Kamailio behind NAT or
   2. Setting up Kamailio using public IP?

 are there any disadvantages if we setup Kamailio behind NAT and use advertise 
option in listen parameters?

We have tested both the options, and both the options work great for us( a. 
Kamailio behind NAT with advertising in listen parameters b.Kamailio setup with 
public IP).  So wondering which one is best and highly recommended?

Some extra info :
1. We use TLS
2. Using coturn for media

Thanks
Pintu
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] 407 Proxy Authentication Required

2019-02-25 Thread YASIN CANER
Hello,

If it is possible to share SIP/diameter trace and configuration , I may have a 
look. Without any information  , it is hard to understand and figure out 
problem. All responses are related your configuration.

Best Regards

Yasin CANER


From: Yağız AYDIN 
Sent: Monday, February 25, 2019 10:26 AM
To: YASIN CANER
Cc: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] 407 Proxy Authentication Required

Hello,

Even though I uncheck SUBSCRIPTION on IMS Client, I still get same 
SUBSCRIBE-407 Proxy Authentication Required sequences, still not sure why I 
have those SUBSCRIBE messages, can someone help me about it?

Regards

YASIN CANER mailto:caner_y...@hotmail.com>>, 22 Şub 
2019 Cum, 15:42 tarihinde şunu yazdı:
Hello,

Perhaps , there is  a problem your configuration. After successful registration 
, IMS call doesnt need to Auth.  407 response is related to INVITE message.

I am sure there is option to disable Subscribe method in your Client. Subscribe 
method  uses for Event like Register-event(reg) , dialog-event etc.

Fhoss has a problem about showing registration status.


Best Regards.


From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 on behalf of Yağız AYDIN mailto:ygzay...@gmail.com>>
Sent: Friday, February 22, 2019 11:19 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] 407 Proxy Authentication Required

Hello,

I'm trying to implement Kamailio IMS and registration by using Boghe IMS. 
Registration profiles are default profiles provided by FHoSS ( Alice & Bob). 
While trying registration, I am facing some problems.

REGISTER message behaves as intended and results with 200 OK. After 200 OK 
message, Boghe IMS is sending SUBSCRIBE message to S-CSCF (via P-CSCF), this 
message results with a 407 Proxy Authentication Required, I have some questions 
about this scenario.

1-) Why do I have this SUBSCRIBE message? Even though i commented out WITH_AUTH 
function, why do I have 407 Proxy Authentication Required message?

2-) On IMS Client side, when informaion about Alice or Bob is entered, login 
process results with success, but I can't send any message or do come calls. Is 
is related about this 407 message?

3-) On FHoSS interface, when I check IMPU values of those users, User-Status is 
marked as REGISTERED. From this perspective, should I consider registration is 
successful or not?

4-) How can I handle with this 407 Proxy Authentication Required message?

Best Regards,
Yağız

--






--

Erol Yağız Aydın
Orta Doğu Teknik Üniversitesi
Elektrik Elektronik Mühendisliği

İletişim:
GSM:0546 400 57 26
e-mail:aydin.ya...@metu.edu.tr<mailto:e-mail%3aaydin.ya...@metu.edu.tr>
e-mail:ygzay...@gmail.com<mailto:e-mail%3aygzay...@gmail.com>



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to easily remove top most header and set destination uri

2019-02-25 Thread YASIN CANER
Hello,

I found the problem. I am sending Refer request with  SIPP so writing wrong 
R-URI name address  that is already responsible Proxy instead of B2Bua contact 
name address. Thus , loose_route function re-write RURI and removed top most 
route header as specified RFC 3261 16.12

Thanks

Yasin CANER


From: sr-users  on behalf of Alex Balashov 

Sent: Friday, February 22, 2019 4:21 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] How to easily remove top most header and set 
destination uri

Hi,

First, a proxy should only remove the topmost Route headers whose URI domains 
correspond to addresses the proxy perceives to be its own, not another 
element’s. Are you sure that is not a possibility in your case?

Second, the loose_route() should set the network and transport-layer next-hop 
destination ($du) to the next Route hop. However, if another Route hop is not 
present because all of them have been consumed by the proxy on the basis that 
the proxy perceives them to correspond to itself, then it will consume the RURI 
domain to determine the final hop.

I think there is something missing with regard to the actual content of the 
Route hops and their relationship to your Kamailio instance.

—
Sent from mobile, with due apologies for brevity and errors.

On Feb 22, 2019, at 8:01 AM, YASIN CANER 
mailto:caner_y...@hotmail.com>> wrote:

Hello,

I have trouble with REFER method that has to-tag and Route header , more than 
one.

When it pass loose_route() method ,  loose_route function remove all route 
headar  then  sets RURI with top most Route.

Is there a function that removing own route header and sets destination uri 
($du)  with top most uri.


Best Regards.

Yasin CANER

https://tools.ietf.org/html/rfc3515


2.6<https://tools.ietf.org/html/rfc3515#section-2.6> Behavior of SIP Proxies

SIP proxies do not require modification to support the REFER method.
   Specifically, as required by [1<https://tools.ietf.org/html/rfc3515#ref-1>], 
a proxy should process a REFER
   request the same way it processes an OPTIONS request.


For example,


-->mykamai...@test2.test--->>nextro...@test3.test-->
1
--
REFER : sip:al...@test.test ...
Route:,,
To: <>;tag=asdads
From:<>;tag=asd123


---
2 - After Kamailio Process
---
REFER : sip:al...@test.test ...
,
To: <>;tag=asdads
From:<>;tag=asd123



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to easily remove top most header and set destination uri

2019-02-22 Thread YASIN CANER
Hi Alex,

I got your answer about loose route earl mesagess , saved and still keeping it. 
I try to figure out , what s the best way handle refer message with kamailio if 
there is a route header.

When there is route header more than one ,  smth is going wrong.

Today , I worked so many cases , all of them may be mixed in my mind.

I will work on it again. Rfc3261 
16.12<https://tools.ietf.org/html/rfc3261#section-16.12> Summary of Proxy Route 
Processing


Best regards.
Yasin C.

Alex Balashov mailto:abalas...@evaristesys.com>> 
şunları yazdı (22 Şub 2019 16:22):

Hi,

First, a proxy should only remove the topmost Route headers whose URI domains 
correspond to addresses the proxy perceives to be its own, not another 
element’s. Are you sure that is not a possibility in your case?

Second, the loose_route() should set the network and transport-layer next-hop 
destination ($du) to the next Route hop. However, if another Route hop is not 
present because all of them have been consumed by the proxy on the basis that 
the proxy perceives them to correspond to itself, then it will consume the RURI 
domain to determine the final hop.

I think there is something missing with regard to the actual content of the 
Route hops and their relationship to your Kamailio instance.

—
Sent from mobile, with due apologies for brevity and errors.

On Feb 22, 2019, at 8:01 AM, YASIN CANER 
mailto:caner_y...@hotmail.com>> wrote:

Hello,

I have trouble with REFER method that has to-tag and Route header , more than 
one.

When it pass loose_route() method ,  loose_route function remove all route 
headar  then  sets RURI with top most Route.

Is there a function that removing own route header and sets destination uri 
($du)  with top most uri.


Best Regards.

Yasin CANER

https://tools.ietf.org/html/rfc3515


2.6<https://tools.ietf.org/html/rfc3515#section-2.6> Behavior of SIP Proxies

SIP proxies do not require modification to support the REFER method.
   Specifically, as required by [1<https://tools.ietf.org/html/rfc3515#ref-1>], 
a proxy should process a REFER
   request the same way it processes an OPTIONS request.


For example,


-->mykamai...@test2.test--->>nextro...@test3.test-->
1
--
REFER : sip:al...@test.test ...
Route:,,
To: <>;tag=asdads
From:<>;tag=asd123


---
2 - After Kamailio Process
---
REFER : sip:al...@test.test ...
,
To: <>;tag=asdads
From:<>;tag=asd123



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to easily remove top most header and set destination uri

2019-02-22 Thread YASIN CANER
Hello,

I have trouble with REFER method that has to-tag and Route header , more than 
one.

When it pass loose_route() method ,  loose_route function remove all route 
headar  then  sets RURI with top most Route.

Is there a function that removing own route header and sets destination uri 
($du)  with top most uri.


Best Regards.

Yasin CANER

https://tools.ietf.org/html/rfc3515


2.6<https://tools.ietf.org/html/rfc3515#section-2.6> Behavior of SIP Proxies

SIP proxies do not require modification to support the REFER method.
   Specifically, as required by [1<https://tools.ietf.org/html/rfc3515#ref-1>], 
a proxy should process a REFER
   request the same way it processes an OPTIONS request.


For example,


-->mykamai...@test2.test--->>nextro...@test3.test-->
1
--
REFER : sip:al...@test.test ...
Route:,,
To: <>;tag=asdads
From:<>;tag=asd123


---
2 - After Kamailio Process
---
REFER : sip:al...@test.test ...
,
To: <>;tag=asdads
From:<>;tag=asd123



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] 407 Proxy Authentication Required

2019-02-22 Thread YASIN CANER
Hello,

Perhaps , there is  a problem your configuration. After successful registration 
, IMS call doesnt need to Auth.  407 response is related to INVITE message.

I am sure there is option to disable Subscribe method in your Client. Subscribe 
method  uses for Event like Register-event(reg) , dialog-event etc.

Fhoss has a problem about showing registration status.


Best Regards.


From: sr-users  on behalf of Yağız AYDIN 

Sent: Friday, February 22, 2019 11:19 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] 407 Proxy Authentication Required

Hello,

I'm trying to implement Kamailio IMS and registration by using Boghe IMS. 
Registration profiles are default profiles provided by FHoSS ( Alice & Bob). 
While trying registration, I am facing some problems.

REGISTER message behaves as intended and results with 200 OK. After 200 OK 
message, Boghe IMS is sending SUBSCRIBE message to S-CSCF (via P-CSCF), this 
message results with a 407 Proxy Authentication Required, I have some questions 
about this scenario.

1-) Why do I have this SUBSCRIBE message? Even though i commented out WITH_AUTH 
function, why do I have 407 Proxy Authentication Required message?

2-) On IMS Client side, when informaion about Alice or Bob is entered, login 
process results with success, but I can't send any message or do come calls. Is 
is related about this 407 message?

3-) On FHoSS interface, when I check IMPU values of those users, User-Status is 
marked as REGISTERED. From this perspective, should I consider registration is 
successful or not?

4-) How can I handle with this 407 Proxy Authentication Required message?

Best Regards,
Yağız

--




___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Regex issue with subst_body

2019-02-21 Thread YASIN CANER
Hello,

function couldnt  probably validate parameter.

Could you share your function line.

Best Regards

Yasin CANER


if ( subst_body("/^o=(.*) /o=$fU /") ) {};

or

$avp(regx)="/^o=(.*)/o=$fU/";

if ( subst_body("$avp(regx)") ) {};



From: sr-users  on behalf of Kristijan 
Vrban 
Sent: Wednesday, February 20, 2019 6:00 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Regex issue with subst_body

Hi, in a sdp i need to rewrite a a=sendrecv to a=sendonly
but onyl for the for the video stream. I made a regex like this:

(?<=m=video)(?s)(.*)(a=sendrecv)

Full version here: https://regex101.com/r/rovecJ/1

But if have problems to translate this into kamailio config via
subst_body function. I always end with ERROR: fix_actions(): fixing
failed (code=-3)

Somebody sees the mistake?

Kristijan

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Default Modules while installing kamailio

2019-02-21 Thread YASIN CANER
Hello,

you can list all module  with " make print-modules "
can add specific modules with "  make include_modules="db_mysql etc" cfg
install all modules with " make install-modules-all "

Regards

Yasin CANER


From: sr-users  on behalf of Prabhat Kumar 

Sent: Thursday, February 21, 2019 10:21 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Default Modules while installing kamailio

Hi,

I am installing kamailio from source on my ubuntu 16.04 server. How would i 
know the default modules installing automatically with kamailio?

Also How can i install all modules(if i want to) with kamailio 5.1?



Thanks,

Prabhat Kumar



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Branches Routes

2019-02-17 Thread YASIN CANER
Hello Nicolas,

Why dont you use carrier route module to strip and add smth. you can choose 
your own routing logic depends on response code.

Best regards.

Yasin CANER

http://kamailio.org/docs/modules/5.2.x/modules/carrierroute.html


From: sr-users  on behalf of Nicolas 
Breuer 
Sent: Sunday, February 17, 2019 1:00 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Branches Routes


Hi Ludovic,



Version of Kamailio is 5.1.7

Maybe with these few lines it can help ?





route[Out] {

## If first time in this route, go to first destination.



 $ru=$ru;

route(RELAY);



}







failure_route[MANAGE_FAILURE] {

 if (t_branch_timeout () ){

# Failure with that ID -> ID+1;

route(Out);

}

}





branch_route[MANAGE_BRANCH] {



###Get the IP-Address based on the ID of the next-hop and send the SIP message

$ru = "sip:" + $rU + "@" + $var(IpAddress) + ":5060";



}





De : sr-users  De la part de Ludovic Gasc 
Lemaire
Envoyé : samedi 16 février 2019 23:35
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] Branches Routes



Hi Nicolas,



What is the version of Kamailio you are using ?

Could you show us a piece of code to understand what are you doing ?



Kind regards.

--

Ludovic Gasc Lemaire (GMLudo)


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Assemble struct sip_uri back to string?

2019-02-14 Thread YASIN CANER
Hello,

after sip_msg is parsed , parsed flag is up. even if msg is parsed , whole 
header  stores in body variable in
typedef struct hdr_field {
hdr_types_t type;   /*!< Header field type */
str name;   /*!< Header field name */
str body;   /*!< Header field body (may not include CRLF) */
int len;/*!< length from hdr start until EoHF (incl.CRLF) */
void* parsed;   /*!< Parsed data structures */
struct hdr_field* next; /*!< Next header field in the list */
} hdr_field_t;

Good luck.
Yasin CANER


From: sr-users  on behalf of Ivan Ribakov 

Sent: Thursday, February 14, 2019 6:27 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Assemble struct sip_uri back to string?

Hi all,

does anyone know if there is a C function available in some module/header that 
assembles parsed sip_uri struct back into a single buffer? I’ve been looking at 
msg_parser.h (where sip_uri struct is defined) and parse_uri.h, but I can’t see 
anything of that kind.

Thanks in advance,
Ivan
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Masking Contact Header

2019-02-13 Thread YASIN CANER
Hello,

if there is a unrelated chars  in SIP trace , there may be str len mismatch for 
that module . Could you share header?

Thanks


From: sr-users  on behalf of Nicolas 
Breuer 
Sent: Wednesday, February 13, 2019 11:54 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Masking Contact Header

I tried and indeed the contact header is masked with topoh.

Just one question :
The masquerading is done after siptrace module because the original trace is 
stored in database.
I suppose it's the expected behavior.

I can also see that line in the trace : TH: uch
Any ideas?


-Message d'origine-
De : sr-users  De la part de Henning 
Westerholt
Envoyé : mercredi 13 février 2019 09:20
À : sr-users@lists.kamailio.org
Objet : Re: [SR-Users] Masking Contact Header

Am Mittwoch, 13. Februar 2019, 00:05:46 CET schrieb Marcos Pytel:
> Im have an endpoint device that have a problem with long routers
> headers. I dont know why cut the route when send packet to the server
> and kamailio crash because cant parse the route. If i active topoh,
> the router header is encrypted but is bigest than the original. If i
> active the topos the kamailio crashed for another reason (I need try with the 
> lastest version).
>
>
> There is another way to send routes with less info? Or other config to
> fix it?
> [..]

Hello Marcos,

you can certainly use the textops module to remove headers, but in the case of 
the Route header it will probably break something regarding the SIP protocol.

Kamailio should not crash if it encounters a invalid header. Can you open a bug 
report with more information about this in our issue tracker on github?
Then this crash could be just fixed.

Best regards,

Henning
--
Henning Westerholt - https://skalatan.de/blog/ Kamailio services - 
https://skalatan.de/services Kamailio security assessment - 
https://skalatan.de/de/assessment

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Masking Contact Header

2019-02-12 Thread YASIN CANER
Hello

You can use topoh and topos module that hiding all topology. 

If you want to hide only contact header , uac replace is good because it has a 
ability restore. 

I assume that hiding contact header because anonymous calls. Right?

Regards

Yasin caner


Duarte Rocha  şunları yazdı (12 Şub 2019 21:56):

> Greetings, 
> 
> Is there an automated way of masking\encoding\encrypting the Contact header 
> once it goes through a Kamailio proxy and have it restored?
> 
> I'm using uac_replace_from() and uac_replace_to() for changing these values 
> and having them restored automatically. Is there any tool like this for 
> Contact Header?
> 
> Cheers
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection

2019-02-07 Thread YASIN CANER
Hello

Both of them , IPv4 and IPv6 tcp connection relaying cause error.

I compared master and 5.2  on github. There is a few changes on tcp_main.c file.

 Regards.

Daniel-Constantin Mierla mailto:mico...@gmail.com>> şunları 
yazdı (7 Şub 2019 11:37):


Hello,


not clear from your messages so far, is relaying from TCP/IPVv4 to TCP/IPv6 not 
working with master, or all TCP sending fails no matter if IPv4 or IPv6 in both 
sides?


Cheers,
Daniel


On 01.02.19 07:12, YASIN CANER wrote:
Hello,

it is default configuration works on TCP connection. Kamailio version is master 
,also problem is tested on other versions. I tried to make call with sip-client 
 and gives same error. in my search , EAGAIN error is about NIO connection 
problem in C that there isnt any room to write or any resource.

I will install another kamailio-node to test it .

Thanks


Yasin CANER


From: sr-users 
<mailto:sr-users-boun...@lists.kamailio.org>
 on behalf of Daniel Tryba <mailto:d.tr...@pocos.nl>
Sent: Thursday, January 31, 2019 5:07 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp 
Connection

On Thu, Jan 31, 2019 at 12:01:26PM +, YASIN CANER wrote:
>
> Kamailio gave this error that couldnt bind tcp connection other side.
>

No idea, what might be wrong with you conf. But you might start by
making a packetdump (of all traffic except eg ssh on all interfaces) to
see if the problem is related to kamailio or some network related config
on the machine.

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - May 6-8, 2019 -- 
www.kamailioworld.com<http://www.kamailioworld.com>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in 
Washington, DC, USA -- www.asipto.com<http://www.asipto.com>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection

2019-02-04 Thread YASIN CANER
Hello,

I found the problem. it is about Kamailio-master. When i test on 5.2 version, 
it can relay tcp sip request to other side. I think it is a bug for tcp 
connection.

Thanks.

UAC:IPv6:TCP ---> Kamailio (5.2):IPv6:TCP ---> Kamailio:IPv6:TCP (works)


From: sr-users  on behalf of YASIN CANER 

Sent: Thursday, January 31, 2019 3:01 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp 
Connection

Hello,

Kamailio gave this error that couldnt bind tcp connection other side.

Thanks

Yasin CANER

Kamailio IPv6:TCP: -> IPv6:TCP Kamailio -> X ERROR  IPv6:TCP 
Kamailio
IPv6::CIPv6::8  
   IPv6::5

LOGS:

 7(15781) DEBUG:  [core/msg_translator.c:2937]: create_via_hf(): id 
added: <;i=1>, rcv proto=2
 7(15781) DEBUG:  [core/msg_translator.c:162]: check_via_address(): 
(FD61:C23C:B3B6:0:0:0:0:C, [FD61:C23C:B3B6:0:0:0:0:C], 0)
 7(15781) DEBUG:  [core/tcp_main.c:1977]: tcp_send(): no open tcp 
connection found, opening new one
 7(15781) DEBUG:  [core/ip_addr.c:242]: print_ip(): tcpconn_new: new tcp 
connection: fd61:c23c:b3b6:0:0:0:0:5

 7(15781) DEBUG:  [core/tcp_main.c:1229]: tcpconn_new(): on port 5060, 
type 2
 7(15781) DEBUG:  [core/tcp_main.c:1539]: tcpconn_add(): hashes: 
507:2382:0, 2
 7(15781) DEBUG:  [core/tcp_main.c:2873]: tcpconn_1st_send(): pending 
write on new connection 0x7fd15b5e7c98 (-1/1483 bytes written) (err: 11 - 
Resource temporarily unavailable)
 7(15781) ERROR:  [core/tcp_main.c:2891]: tcpconn_1st_send(): 
[FD61:C23C:B3B6:0:0:0:0:5]:5060: EAGAIN and write queue full or failed for 
0x7fd15b5e7c98
 7(15781) DEBUG:  [core/tcp_main.c:3153]: tcpconn_chld_put(): destroying 
connection 0x7fd15b5e7c98 (2, -1) flags 0060

 7(15781) ERROR: tm [../../core/forward.h:251]: msg_send_buffer(): tcp_send 
failed
 7(15781) DEBUG: tm [t_fwd.c:1549]: t_send_branch(): send to 
FD61:C23C:B3B6:0:0:0:0:5:5060 (2) failed
 7(15781) WARNING: tm [t_fwd.c:1567]: t_send_branch(): sending request on 
branch 0 failed


CONF:

dns_try_ipv6=yes
dns_retr_time=1
dns_retr_no=1
dns_cache_flags=4
tcp_source_ipv6 = [fd61:c23c:b3b6::8]

tcp_async=yes
tcp_rd_buf_size=65536
tcp_wq_blk_size=3000
listen=tcp:[fd61:c23c:b3b6::8]:5060
tcp_connection_lifetime=3605

listen=tcp:[fd61:c23c:b3b6::8]:5060
.

route[]{


remove_hf("Route");
#loose_route();


if (!is_method("INVITE")) return;
$du="sip: mykamailio1.test:5060;transport=tcp";


if(!t_newtran()){
 xlog("L_WARN"," Couldnt create new transaction \r\n");
 sl_send_reply("503", "Service not available");
 exit;
}

if(!t_relay()){
 send_reply("503", "Service not available");
 exit;
}
exit;
}
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection

2019-01-31 Thread YASIN CANER
Hello,

it is default configuration works on TCP connection. Kamailio version is master 
,also problem is tested on other versions. I tried to make call with sip-client 
 and gives same error. in my search , EAGAIN error is about NIO connection 
problem in C that there isnt any room to write or any resource.

I will install another kamailio-node to test it .

Thanks


Yasin CANER


From: sr-users  on behalf of Daniel Tryba 

Sent: Thursday, January 31, 2019 5:07 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp 
Connection

On Thu, Jan 31, 2019 at 12:01:26PM +, YASIN CANER wrote:
>
> Kamailio gave this error that couldnt bind tcp connection other side.
>

No idea, what might be wrong with you conf. But you might start by
making a packetdump (of all traffic except eg ssh on all interfaces) to
see if the problem is related to kamailio or some network related config
on the machine.

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection

2019-01-31 Thread YASIN CANER
Hello,

Kamailio gave this error that couldnt bind tcp connection other side.

Thanks

Yasin CANER

Kamailio IPv6:TCP: -> IPv6:TCP Kamailio -> X ERROR  IPv6:TCP 
Kamailio
IPv6::CIPv6::8  
   IPv6::5

LOGS:

 7(15781) DEBUG:  [core/msg_translator.c:2937]: create_via_hf(): id 
added: <;i=1>, rcv proto=2
 7(15781) DEBUG:  [core/msg_translator.c:162]: check_via_address(): 
(FD61:C23C:B3B6:0:0:0:0:C, [FD61:C23C:B3B6:0:0:0:0:C], 0)
 7(15781) DEBUG:  [core/tcp_main.c:1977]: tcp_send(): no open tcp 
connection found, opening new one
 7(15781) DEBUG:  [core/ip_addr.c:242]: print_ip(): tcpconn_new: new tcp 
connection: fd61:c23c:b3b6:0:0:0:0:5

 7(15781) DEBUG:  [core/tcp_main.c:1229]: tcpconn_new(): on port 5060, 
type 2
 7(15781) DEBUG:  [core/tcp_main.c:1539]: tcpconn_add(): hashes: 
507:2382:0, 2
 7(15781) DEBUG:  [core/tcp_main.c:2873]: tcpconn_1st_send(): pending 
write on new connection 0x7fd15b5e7c98 (-1/1483 bytes written) (err: 11 - 
Resource temporarily unavailable)
 7(15781) ERROR:  [core/tcp_main.c:2891]: tcpconn_1st_send(): 
[FD61:C23C:B3B6:0:0:0:0:5]:5060: EAGAIN and write queue full or failed for 
0x7fd15b5e7c98
 7(15781) DEBUG:  [core/tcp_main.c:3153]: tcpconn_chld_put(): destroying 
connection 0x7fd15b5e7c98 (2, -1) flags 0060

 7(15781) ERROR: tm [../../core/forward.h:251]: msg_send_buffer(): tcp_send 
failed
 7(15781) DEBUG: tm [t_fwd.c:1549]: t_send_branch(): send to 
FD61:C23C:B3B6:0:0:0:0:5:5060 (2) failed
 7(15781) WARNING: tm [t_fwd.c:1567]: t_send_branch(): sending request on 
branch 0 failed


CONF:

dns_try_ipv6=yes
dns_retr_time=1
dns_retr_no=1
dns_cache_flags=4
tcp_source_ipv6 = [fd61:c23c:b3b6::8]

tcp_async=yes
tcp_rd_buf_size=65536
tcp_wq_blk_size=3000
listen=tcp:[fd61:c23c:b3b6::8]:5060
tcp_connection_lifetime=3605

listen=tcp:[fd61:c23c:b3b6::8]:5060
.

route[]{


remove_hf("Route");
#loose_route();


if (!is_method("INVITE")) return;
$du="sip: mykamailio1.test:5060;transport=tcp";


if(!t_newtran()){
 xlog("L_WARN"," Couldnt create new transaction \r\n");
 sl_send_reply("503", "Service not available");
 exit;
}

if(!t_relay()){
 send_reply("503", "Service not available");
 exit;
}
exit;
}
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Altering received parameter in Contact

2019-01-29 Thread YASIN CANER
Hello,

I am not sure so  you should test contact_alias function on lab , if you can.  
First ,set contact alias and  remove received parameters from contact header.
on reply , use handle contact alias. Kamailio care alias to find right 
transport protocol.
http://kamailio.org/docs/modules/5.2.x/modules/nathelper.html#nathelper.set_contact_alias


Good luck.

Yasin CANER




From: sr-users  on behalf of David 
Cunningham 
Sent: Tuesday, January 29, 2019 5:28 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Altering received parameter in Contact

Hello,

I'm hoping someone can give advice on altering the received parameter in the 
Contact header on a reply. The situation is that a customer is REGISTERing 
using TLS, and our Kamailio replies with a 200 OK that includes a Contact 
header like this:

Contact: 
;expires=3600;received="sip:xx.xx.102.10:36051;transport=TLS"

The customer's device apparently had an issue with this, and the device 
manufacturer advises that they need the ";transport=TLS" on the received 
parameter removed. This sounds like a strange requirement, but it's what we've 
been told. Does anyone know how to alter this in a Kamailio configuration?

Our system uses www_authorize to authenticate and is running Kamailio 4.2.1.

Thanks in advance for any help!

--
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio IMS Deployment

2019-01-29 Thread YASIN CANER
Hello,

There are xml files in kamailio-ims folder that files are used by cdp module. 
and FHoSS has DiameterPeerHSS.xml configuration file .their FQDN and realm must 
be equal.

For example,
scscf.xml file has line

scscf CDP connect to hss.mnc001.mcc001.3gppnetwork.org address  on port 3868 .
FHoSS has DiameterPeerHSS.xml has 

In addition

scscf has acceptor line : 
FHoSS has DiameterPeerHSS.xml has 


Cheers

Yasin CANER





From: sr-users  on behalf of Yağız AYDIN 

Sent: Tuesday, January 29, 2019 10:02 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Kamailio IMS Deployment

Hello everyone,

I'm new to Kamailio environment, and trying to implement Kamailio IMS services 
with FHoSS HSS on a single Ubuntu 18.04 . I have followed instructions on the 
Kamailio website, but faced some issues.

I have managed to install FHoSS, but when I try to start HSS, i got following 
errors:

[Thread-24] ERROR de.fhg.fokus.diameter.DiameterPeer.peer.StateMachine  - 
StateMachine: Peer 
icscf.mnc001.mcc001.3gppnetwork.org:3869<http://icscf.mnc001.mcc001.3gppnetwork.org:3869>
 not responding to connection attempt
[Thread-24] ERROR de.fhg.fokus.diameter.DiameterPeer.peer.StateMachine  - 
StateMachine: Peer 
scscf.mnc001.mcc001.3gppnetwork.org:3870<http://scscf.mnc001.mcc001.3gppnetwork.org:3870>
 not responding to connection attempt

I have started CSCFs by following commands:

root@ulak-HP-ZBook-15:/opt/OpenIMSCore/FHoSS/deploy# kamailio -f 
/etc/kamailio/pcscf/kamailio-pcscf.cfg
loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules
Listening on
 udp: 10.3.0.188 [10.3.0.188]:5060
Aliases:
 *: pcscf.mnc001.mcc001.3gppnetwork.org:*



root@ulak-HP-ZBook-15:/opt/OpenIMSCore/FHoSS/deploy# kamailio -f 
/etc/kamailio/scscf/kamailio-scscf.cfg
loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules
Listening on
 udp: 10.3.0.188 [10.3.0.188]:6060
Aliases:
 *: scscf.mnc001.mcc001.3gppnetwork.org:*

***

root@ulak-HP-ZBook-15:/opt/OpenIMSCore/FHoSS/deploy# kamailio -f 
/etc/kamailio/icscf/kamailio-icscf.cfg
loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules
Listening on
 udp: 10.3.0.188 [10.3.0.188]:4060
 tcp: 10.3.0.188 [10.3.0.188]:4060
Aliases:
 *: icscf.mnc001.mcc001.3gppnetwork.org:*


How do I ensure that CSCFs work? And also how can I troubleshoot error that 
I've faced on FHoSS. I have attached my config files. Any helps will be 
appreciated.

Best regards,
Yağız

--

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Playing with Diameter - Error opening connection to :3868

2019-01-28 Thread YASIN CANER
Hello

Mra2 domain couldnt be resolved by cscf so cdp module couldnt bind to hss 
accepting port.  First of all , you should solve it. Probably your dns 
configuration is wrong or your bind/named server isnt working. You can test it 
with dig command. 


Good luck

Yasin CANER

Steve Bucklin  şunları yazdı (28 Oca 2019 17:24):

> Hello all,
> 
> I am brand new to this list and I am also on a steep learning curve with 
> Kamailio and Diameter so please be gentle as I am just starting!
> 
> I am trying to look at the Diameter signaling and have a glimpse into the 
> information passed. I have set up a compiled 5.2 on CentOS 7. I suspect that 
> I am missing something obvious, but not sure what. I am seeing this error:
> 
> 
> INFO: cdp [peerstatemachine.c:525]: I_Snd_Conn_Req(): I_Snd_Conn_Req(): Peer
> 
> peer_connect(): peer_connect(): Error opening connection to :3868 >Name or 
> service not known
> 
> 
> It looks like the FQDN in the diameter.xml under 'peer' is not being 
> resolved, as it is seeing port 3868? Any pointers would be greatly taken :-)
> 
> Here is my diameter:
> 
> 
>  FQDN="mra1.testservers.xxx"
> Realm="testservers.xxx"
> Vendor_Id="10415"
> Product_Name="CDiameterPeer"
> AcceptUnknownPeers="1"
> DropUnknownOnDisconnect="1"
> Tc="30"
> Workers="16"
> QueueLength="32"
> TransactionTimeout="5"
> SessionsHashSize="128"
> DefaultAuthSessionTimeout="3600"
> MaxAuthSessionTimeout="3600"
> >
> 
>  proto="sctp" port="3868"/>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> And here is what I am getting on the startup:
> 
> Jan 28 14:19:35 telco-lon1-02 kamailio: INFO:  [core/tcp_main.c:4722]: 
> init_tcp(): using epoll_lt as the io watch method (auto detected)
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22778]: INFO: 
>  [main.c:2649]: main(): processes (at least): 29 - shm size: 67108864 - 
> pkg size: 8388608
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22778]: INFO: 
> cdp [cdp_mod.c:240]: cdp_child_init(): CDiameterPeer child starting ...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22783]: INFO: 
> cdp [worker.c:332]: worker_process(): [1] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22778]: INFO: 
> cdp [cdp_mod.c:242]: cdp_child_init(): ... CDiameterPeer child started
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22790]: INFO: 
> cdp [worker.c:332]: worker_process(): [8] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22784]: INFO: 
> cdp [worker.c:332]: worker_process(): [2] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22786]: INFO: 
> cdp [worker.c:332]: worker_process(): [4] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22793]: INFO: 
> cdp [worker.c:332]: worker_process(): [11] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22794]: INFO: 
> cdp [worker.c:332]: worker_process(): [12] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22796]: INFO: 
> cdp [worker.c:332]: worker_process(): [14] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22788]: INFO: 
> cdp [worker.c:332]: worker_process(): [6] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22799]: INFO: 
> cdp [receiver.c:455]: receiver_process(): receiver_process(): [] Receiver 
> process doing init on new process...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22799]: INFO: 
> cdp [receiver.c:188]: add_serviced_peer(): add_serviced_peer(): Adding 
> serviced_peer_t to receiver for peer []
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22799]: INFO: 
> cdp [receiver.c:460]: receiver_process(): receiver_process(): [] Receiver 
> process starting up...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22791]: INFO: 
> cdp [worker.c:332]: worker_process(): [9] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22792]: INFO: 
> cdp [worker.c:332]: worker_process(): [10] Worker process started...
> Jan 28 14:19:35 telco-lon1-02 journal: [Diameter Routing Agent][22785]: INFO: 
> cdp [worker.c:332]: worker_process(): [3] Worker process started...
> Jan 28 1

Re: [SR-Users] Kamailio Ignore Re-INVITE

2019-01-24 Thread YASIN CANER
Hello,

did you invoke rtpproxy function to update ip address in WITHINDLG , because 
re-invite has to-tag that means in dialog. you should call rtp function  .


best regards

Yasin CANER



From: sr-users  on behalf of Alvaro Araos 

Sent: Friday, January 25, 2019 12:08 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Kamailio Ignore Re-INVITE


Hi,

   When receive a Re-INVITE with new Media IP and PORT, kamailio keeps sending 
RTP to the old IP PORT. Seems kamailio not update info to the rtpproxy.

[cid:6b6935d40f6c32480b2f2f10c3465aa9@voxcore.cl]

Saludos,
[cid:afc1f762675ddfad88ea53f97142ac5e@voxcore.cl]   Alvaro Araos Méndez
Director de Tecnología en FonoIP

+56 2 2947 9000
alv...@fonoip.com<mailto:alv...@fonoip.com> | 
www.fonoip.com<http://www.fonoip.com>
Moisés Chacón 46, El Monte, RM


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to send NOTIFY to UA

2019-01-22 Thread YASIN CANER
Hello

You can use UAC module to create and custom NOTIFY request.

http://kamailio.org/docs/modules/5.2.x/modules/uac.html#uac.f.uac_req_send


Yasin CANER


From: sr-users  on behalf of CuiGang 

Sent: Tuesday, January 22, 2019 11:45 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] How to send NOTIFY to UA

Hello,

Does any one know, how to send a NOTIFY message to a special UA?
Why I need to do this? I’m using kamailio integration with Yealink IP Phone. 
Yealink IP Phone can perform some specified action immediately by accepting a 
SIP NOTIFY message with the “Event: ACTION-URI” header.
I want to use RPC or HTTP or NSQ or some other interface trigger kamailio ROUTE 
make a NOTIFY message and send it to a special Yealink IP Phone.

Thanks!

Regards,

CuiGang
cuigang0...@aliyun.com




___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Additional Param Check in ConsumeCredential Auth

2019-01-21 Thread YASIN CANER
Hello,,
there is a lot way to remove a header. if it is just a Header , remove_hf() , 
if it  is value  then you can use exclude_hf_value().

load_credentials works after auth is done. check your configuration or please , 
share log.

http://kamailio.org/docs/modules/5.2.x/modules/textopsx.html#textopsx.f.exclude_hf_value

http://kamailio.org/docs/modules/5.2.x/modules/textops.html#textops.f.remove_hf


Yasin CANER

textops Module - 
Kamailio<http://kamailio.org/docs/modules/5.2.x/modules/textops.html#textops.f.remove_hf>
Check if the method of the message matches the name. If name is a known method 
(invite, cancel, ack, bye, options, info, update, register, message, subscribe, 
notify, refer, prack), the function performs method ID testing (integer 
comparison) instead of ignore case string comparison.
kamailio.org




From: sr-users  on behalf of Prabhat Kumar 

Sent: Monday, January 21, 2019 1:49 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Additional Param Check in ConsumeCredential Auth

I have used load_credentials for loading email, but not able to consume it.

modparam("auth_db", "load_credentials", "$avp(email)=email_address")

Also not able to access avp as it prints null

Regards,

Prabhat



On Mon, Jan 21, 2019 at 12:40 PM YASIN CANER 
mailto:caner_y...@hotmail.com>> wrote:
Hello

you can use load_credentials. After Auth is done , defined columns load to avp. 
and you can use it.


http://kamailio.org/docs/modules/5.2.x/modules/auth_db.html#auth_db.p.load_credentials

Yasin CANER


From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 on behalf of Mojtaba mailto:mes...@gmail.com>>
Sent: Monday, January 21, 2019 10:06 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Additional Param Check in ConsumeCredential Auth

Hello Prabhat,
Would you look at this function pv_www_authenticate in auth module? It seems it 
would be useful for you
You could use the email as authentication parameter too,
With Regards.Mojtaba


On Mon, Jan 21, 2019 at 10:08 AM Prabhat Kumar 
mailto:prabhat.ku...@myoperator.co>> wrote:
Hi,

I want to check additional param in Auth module. For. ex., other than username 
and secret , i want to validate user by its email address. How can i do that?

Regards,

Prabhat Kumar

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
--Mojtaba Esfandiari.S
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Additional Param Check in ConsumeCredential Auth

2019-01-20 Thread YASIN CANER
Hello

you can use load_credentials. After Auth is done , defined columns load to avp. 
and you can use it.


http://kamailio.org/docs/modules/5.2.x/modules/auth_db.html#auth_db.p.load_credentials

Yasin CANER


From: sr-users  on behalf of Mojtaba 

Sent: Monday, January 21, 2019 10:06 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Additional Param Check in ConsumeCredential Auth

Hello Prabhat,
Would you look at this function pv_www_authenticate in auth module? It seems it 
would be useful for you
You could use the email as authentication parameter too,
With Regards.Mojtaba


On Mon, Jan 21, 2019 at 10:08 AM Prabhat Kumar 
mailto:prabhat.ku...@myoperator.co>> wrote:
Hi,

I want to check additional param in Auth module. For. ex., other than username 
and secret , i want to validate user by its email address. How can i do that?

Regards,

Prabhat Kumar

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
--Mojtaba Esfandiari.S
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Radius Accounting with Kamailio 5.1 (On-line Charging)

2019-01-20 Thread YASIN CANER
Hello,

After setting servers conf file , you should see radius requests on tcpdump 
because of UDP. In addition ,have a look log files if there is a hint.

FreeRadius conf files.

https://github.com/FreeRADIUS/freeradius-client/tree/master/etc



Yasin CANER
[https://avatars1.githubusercontent.com/u/2430370?s=400=4]<https://github.com/FreeRADIUS/freeradius-client/tree/master/etc>

freeradius-client/etc at master · FreeRADIUS/freeradius-client · 
GitHub<https://github.com/FreeRADIUS/freeradius-client/tree/master/etc>
You signed in with another tab or window. Reload to refresh your session. You 
signed out in another tab or window. Reload to refresh your session.
github.com




From: sr-users  on behalf of Yazar Lwin 

Sent: Monday, January 21, 2019 6:21 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Radius Accounting with Kamailio 5.1 (On-line Charging)

Hello,

I enabled acc_radius module and acc module as well.  I also followed the 
acc_radius module config as below. CDR are populated in Siremis. But can't 
initiated radius accounting.

# - acc params -
/* what special events should be accounted ? */
modparam("acc", "early_media", 1)
modparam("acc", "report_ack", 0)
modparam("acc", "report_cancels", 1)
/* by default ww do not adjust the direct of the sequential requests.
 * if you enable this parameter, be sure the enable "append_fromtag"
 * in "rr" module */
modparam("acc", "detect_direction", 0)
/* account triggers (flags) */
modparam("acc", "log_flag", FLT_ACC)
modparam("acc", "log_missed_flag", FLT_ACCMISSED)
modparam("acc", "log_extra",
"src_user=$fU;src_domain=$fd;src_ip=$si;"
"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)
#acc_radius acc params--
modparam("acc_radius", "radius_config", "/etc/radiusclient/radiusclient.conf")
modparam("acc_radius", "radius_flag", 1)
modparam("acc_radius", "radius_missed_flag", 2)
modparam("acc_radius", "service_type", 15)
modparam("acc_radius", "radius_extra", "via=$hdr(Via[*]); email=$avp(s:email)")
modparam("acc_radius", "rad_time_mode", 1)


On Sat, Jan 19, 2019 at 7:52 PM YASIN CANER 
mailto:caner_y...@hotmail.com>> wrote:
Hello

Radius accounting working with acc module.  When you set acc flag , it try to 
send radius request to configured server. Dont forget the  configure 
radiusclient configuration. Ypu can find it on internet. Here is a document , 
it is old but helps

https://www.kamailio.org/docs/openser-radius-1.0.x.html

Good luck

Yasin CANER

iPhone’umdan gönderildi

Yazar Lwin mailto:yarzarl...@gmail.com>> şunları yazdı 
(19 Oca 2019 14:36):

Hi All,

I've Kamailio 5.1 running with Mysql as local DB.
I've configured Siremis as well. I completed accounting configuration as per 
the instruction. Now I can see the accounting list, CDR list and as well as 
missed calls in Siremis But I can't integrate with free radius server to 
trigger the accounting, just like Diameter transaction in IMS. Kindly advise 
which doc I should check.
I would like to enable Radius server as an online charging.

Best regards
Yazar
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Radius Accounting with Kamailio 5.1 (On-line Charging)

2019-01-19 Thread YASIN CANER
Hello

Radius accounting working with acc module.  When you set acc flag , it try to 
send radius request to configured server. Dont forget the  configure 
radiusclient configuration. Ypu can find it on internet. Here is a document , 
it is old but helps

https://www.kamailio.org/docs/openser-radius-1.0.x.html

Good luck

Yasin CANER

iPhone’umdan gönderildi

Yazar Lwin mailto:yarzarl...@gmail.com>> şunları yazdı 
(19 Oca 2019 14:36):

Hi All,

I've Kamailio 5.1 running with Mysql as local DB.
I've configured Siremis as well. I completed accounting configuration as per 
the instruction. Now I can see the accounting list, CDR list and as well as 
missed calls in Siremis But I can't integrate with free radius server to 
trigger the accounting, just like Diameter transaction in IMS. Kindly advise 
which doc I should check.
I would like to enable Radius server as an online charging.

Best regards
Yazar
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Dev documentation on implementing event_route events in custom module

2019-01-18 Thread YASIN CANER
Hello

You can look registrar module that has usrloc:contact-expire

Good luck

Yasin Caner

Mojtaba mailto:mes...@gmail.com>> şunları yazdı (18 Oca 2019 
22:34):

I'm gone away right now. I'll send for you as soon as

On Fri, 18 Jan 2019, 22:34 Ivan Ribakov, 
mailto:i.riba...@zaleos.net>> wrote:
Thanks for the suggestion. I thought about that, but TM module is not one of 
the smallest. If there is a smaller, simpler model that uses events that 
someone could recommend I could look into it. But in any case, I was looking 
for something more documented to learn about all capabilities of the events, 
not just the ones that might be used by some module.

On 18 Jan 2019, at 17:43, Mojtaba mailto:mes...@gmail.com>> 
wrote:

Hello Ivan,
Actually i haven't seen documentation but there is a good reference for it, the 
impelemention of modules. You could look around them to find out. It is very 
strightforwards.


On Fri, 18 Jan 2019, 18:57 Ivan Ribakov, 
mailto:i.riba...@zaleos.net>> wrote:
Is there any documentation for module developers that lays out API for 
registering and triggering events from a custom Kamailio module (similar to 
https://kamailio.org/docs/modules/5.0.x/modules/tm.html#tm.event_routes)?

I have been referring to https://www.kamailio.org/docs/kamailio-devel-guide/ up 
until now but it doesn’t seem to cover event_routes.

Thanks in advance,
Ivan
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] event_route[usrloc:contact-expired]

2019-01-18 Thread YASIN CANER
Hello,

I already tested on 5.2.x and it is working.

Yasin CANER


From: Daniel-Constantin Mierla 
Sent: Friday, January 18, 2019 3:33 PM
To: Javier Valencia; Kamailio (SER) - Users Mailing List; YASIN CANER
Subject: Re: [SR-Users] event_route[usrloc:contact-expired]


Hello,


can you try with latest 5.1.x or 5.2.x to see if it is about something already 
fixed? Then could be tracked back via commit logs. Or if still an issue, it is 
easier to troubleshoot from dev team point of view.


Cheers,
Daniel


On 18.01.19 11:47, Javier Valencia wrote:

Hi Yasin and Daniel


I upgrade my testing kamailio to 4.4.7, the last branch on 4.4.x version, but 
it's still running like 4.4.3, don't run event_route.


Saludos, Javier Valencia.



El 18/1/19 a las 10:01, Daniel-Constantin Mierla escribió:

Hello,


4.4.3 is very old to remember if there was any related issue and moreover it is 
not the latest in its series, so try first to upgrade to latest 4.4.x version, 
to ensure that you have all fixes for what was found wrong during maintenance 
of 4.4.x.


Cheers,
Daniel


On 18.01.19 09:20, YASIN CANER wrote:
Hello,

this option is added after 4.4.x . Sorry that I looked wrong branch.  I tested 
it on new versions and it is working.


Good luck.


From: Javier Valencia <mailto:j...@voiper.es>
Sent: Friday, January 18, 2019 11:07 AM
To: YASIN CANER; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] event_route[usrloc:contact-expired]


No,


It's a hidden feature? I can't see in docs.


I made the changes, but Kamailio (as expected) don't start

ERROR:  [modparam.c:141]: set_mod_param_regex(): parameter 
 of type <1> not found in module 

Best regards, Javier Valencia.


El 18/1/19 a las 6:46, YASIN CANER escribió:
Hello

Could you try to set parameter on your test environment?


modparam("registrar", "event_callback", "usrloc:contact-expired")

Cheers
Yasin CANER


From: Javier Valencia <mailto:j...@voiper.es>
Sent: Thursday, January 17, 2019 6:51 PM
To: YASIN CANER; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] event_route[usrloc:contact-expired]


Hi Yasin.


I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other 
L_INFO entries.


The problem it's this event_route it's not called.


Best regards


Javier Valencia



El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,

could you check debug level is enough to write logs? Probably it is debug=2

https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages

Best Regards

Yasin CANER


tutorials:debug-syslog-messages - Kamailio (OpenSER) 
Wiki<https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages>
Authors of initial tutorial: Daniel-Constantin Mierla  
Elena-Ramona Modroiu  Abstract Tutorial about how to 
print debug and syslog messages with Kamailio (OpenSER) SIP Server.
www.kamailio.org<http://www.kamailio.org>




From: sr-users 
<mailto:sr-users-boun...@lists.kamailio.org>
 on behalf of Javier Valencia <mailto:j...@voiper.es>
Sent: Thursday, January 17, 2019 6:33 PM
To: sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Subject: [SR-Users] event_route[usrloc:contact-expired]


Hi there!

I'm using Kamailio 4.4.3, and I add this code to my Kamailio:

event_route[usrloc:contact-expired] {

xlog("L_INFO", "EXPIRED CONTACT START\n");
xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n");
xlog("L_INFO", "EXPIRED CONTACT END\n");
}

I can't see this entries in the log.

I read many times the docs and code, but I don't understand why it's not 
working.

I have two phone with 60 and 300 expiry seconds, if then expire, when it's 
event_route[usrloc:contact-expired] triggered?

Why this event route it's named as usrloc but it's documented in registrar 
module?

I need to provide more info about?

Thank you very much.





___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - May 6-8, 2019 -- 
www.kamailioworld.com<http://www.kamailioworld.com>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in 
Washington, DC, USA -- www.asipto.com<http://www.asipto.com>

--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda&g

Re: [SR-Users] event_route[usrloc:contact-expired]

2019-01-18 Thread YASIN CANER
Hello,

this option is added after 4.4.x . Sorry that I looked wrong branch.  I tested 
it on new versions and it is working.


Good luck.


From: Javier Valencia 
Sent: Friday, January 18, 2019 11:07 AM
To: YASIN CANER; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] event_route[usrloc:contact-expired]


No,


It's a hidden feature? I can't see in docs.


I made the changes, but Kamailio (as expected) don't start

ERROR:  [modparam.c:141]: set_mod_param_regex(): parameter 
 of type <1> not found in module 

Best regards, Javier Valencia.


El 18/1/19 a las 6:46, YASIN CANER escribió:
Hello

Could you try to set parameter on your test environment?


modparam("registrar", "event_callback", "usrloc:contact-expired")

Cheers
Yasin CANER


From: Javier Valencia <mailto:j...@voiper.es>
Sent: Thursday, January 17, 2019 6:51 PM
To: YASIN CANER; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] event_route[usrloc:contact-expired]


Hi Yasin.


I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other 
L_INFO entries.


The problem it's this event_route it's not called.


Best regards


Javier Valencia



El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,

could you check debug level is enough to write logs? Probably it is debug=2

https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages

Best Regards

Yasin CANER


tutorials:debug-syslog-messages - Kamailio (OpenSER) 
Wiki<https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages>
Authors of initial tutorial: Daniel-Constantin Mierla  
Elena-Ramona Modroiu  Abstract Tutorial about how to 
print debug and syslog messages with Kamailio (OpenSER) SIP Server.
www.kamailio.org<http://www.kamailio.org>




From: sr-users 
<mailto:sr-users-boun...@lists.kamailio.org>
 on behalf of Javier Valencia <mailto:j...@voiper.es>
Sent: Thursday, January 17, 2019 6:33 PM
To: sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Subject: [SR-Users] event_route[usrloc:contact-expired]


Hi there!

I'm using Kamailio 4.4.3, and I add this code to my Kamailio:

event_route[usrloc:contact-expired] {

xlog("L_INFO", "EXPIRED CONTACT START\n");
xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n");
xlog("L_INFO", "EXPIRED CONTACT END\n");
}

I can't see this entries in the log.

I read many times the docs and code, but I don't understand why it's not 
working.

I have two phone with 60 and 300 expiry seconds, if then expire, when it's 
event_route[usrloc:contact-expired] triggered?

Why this event route it's named as usrloc but it's documented in registrar 
module?

I need to provide more info about?

Thank you very much.


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] event_route[usrloc:contact-expired]

2019-01-17 Thread YASIN CANER
Hello

Could you try to set parameter on your test environment?


modparam("registrar", "event_callback", "usrloc:contact-expired")

Cheers
Yasin CANER


From: Javier Valencia 
Sent: Thursday, January 17, 2019 6:51 PM
To: YASIN CANER; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] event_route[usrloc:contact-expired]


Hi Yasin.


I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other 
L_INFO entries.


The problem it's this event_route it's not called.


Best regards


Javier Valencia



El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,

could you check debug level is enough to write logs? Probably it is debug=2

https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages

Best Regards

Yasin CANER


tutorials:debug-syslog-messages - Kamailio (OpenSER) 
Wiki<https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages>
Authors of initial tutorial: Daniel-Constantin Mierla  
Elena-Ramona Modroiu  Abstract Tutorial about how to 
print debug and syslog messages with Kamailio (OpenSER) SIP Server.
www.kamailio.org<http://www.kamailio.org>




From: sr-users 
<mailto:sr-users-boun...@lists.kamailio.org>
 on behalf of Javier Valencia <mailto:j...@voiper.es>
Sent: Thursday, January 17, 2019 6:33 PM
To: sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Subject: [SR-Users] event_route[usrloc:contact-expired]


Hi there!

I'm using Kamailio 4.4.3, and I add this code to my Kamailio:

event_route[usrloc:contact-expired] {

xlog("L_INFO", "EXPIRED CONTACT START\n");
xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n");
xlog("L_INFO", "EXPIRED CONTACT END\n");
}

I can't see this entries in the log.

I read many times the docs and code, but I don't understand why it's not 
working.

I have two phone with 60 and 300 expiry seconds, if then expire, when it's 
event_route[usrloc:contact-expired] triggered?

Why this event route it's named as usrloc but it's documented in registrar 
module?

I need to provide more info about?

Thank you very much.


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] event_route[usrloc:contact-expired]

2019-01-17 Thread YASIN CANER
Hello,

could you check debug level is enough to write logs? Probably it is debug=2

https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages

Best Regards

Yasin CANER


tutorials:debug-syslog-messages - Kamailio (OpenSER) 
Wiki<https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages>
Authors of initial tutorial: Daniel-Constantin Mierla  
Elena-Ramona Modroiu  Abstract Tutorial about how to 
print debug and syslog messages with Kamailio (OpenSER) SIP Server.
www.kamailio.org




From: sr-users  on behalf of Javier 
Valencia 
Sent: Thursday, January 17, 2019 6:33 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] event_route[usrloc:contact-expired]


Hi there!

I'm using Kamailio 4.4.3, and I add this code to my Kamailio:

event_route[usrloc:contact-expired] {

xlog("L_INFO", "EXPIRED CONTACT START\n");
xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n");
xlog("L_INFO", "EXPIRED CONTACT END\n");
}

I can't see this entries in the log.

I read many times the docs and code, but I don't understand why it's not 
working.

I have two phone with 60 and 300 expiry seconds, if then expire, when it's 
event_route[usrloc:contact-expired] triggered?

Why this event route it's named as usrloc but it's documented in registrar 
module?

I need to provide more info about?

Thank you very much.


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Invalid sqlops parameter

2019-01-17 Thread YASIN CANER
Hello,

I think , first  problem is that Kamailio couldn t open route/register.cfg 
file.  Secondly , Could you share line 278 in kamailio.cfg.

it should be like

modparam("sqlops","sqlcon","cb=>mysql://Mysql:password@localhost/pcscf")

Cheers.

Yasin CANER


From: sr-users  on behalf of Yağız AYDIN 

Sent: Thursday, January 17, 2019 2:41 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Invalid sqlops parameter

Hello,

I'm trying to install Kamailio IMS for my Ubuntu 18.04 device. I have followed 
the configuration files which are provided by installation, but I have a 
problem about sqlops module.

While I'm trying to execute pcscf module, following errors appear:

root@yagiz-HP-ZBook-15:/usr/local/src/kamailio# kamailio -f 
/etc/kamailio/pcscf/kamailio.cfg -c
loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules
 0(12536) ERROR: sqlops [sql_api.c:669]: sql_parse_param(): invalid sqlops 
parameter [mysql://Mysql@localhost/pcscf] at [29]
 0(12536) CRITICAL:  [core/cfg.y:3449]: yyerror_at(): parse error in 
config file /etc/kamailio/pcscf/kamailio.cfg, line 278, column 60: Can't set 
module parameter
 0(12536) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
 0(12536) CRITICAL:  [core/cfg.lex:1599]: sr_push_yy_state(): cannot open 
included file: route/register.cfg (/etc/kamailio/pcscf/route/register.cfg)
 0(12536) :  [core/cfg.lex:1308]: yylex(): error at 
/etc/kamailio/pcscf/kamailio.cfg line 907

I have set my sqlops parameter as :

#!define SQLOPS_DBURL "mysql://Mysql@localhost/pcscf"

PS: I have created necessary databases and tables which are mentioned on usrloc 
files ( which are ims_usrloc_pcscf-create.sql and ims_usrloc_scscf-create.sql)

Here is my pcscf.cfg file
# IP-Adress for incoming SIP-Traffic, in the following format:

# SIP / UDP
listen=udp:10.3.0.188:5060<http://10.3.0.188:5060>
# SIP / TCP
#listen=tcp:11.22.33.44:5060<http://11.22.33.44:5060>
# SIP / TCP/TLS
#listen=tls:11.22.33.44:5061<http://11.22.33.44:5061>

alias=pcscf.mnc001.mcc001.3gppnetwork.org<http://pcscf.mnc001.mcc001.3gppnetwork.org>

#!define MY_WS_PORT 80
#!define MY_WSS_PORT 443

#!define PCSCF_URL 
"sip:pcscf.mnc001.mcc001.3gppnetwork.org<http://pcscf.mnc001.mcc001.3gppnetwork.org>"

#!define TCP_PROCESSES 8

#!subst 
"/NETWORKNAME/mnc001.mcc001.3gppnetwork.org/<http://mnc001.mcc001.3gppnetwork.org/>"
#!subst 
"/HOSTNAME/pcscf.mnc001.mcc001.3gppnetwork.org/<http://pcscf.mnc001.mcc001.3gppnetwork.org/>"

# SIP-Address of capturing node, if not set, capturing is disabled.
##!define CAPTURE_NODE "sip:127.0.0.1:9060<http://127.0.0.1:9060>"

# Allowed IPs for XML-RPC-Queries
##!define XMLRPC_WHITELIST_1 "127.0.0.1"
##!define XMLRPC_WHITELIST_2 "127.0.0.1"
##!define XMLRPC_WHITELIST_3 "127.0.0.1"

#!define RTPPROXY_ADDRESS "udp:10.1.2.186:2<http://10.1.2.186:2>"

# Databases:
#!define DB_URL "mysql://Mysql@localhost/pcscf"
##!define DB_URL "mysql://kamailio:kamailiorw@localhost/kamailio/pcscf"
##!define DB_URL2 
"con2=>mysql://pcscf:heslo@127.0.0.1/pcscf<http://pcscf:heslo@127.0.0.1/pcscf>"

#!define SQLOPS_DBURL "mysql://Mysql@localhost/pcscf"
##!define SQLOPS_DBURL "mysql://root@localhost/pcscf"

#! Optional: Server-URL for Websocket-Requests
##!define WEBSOCKET_WEBSERVER "phone.ng-voice.com<http://phone.ng-voice.com>"

##!define TRF_FUNCTION 
"trf.mnc001.mcc001.3gppnetwork.org<http://trf.mnc001.mcc001.3gppnetwork.org>"

#
# Several features can be enabled using '#!define WITH_FEATURE' directives:
#
# *** To run in debug mode:
# - define WITH_DEBUG
#
# *** To enable nat traversal execute:
# - define WITH_NAT
# - define the connection to the RTP-Proxy: RTPPROXY_ADDRESS
#
# *** To force alls calls through the RTP-Proxy
# - this will automagically enable NAT-Traversal
# - define FORCE_RTPRELAY
#
# *** To enable IPv4/IPv6 Translation (RTPProxy)
# - this will automagically enable NAT-Traversal
# - define WITH_RTPIPV4
#
# *** To enable TCP support execute:
# - define WITH_TCP
#
# *** To enable TLS support execute:
# - adjust CFGDIR/tls.cfg as needed
# - define WITH_TLS
# - this will automagically enable TCP
#
# *** To enable XMLRPC support execute:
# - define WITH_XMLRPC
# - this will automagically enable TCP
#
# *** To enable anti-flood detection execute:
# - adjust pike and htable=>ipban settings as needed (default is
#   block if more than 16 requests in 2 seconds and ban for 300 seconds)
# - define WITH_ANTIFLOOD
#
# *** To enable the Rx-Interface:
# - Configure Rx-Diameter-Interface in pcscf.xml
# - define WITH_RX
#
# *** To enable a Homer SIP-Capter-Node:
# - define CAPTURE_NODE wit

Re: [SR-Users] Setting up Kamailio IMS in a Box difficulties.

2019-01-16 Thread YASIN CANER
Hello,

it is shared by Franz Edler as mentioned . Vmbox username and password is 
franz/franz.

I couldnt find any IMS client that support IPsec or all IMS headers. You can 
use sipp for testing but dont have IPsec support.

Best Regards.




From: sr-users  on behalf of Jason Tsay 

Sent: Thursday, January 17, 2019 12:16 AM
To: sr-us...@lists.sip-router.org
Subject: [SR-Users] Setting up Kamailio IMS in a Box difficulties.


Hi miconda,


I am new to the Kamailio and RCS world.


I'm trying to set up an IMS core so I can get two devices communication through 
RCS.


I am trying to set up the Kamailio IMS in a box vmware image, and when I boot 
it up, it asks for the server login information.

​​All parameters and passwords used are documented in the log-file.​

I couldn't find documentation for the username and password. I was wondering if 
there is a new link available or login information where I could see the set up.


These are the things that I have found (to be working)

getting started - 
https://www.kamailio.org/w/2016/02/kamailio-ims-getting-started-box/

configs - 
https://www.dropbox.com/s/nm51v4orxrox4ac/Kamailio-IMS%20config-files.zip?dl%0A=0_subpath=%2FKamailio-IMS+config-files

pdf - https://www.kamailio.org/docs/tutorials/ims/Kamailio-IMS-in-a-Box.pdf


I did find the config files in a dropbox but I wanted to get the vmware sandbox 
working so I have a working environment (as I have failed many times to get my 
own instance set up.)


In addition, I was looking for some Android clients or if you could recommend 
some. I've tried rcsjta but I keep getting an API not compatible error (Doesn't 
work on Android Pie (Pixel 3 device) or Android M (6.0.1) Nexus device.)


I also tried IMSdroid, and it looks like it works with Android M (6.0.1) Nexus 
device but not compatible with Android Pie.


Thanks,

Jason
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] segfault at 0 - process stopped

2019-01-14 Thread YASIN CANER
Hello.
Kamailio version is really old. 5.2 is available now. Without core dump 
backtrace , it is hard to find out. Until version5.2 , tons of buga are fixed 
and improved.


Good luck



AL RSM mailto:ali...@mail.com>> şunları yazdı (14 Oca 2019 
21:54):

Hi

We are running Kamailio 3.7 on our production servers. The Kamailio process 
stopped running on one of the 4 servers. Log shows "segfault error".
No core file generated. Any suggestion on how to verify the issue would be 
appreciated.

kernel: [63574875.776269] kamailio[1558]: segfault at 0 ip 0055933a sp 
7fffd4ca6700 error 4 in kamailio[40+211000]
/usr/sbin/kamailio[1545]: ALERT:  [main.c:785]: child process 1558 exited 
by a signal 11
/usr/sbin/kamailio[1545]: ALERT:  [main.c:788]: core was not generated
CRON[21436]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Thanks,
AL

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] No Media in SIP Incoming calls

2019-01-10 Thread YASIN CANER
Hello,

Kamailio support 2 backend for rtp. RTP Engine and RTP proxy. it depends your 
configuration. I read from your post that
 "I am not sure if this is an RTP engine issue and how to resolve this." . I 
thought it is rtpengine.

Indeed , they are different services and has different configuration that do 
same thing that relays rtp packets.  you can find examples from documentation.

I didnt get internal interface what is mean? but if rtpproxy/engine relays to 
Asterisk on -lo interface , you should listen your -lo interface by Wireshark.

Good luck.

Yasin CANER



From: sr-users  on behalf of Serge 
S.Yuriev 
Sent: Thursday, January 10, 2019 11:30 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] No Media in SIP Incoming calls

Hi

- I see you mentioned rtpengine but config shows rtpproxy - which one you use? 
Maybe you mixed things?
- Have you tried to capture internal interface of kamailio machine? Is RTP 
there?

--
Wbr, Serge via mobile

09.01.2019, 10:37, "Prashant Gupta" :
Hi,
I have the following architecture - SIP provider <-> Kamailio <-> Asterisk 
servers
Currently I have everything setup and incoming calls from Sip are routed to my 
asterisk server. The issue is however that when I answer the call, there is no 
media in the call. I have tried connecting with a normal local extension(not 
SIP,eg 1001) and there is a normal flow of media.
When i try to sniff my connection via Wireshark on the asterisk server, there 
is an outflow of RTP packets but the same RTP traffic does not appear on the 
Wireshark of my Kamailio server connection.
I am not sure if this is an RTP engine issue and how to resolve this.
I have -
modparam("rtpproxy", "rtpproxy_sock", 
"udp:127.0.0.1:45038<http://127.0.0.1:45038/>")
this in my kamailio cfg but I don;t know which port to use here.
Any suggestions?


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] 5.0 Version compiling gives warning

2017-08-31 Thread Yasin CANER

  
  
Hello,
    Compiling branch
5.0 gives error as below.
Thanks
  
Centos 6.5
Linux  
2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
gcc (GCC) 4.4.7
20120313 (Red Hat 4.4.7-18)

WARNING:
  CC (gcc) [M xmlrpc.so]  xmlrpc.o
  xmlrpc.c: In function ‘set_fault’:
  xmlrpc.c:888: warning: implicit declaration of function
  ‘vsnprintf’
  xmlrpc.c: In function ‘print_value’:
  xmlrpc.c:1018: warning: implicit declaration of function
  ‘snprintf’
  xmlrpc.c:1018: warning: incompatible implicit declaration of
  built-in function ‘snprintf’
  
  -- 
  

  

  


  
  


  
  

  

  

  
  

  

  

  

  

  

  


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] BUG: invalid branch

2017-08-10 Thread Yasin CANER

  
  
Hello,
    After clonning
git from master branch , it is installed. on run time , it gives
error as below. What is mean?
Thanks.
2.6.32-573.26.1.el6.x86_64
#1 SMP Wed May 4 00:57:44 UTC 2016 x86_64 x86_64 x86_64
GNU/Linux
cat
/etc/redhat-release
CentOS release 6.7 (Final)

  
version: kamailio
5.1.0-dev5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY,
USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT
PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 10:50:53 Aug 10 2017 with gcc 4.4.7

  

  
Aug 10 11:15:41 xax
/usr/local/sbin/kamailio[12554]: CRITICAL: tm [t_reply.c:2184]:
reply_received(): BUG: invalid branch - report to developers
Aug 10 11:16:41 xax /usr/local/sbin/kamailio[12558]: CRITICAL:
tm [t_reply.c:2184]: reply_received(): BUG: invalid branch -
report to developers
Aug 10 11:17:41 xax /usr/local/sbin/kamailio[12553]: CRITICAL:
tm [t_reply.c:2184]: reply_received(): BUG: invalid branch -
report to developers

-- 
  
  
  
  

  

  



  
  

  Yasin CANER
  Communication Tech Engineer
  0850 303 0 303 / 0312 911 0 911
  www.netgsm.com.tr

  
  

  

  

  

  

  

  

  

  

  


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Compiling errors

2017-06-29 Thread Yasin CANER

  
  
Hello , 
  
gcc is updated from 
4.4.7 20120313 (Red Hat 4.4.7-16) to 4.4.7 20120313 (Red Hat
4.4.7-18) and then kamailio cloned from git again. it didnt give
any error.
thanks.


29.06.2017 10:35 tarihinde
  Daniel-Constantin Mierla yazdı:


  
  Hello,
  what's your compiler (and its version)? clang was dealing fine
with this case.
  Anyhow, should be fixed in master branch, just fetch latest
version.
  Cheers,
Daniel
  
  
  On 29.06.17 09:23, Yasin CANER wrote:
  
  

Hello,

  
 
on compiling git
master branch gives error as below. Could you check it
please.
Cheers.

  

  make
include_modules="acc_radius auth_radius misc_radius" cfg

make all
make[3]: `libsrutils.so.1.0' is up to date.
  LD (gcc) [M jsonrpcs.so]    jsonrpcs.so
  CC (gcc) [M keepalive.so]   keepalive_api.o
  In file included from keepalive_api.c:40:
  api.h:39: error: redefinition of typedef ‘ka_statechanged_f’
  keepalive.h:48: note: previous declaration of
  ‘ka_statechanged_f’ was here
  make[2]: *** [keepalive_api.o] Error 1
  make[1]: *** [modules] Error 1
  make[1]: Leaving directory `/usr/src/kamailio/src'
  make: *** [all] Error 2
  

-- 
  
  
  
  

  

  



  
  

  Yasin CANER
  Communication Tech Engineer
  0850 303 0 303 / 0312 911 0 911
  www.netgsm.com.tr

  
  

  

  

  

  

  

  

  

  




___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

  
  
  -- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


-- 
  
  
  
  

  

  



  
  

  Yasin CANER
  Communication Tech Engineer
  0850 303 0 303 / 0312 911 0 911
  www.netgsm.com.tr

  
  

  

  

  

  

  

  

  

  

  


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users