Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2016-12-05 Thread ycaner
Hello, you are right. some carrier route functions are missing.important of them are dump and show methods.if i have time ,i can add them. Cheers. 6.12.2016 10:48 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:

Re: [SR-Users] Local messages are malformed in Kamailio 4.4.X

2016-12-05 Thread Daniel-Constantin Mierla
For reference: patches to fix this issue were pushed to master and 4.4 branches several days ago. Cheers, Daniel On 02/12/2016 01:52, g.Helio wrote: > > Yes, in my test te parameter reparse_invite was enabled. And I was > using Kamailio 4.4.2. > > Regards, > Helio > > > > > -

Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2016-12-05 Thread Daniel-Constantin Mierla
Hello, looking in the code I see the carrierroute module has already rpc command for reload operations. But there are some other mi commands not implemented as rpc. Cheers, Daniel On 05/12/2016 11:28, Daniel-Constantin Mierla wrote: > Hello, > > few that are missing can be probably added once w

Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO"

2016-12-05 Thread Daniel-Constantin Mierla
Hello, you can reorganize the config in order to execute t_relay() for ACK, then you can do your stuff after it. if is ack { t_relay(); custom stuff exit; } Cheers, Daniel On 05/12/2016 15:03, Jonathan Hunter wrote: > > Hello, > > > I had been testing with ACK within that route, b

Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO"

2016-12-05 Thread Jonathan Hunter
Hello, I had been testing with ACK within that route, but in the ideal scenario I want to proxy the ACK, then follow that with the SIP INFO, where as at the moment it sends at same time, once it matches. I wondered if there is an event route I can trigger once I know the ACK has been relayed

Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO"

2016-12-05 Thread Daniel-Constantin Mierla
Hello, the ACK for requests within dialogs is routed via route[WITHINDLG], if it has a Route header -- also you can check if it belongs to an dialog -- dialog module should export a function for that. Cheers, Daniel On 05/12/2016 14:13, Jonathan Hunter wrote: > > Hello, > > > Ok thanks for th

Re: [SR-Users] Limiting Registration Contacts

2016-12-05 Thread Daniel-Constantin Mierla
Hello, I didn't try to suggest that what you want won't be useful or rejected if someone wants to contribute. My explanation was for what exists now. Also, be aware that you can have one contact per device, which is feature controlled differently than the max_contacts -- see save() documentation

[SR-Users] INFO: modules purple and iptrtpproxy moved to obsolete folder

2016-12-05 Thread Daniel-Constantin Mierla
Hello, be aware that the modules purple and iptrtpproxy were moved to obsolete folder. They were not compiling for several years and nobody showed interest in updating them. If anyone wast to rescue them, she/he is welcome to get them back and upgrade the code to work with current versions of the

[SR-Users] INFO: kcore internal lib removed

2016-12-05 Thread Daniel-Constantin Mierla
Hello, mainly for those having private modules or other components for kamailio, take note that the internal library kcore has been removed. It was supposed to be a termporary place where to keep some kamailio specific functions at the time of merging with ser code back in 2008. The main code was

Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO"

2016-12-05 Thread Jonathan Hunter
Hello, Ok thanks for that, it works perfectly. I am generating the SIP INFO message, on receipt of a 200ok, which is being triggered by the event_route[dialog:start]. One last thing, is it possible to trigger /capture the event of the ACK being received for the 200 ok ? As ideally I want

Re: [SR-Users] Limiting Registration Contacts

2016-12-05 Thread Colin Morelli
Hey Daniel, This makes sense, thanks for the explanation. While I can understand why it works the way it does now, I still think having an option here would be great. My thought is, whether the mobile phone that re-registers every 10 minutes or the desk phone is "older," the point is that they're

Re: [SR-Users] kamailio bridge internal and external network

2016-12-05 Thread Daniel-Constantin Mierla
On 05/12/2016 11:58, Alex Balashov wrote: > On Mon, Dec 05, 2016 at 11:56:20AM +0100, Daniel-Constantin Mierla wrote: > >> as a further hint I would add the forcing of outgoing socket -- be sure >> the appropriate socket is used for sending out (see force_send_socket() >> or assignment to $fs). T

Re: [SR-Users] Getting destination ip

2016-12-05 Thread Daniel-Constantin Mierla
Hello, do you need to get this when the sip response is received from another address or when kamailio is generating the response? Cheers, Daniel On 30/11/2016 02:49, David Villasmil wrote: > Thanks for your help, > $sel(via[1].host) actually shows the internal ip address of the > client... :(

Re: [SR-Users] Kamailio Processes Stop Responding

2016-12-05 Thread Daniel-Constantin Mierla
On 30/11/2016 23:46, Alex Balashov wrote: > On Wed, Nov 30, 2016 at 05:42:56PM -0500, Peter DiSanto wrote: > >> OK thank you Alex. I will look into your suggestions next time the problem >> arises. Each call does generate one SQL LCR lookup, one CDR INSERT, and >> also a timer route that runs 3

Re: [SR-Users] Limiting Registration Contacts

2016-12-05 Thread Daniel-Constantin Mierla
Hello, right now the rule is to reject the registrations that exceed the max_contacts limit. The main reason behind this policy is the registration mechanism in SIP which requires periodic update/refresh but also different expires intervals. In this way it's hard to select the "old device". Can b

Re: [SR-Users] kamailio bridge internal and external network

2016-12-05 Thread Alex Balashov
On Mon, Dec 05, 2016 at 11:56:20AM +0100, Daniel-Constantin Mierla wrote: > as a further hint I would add the forcing of outgoing socket -- be sure > the appropriate socket is used for sending out (see force_send_socket() > or assignment to $fs). Then all double record-routing should be done > aut

Re: [SR-Users] kamailio bridge internal and external network

2016-12-05 Thread Daniel-Constantin Mierla
Hello, On 05/12/2016 11:29, Alex Balashov wrote: > Hello, > > On Mon, Dec 05, 2016 at 04:53:55PM +0800, zhang90501 wrote: > >> My kamailio listen at internal ip and external ip(advertise parameter), it >> send message to freeswitch from internal ip and to client from external ip. >> How can I co

Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO"

2016-12-05 Thread Daniel-Constantin Mierla
Hello, this is only when you do jsonrpc over http, but it is not the case here. See my previous response in this discussion thread. Cheers, Daniel On 02/12/2016 15:28, Jonathan Hunter wrote: > > Hi Daniel, > > > I can see when people are using curl they can define content-type ; > > > /--head

Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO"

2016-12-05 Thread Daniel-Constantin Mierla
Hello, all the headers must be in a single parameter, I see that you provide headers one by one in the params array. Try: jsonrpc_exec(' { "jsonrpc":"2.0", "method":"tm.t_uac_start", "params": [ "INFO", "$dlg(to_uri)", ".", ".", "From:$var(testjon)\r\nTo:$var(testjon2)\r\

Re: [SR-Users] kamailio bridge internal and external network

2016-12-05 Thread Alex Balashov
Hello, On Mon, Dec 05, 2016 at 04:53:55PM +0800, zhang90501 wrote: > My kamailio listen at internal ip and external ip(advertise parameter), it > send message to freeswitch from internal ip and to client from external ip. > How can I configure my kamailio to auto generate correct record route he

Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2016-12-05 Thread Daniel-Constantin Mierla
Hello, few that are missing can be probably added once we discover them. The best is to open an issue on bug tracker whenever you are aware of a mi command not implemented in rpc. Even better will be a pull request :-) -- migrating from mi to rpc should not be complex and rather easy to lean by lo

[SR-Users] Restructuring source code tree for v5.0

2016-12-05 Thread Daniel-Constantin Mierla
Hello, I already started playing with various scripts to do the restructuring of the source code tree for v5.0 as we discussed in the past months and I am considering to do it quite soon, in the next few days. The result will look like: /Makefile (only-forwarding make commands to various subdirs

[SR-Users] kamailio bridge internal and external network

2016-12-05 Thread zhang90501
My kamailio listen at internal ip and external ip(advertise parameter), it send message to freeswitch from internal ip and to client from external ip. How can I configure my kamailio to auto generate correct record route header?___ SIP Express Router (SE