Re: [sr-dev] IMS_ISC technical specification

2019-07-26 Thread Ali Shirvani
Hello Mojtaba,

Thanks for your reply, I just tested P-Asserted-Identity, but S-CSCF
doesn't route the request to the registered client.

Regards,
Ali

On Wed, Jul 24, 2019 at 6:02 PM Mojtaba  wrote:

> 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 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 with iFC or not, if it matched kamailio forward the
>> request to the application server.
>> But when application server send request to S-CSCF, isc_from_as('orig')
>> return false and I couldn't forward request to the target UE.
>>
>> Regards,
>> Ali
>>
>> On Wed, Jul 24, 2019 at 3:45 PM Mojtaba  wrote:
>>
>>> 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 Best Regards.
>>>
>>> On Wed, Jul 24, 2019 at 2:48 PM Ali Shirvani 
>>> wrote:
>>>
>>>> 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 you please point me to the technical specification that
>>>> implemented in IMS_ISC module?
>>>>
>>>> Regards,
>>>> Ali
>>>> ___
>>>> Kamailio (SER) - Development Mailing List
>>>> sr-dev@lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>>>>
>>>
>>>
>>> --
>>> --Mojtaba Esfandiari.S
>>> ___
>>> Kamailio (SER) - Development Mailing List
>>> sr-dev@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>>>
>> ___
>> Kamailio (SER) - Development Mailing List
>> sr-dev@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>>
> ___
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [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 with iFC or not, if it matched kamailio forward the
request to the application server.
But when application server send request to S-CSCF, isc_from_as('orig')
return false and I couldn't forward request to the target UE.

Regards,
Ali

On Wed, Jul 24, 2019 at 3:45 PM Mojtaba  wrote:

> 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 Best Regards.
>
> On Wed, Jul 24, 2019 at 2:48 PM Ali Shirvani 
> wrote:
>
>> 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 you please point me to the technical specification that implemented
>> in IMS_ISC module?
>>
>> Regards,
>> Ali
>> ___
>> Kamailio (SER) - Development Mailing List
>> sr-dev@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>>
>
>
> --
> --Mojtaba Esfandiari.S
> ___
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] 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 you please point me to the technical specification that implemented
in IMS_ISC module?

Regards,
Ali
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] Debugging kamailio module

2019-07-24 Thread Ali Shirvani
Hello Henning,

Thanks for your suggestion, I switched to UDP and now gdb work fine when I
run kamailio with -D option.

Regards,
Ali

On Tue, Jul 23, 2019 at 11:41 PM Henning Westerholt  wrote:

> Hello Ali,
>
> the problem is that TCP depends somehow on forking processes. If you can't
> switch to UDP, have you tried to just connect with gdb to the PID of the
> TCP process? Configure just one TCP child to make this easier for you to
> catch the right one.
>
> Cheers,
>
> Henning
> Am 23.07.19 um 19:29 schrieb Ali Shirvani:
>
> Hello Henning,
>
> Thanks for your help. I test both -D and -DD option when running kamailio
> in gdb.
> When running kamailio with -D it doesn't accept any request on TCP, and
> when I run with -DD option gdb doesn't stop on the break point.
>
> In summary:
> $ sudo gdb kamailio
> (gdb) b isc_from_as
> (gdb) r -f /path/to/kamailio.cfg -D   ---> doesn't accept TCP requests
> (gdb) r -f /path/to/kamailio.cfg -DD   > gdb doesn't stop on break
> point
>
> Regards,
> Ali
>
> On Tue, Jul 23, 2019 at 9:12 PM Henning Westerholt  wrote:
>
>> (adding sr-dev to CC)
>>
>> Hello Ali,
>>
>> have a look to the kamailio binary parameter and the children parameter
>> in configuration. You can actually start kamailio with (almost) no forking.
>>
>> You will get a lot of debugging information if you enable the kamailio
>> debugging in the cfg.
>>
>> If you want to debug only the internals of the core or a specific
>> Kamailio module, there is also a debugger module available that can be
>> useful to debug only certain parts of the server. You can also set
>> breakpoints at certain points in the cfg, or dump internal state with it.
>>
>> Cheers,
>>
>> Henning
>>
>>
>> Am 23.07.19 um 11:39 schrieb Ali Shirvani:
>>
>> Hi all,
>>
>> I want to trace function calls in a kamailio module, e.g. ims_isc module.
>> I installed kamailio-dbg package and started the kamailio with gdb: `gdb
>> kamailio` I also set break point on target function, but it seems gdb
>> doesn't stop on that break point.
>>
>> How should I start gdb and set break points? it seems gdb couldn't handle
>> kamailio child processes that forked in start.
>>
>> Regards,
>> Ali
>>
>> ___
>> Kamailio (SER) - Users Mailing 
>> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Henning Westerholt - https://skalatan.de/blog/
>> Kamailio services - https://skalatan.de/services
>>
>> --
> Henning Westerholt - https://skalatan.de/blog/
> Kamailio services - https://skalatan.de/services
>
>
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [SR-Users] Debugging kamailio module

2019-07-23 Thread Ali Shirvani
Hello Henning,

Thanks for your help. I test both -D and -DD option when running kamailio
in gdb.
When running kamailio with -D it doesn't accept any request on TCP, and
when I run with -DD option gdb doesn't stop on the break point.

