[SR-Users] Concatenating strings in $hdr

2019-07-24 Thread David Cunningham
Hello, I'm having an issue where this doesn't work: #!trydef PRODUCT "Foo" if( $hdr("X-" + PRODUCT + "-Transport") != "" ) { add_uri_param( $hdr("X-" + PRODUCT + "-Transport") ); } It seems Kamailio doesn't like the concatenation within the $hdr(). Concatenation does work in other places

Re: [SR-Users] [sr-dev] IMS_ISC technical specification

2019-07-24 Thread Mojtaba
According to TS 24.229, The AS could send request to SCSCF, too. But some rules shall be obeied. For example did you add P-Asserted-Identity header to your request? With Best Regards.Mojtaba On Wed, 24 Jul 2019, 17:19 Ali Shirvani Hello Mojtaba, > > Thanks for your reply. You are completely

Re: [SR-Users] [sr-dev] IMS_ISC technical specification

2019-07-24 Thread Ali Shirvani
Hello Mojtaba, Thanks for your reply. You are completely correct, my current configuration work fine when request initiated from UEs, but I want to handle SIP requests that initiated by application server. When UE sends request to S-CSCF, kamailio fetch iFC from HSS and check if the request match

Re: [SR-Users] [sr-dev] IMS_ISC technical specification

2019-07-24 Thread Mojtaba
Hello Ali, The SCSCF has IFC service for decision what it should do with incoming SIP message. During check all rules in IFC, If it match with one or some rules, actually it marked with that rules. Then the real meaning of marking is the SIP message is matched with one or some rules in IFC. With

Re: [SR-Users] [EXT] Re: P-CSCF and I-CSCF ports -RESOLVED

2019-07-24 Thread Woscek, Martin W.
Hi Ali, Looking through the source code, its not that the port for I-CSCF is hard coded to 5060, its just that it defaults to 5060 if the following is set in the Kamailio.cfg file: dns_try_naptr=no which we had left it disabled. Well I assumed I had all the DNS worked out, I had NAPTR records

[SR-Users] IMS_ISC technical specification

2019-07-24 Thread Ali Shirvani
Hi all, I read some portion of imc_isc_mod.c, specially isc_from_as function. In that function there is some function call that searching for some marks in the SIP message. Also I read section 5.7.3 from TS 24.229 but I didn't find the marking mechanism that used in isc_from_as function. Would

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

2019-07-24 Thread Pali Rohár
I upgraded to version 5.2.3 and problem is still there. IPv6 address is present in Contact header in IPv4 packets. The only difference between 5.2.3 and 4.4.4 is that IPv6 address is in square brackets. On Friday 19 July 2019 10:19:29 Pali Rohár wrote: > Ok, I will try a new version (but I

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

2019-07-24 Thread Henning Westerholt
Hello Pali, thanks for the update, still a strange problem.. Is the IPv6 address one that Kamailio uses as listen adress or does Kamailio use an address from the earlier sip msg flow with linphone? Can you check the sip messages e.g. with "ngrep -d any -qt -W byline "" port 5060? Cheers,

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-24 Thread Henning Westerholt
Hello Anuran, things are a bit mixed up here. ;-) The registrar module brings a pre-defined event-route that you can use to execute your custom cfg script code when the event triggers: https://www.kamailio.org/docs/modules/5.2.x/modules/registrar.html#idm1028508300 This is a own route, you