In summary:
$ sudo gdb kamailio
(gdb) b isc_from_as
(gdb) r -f /path/to/kamailio.cfg -D   ---> doesn't accept TCP requests
(gdb) r -f /path/to/kamailio.cfg -DD   > gdb doesn't stop on break point

Regards,
Ali

On Tue, Jul 23, 2019 at 9:12 PM Henning Westerholt  wrote:

> (adding sr-dev to CC)
>
> Hello Ali,
>
> have a look to the kamailio binary parameter and the children parameter in
> configuration. You can actually start kamailio with (almost) no forking.
>
> You will get a lot of debugging information if you enable the kamailio
> debugging in the cfg.
>
> If you want to debug only the internals of the core or a specific Kamailio
> module, there is also a debugger module available that can be useful to
> debug only certain parts of the server. You can also set breakpoints at
> certain points in the cfg, or dump internal state with it.
>
> Cheers,
>
> Henning
>
>
> Am 23.07.19 um 11:39 schrieb Ali Shirvani:
>
> Hi all,
>
> I want to trace function calls in a kamailio module, e.g. ims_isc module.
> I installed kamailio-dbg package and started the kamailio with gdb: `gdb
> kamailio` I also set break point on target function, but it seems gdb
> doesn't stop on that break point.
>
> How should I start gdb and set break points? it seems gdb couldn't handle
> kamailio child processes that forked in start.
>
> Regards,
> Ali
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Henning Westerholt - https://skalatan.de/blog/
> Kamailio services - https://skalatan.de/services
>
>
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] kamctl: enable kamctl test from shell variable. (#1977)

2019-06-15 Thread Ali Shirvani
@miconda 
Here is the output of `kamdbctl create`:
```bash
MySQL password for root:
-e \E[37;33mINFO: creating database kamailio_simple_db ...
-e \E[37;33mINFO: granting privileges to database kamailio_simple_db ...
-e \E[37;33mINFO: creating standard tables into kamailio_simple_db ...
-e \E[37;33mINFO: Core Kamailio tables succesfully created.
Install presence related tables? (y/n): n
/usr/sbin/kamdbctl: 216: /usr/sbin/kamdbctl: Bad substitution

```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1977#issuecomment-502339967___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] kamctl: enable kamctl test from shell variable. (#1977)

2019-06-13 Thread Ali Shirvani
Unfortunately I have no access to that system now, I will revert the change and 
test again.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1977#issuecomment-501635264___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] kamctl: enable kamctl test from shell variable. (#1977)

2019-06-13 Thread Ali Shirvani
@miconda It causes `Substitution Error`. I search for that error and I found 
that the cause is that `sh` links to `dash` in Debian Stretch. I change the 
`/bin/sh` to `/bin/bash` and error resolved.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1977#issuecomment-501629293___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] kamctl: enable kamctl test from shell variable. (#1977)

2019-06-10 Thread Ali Shirvani
@alishir pushed 1 commit.

2c8fe55a2617892e129e613a5950bb8c0228f59e  kamdbctl: change /bin/sh to /bin/bash


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/kamailio/kamailio/pull/1977/files/2dfbde091023bb0a6b3723046766cf51ae876e03..2c8fe55a2617892e129e613a5950bb8c0228f59e
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:4062f65f: kamdbctl: fixes name of ims_charging sql script.

2019-05-29 Thread Ali Shirvani
Module: kamailio
Branch: master
Commit: 4062f65f909d01148da90d83c018581bcaef94c4
URL: 
https://github.com/kamailio/kamailio/commit/4062f65f909d01148da90d83c018581bcaef94c4

Author: Ali Shirvani 
Committer: Ali Shirvani 
Date: 2019-05-28T15:10:23+04:30

kamdbctl: fixes name of ims_charging sql script.

- ims_charging_create renamed to ims_charging-create

---

Added: utils/kamctl/mysql/ims_charging-create.sql
Removed: utils/kamctl/mysql/ims_charging_create.sql

---

Diff:  
https://github.com/kamailio/kamailio/commit/4062f65f909d01148da90d83c018581bcaef94c4.diff
Patch: 
https://github.com/kamailio/kamailio/commit/4062f65f909d01148da90d83c018581bcaef94c4.patch

---

diff --git a/utils/kamctl/mysql/ims_charging_create.sql 
b/utils/kamctl/mysql/ims_charging-create.sql
similarity index 100%
rename from utils/kamctl/mysql/ims_charging_create.sql
rename to utils/kamctl/mysql/ims_charging-create.sql


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


Re: [sr-dev] [kamailio/kamailio] kamdbctl: Fixes name of ims_charging sql script. (#1967)

2019-05-28 Thread Ali Shirvani
just changed the commit message, is it right?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1967#issuecomment-496463981___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] kamdbctl: Fixes name of ims_charging sql script. (#1967)

2019-05-28 Thread Ali Shirvani




 Pre-Submission Checklist



- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, 
...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] No commits to README files for modules (changes must be done to docbook 
files
in `doc/` subfolder, the README file is autogenerated)

 Type Of Change
- [X] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)

 Checklist:

- [X] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue # (replace  with an open issue number)

 Description


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1967

-- Commit Summary --

  * Fixes name of ims_charging sql script.

-- File Changes --

R utils/kamctl/mysql/ims_charging-create.sql (0)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1967.patch
https://github.com/kamailio/kamailio/pull/1967.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1967
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev