Re: [SR-Users] kamcmd gives segmentation fault (5.0.4)

2017-11-21 Thread Daniel-Constantin Mierla
Hello,

are you sure that kamcmd was compiled with the 5.0.4 version? In branch
5.0, at kamcmd.c line 591 is a line with just a curly brace, then one
starting the send_binrpc_cmd function, so that's not a line that can
cause a segfault.

Cheers,
Daniel


On 21.11.17 17:48, José Lopes wrote:
> Hello,
>
> I invoke kamcmd inside Freeswitch Lua Scripts and right now i am
> getting segmentation fault any time.
> This started to happen after I upgraded kamailio from 4.4 to 5.0.4 .
>
> I tried to analyse the core dump and it give me the next information.
> When I execute on the console, the command works.
>
> Am I doing something wrong?
> There is any alternative or better way to communicate with kamailio?
>
> Thanks in advance
>
> Best regards,
> Jose Lopes
>
>
> Core was generated by `/usr/sbin/kamcmd -s udp:127.0.0.1:2050
>  uac.reg_refresh s:29010017'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x0040340d in send_binrpc_cmd (s= Cannot access memory at address 0x7ffec894a60c>, cmd= variable: Cannot access memory at address 0x7ffec894a600>,
>     cookie= 0x7ffec894a608>) at kamcmd.c:591
> 591    kamcmd.c: No such file or directory.
> (gdb) bt
> #0  0x0040340d in send_binrpc_cmd (s= Cannot access memory at address 0x7ffec894a60c>, cmd= variable: Cannot access memory at address 0x7ffec894a600>,
>     cookie= 0x7ffec894a608>) at kamcmd.c:591
> #1  0x00403eee in run_binrpc_cmd (s=3, cmd=0x7ffec898a8d0,
> fmt=0x0) at kamcmd.c:924
> #2  0x00404499 in run_cmd (s=3, cmd=0x7ffec898a8d0,
> format=0x0) at kamcmd.c:1068
> #3  0x004073aa in main (argc=5, argv=0x7ffec898d1e8) at
> kamcmd.c:2114
>
>
>
>
>
>
>
>
>
> ___
> 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 - May 14-16, 2018 - www.kamailioworld.com

___
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 + Asterisk PBX

2017-11-21 Thread Amar Tinawi
Thanks Ivo

I’ll test and report back

Many thanks, and any future note or document will be very pleased 

Cheers 
Ammar 

Sent from Mail for Windows 10

From: Ivailo Dobrev
Sent: Tuesday, November 21, 2017 4:29 PM
To: sr-users@lists.kamailio.org
Subject: Re: [SR-Users] Kamailio IMS + Asterisk PBX

Hello,
Comment inline.
Hope I'm helping,
Ivo
On 11/21/2017 12:32 PM, Amar Tinawi wrote:

Thank you Daniel : 

Actually i followed your tutorial, but in case of IMS the modifications should 
be on (my assumption) S-CSCF, in this case all routing block should be routed 
towards AS ? 

In order to route the call to Asterisk you should define it as AS/MMtel in your 
HSS. Define proper TP and iFC for the subscriber profiles.

i followed also Mr Carsten Bock videos on kamailio World conferences for the 
years 2015 - 2016 - 2017 and he mentioned clearly that any application that 
talk sip can operate as an AS, and he mentioned Asterisk and FreeSwitch as an 
example
Thanks Mojtaba, i followed this video but the video at the end shows that the 
users still in offline mode after registration, is that right ?
My questions are : 
- should i configure Asterisk in a way to be AS for kamailio IMS ? 
For sure you should configure Asterisk to handle originating and terminating 
call legs from/to S-CSCF. From Asterisk perspective the easiest way is S-CSCF 
to be a SIP trunk. (Note that this may not be 100% true and depends on the 
design)

- should the users be identified in Asterisk Database in order to make a 
correlation ? or asterisk can pull users profiles from HSS ?
As far I know there is no DIAMETER/Sh support in Asterisk. Related and to Q 
below too.

- Do we have to perform any configuration over HSS to identify sh interface 
with Asterisk ?  
You have  2 options in general here, to have or not subscribers in Asterisk. 
Easiest way is to not. Assuming that all your subscribers are same from service 
point of view you can handle everything in routing w/o having any subscriber 
profile in Asterisk. Second option is a matter of design and there is no simple 
answer.

Keep in mind that SIP and IMS services differs. When using * or FreeSWITCH as 
SIP MMtel w/ SIP clients in IMS env, you can relatively easy implement known 
SIP services. Implementing MMTel IMS services w/ IMS clients is a different 
story. 

if you can send me the Astricon video it would be great
Thanks, 
Ammar 


On Tue, Nov 21, 2017 at 10:29 AM, Daniel-Constantin Mierla  
wrote:
Hello,

personally I do not have any time these days to search or look at
documents/videos/etc... to see what TAS are supposed to be -- a lot of
stuff to do for upcoming kamailio 5.1 in the spare time.

On the other hand, at the last edition of Astricon, Carsten Bock (one of
the ims extensions developer in kamailio) had a presentation about using
Asterisk for IMS -- I had to be at the Kamailio booth in Astricon expo
area, so I couldn't attend it -- maybe the videos from Astricon are
already published and you can watch it, if not, probably they will be
released soon.

Cheers,
Daniel


On 21.11.17 09:06, Mojtaba wrote:
> Hello,
> Maybe this link be useful to understanding the concept of Asterisk
> working as Telephone Application Servers(TAS) in IMS core network.
> https://www.youtube.com/watch?v=3nVRpzkUbIg
> With Regards. Mojtaba
>
> On Mon, Nov 20, 2017 at 5:14 PM, Amar Tinawi  wrote:
>> Dears;
>> Good day !
>>
>> is it possible to use Asterisk pbx server as an Application server for the
>> kamailio IMS users ? as if i want to correlate an IMS user with an extension
>> number.
>>
>> My though is kamailio ims  will handle the registration process  and
>> authentication and Asterisk will deal with IMS users as they are PBX users
>> to get all asterisk's benefits (call conference, monitoring, waiting, voice
>> mail ... etc)
>>
>> i'm thinking to integrate Asterisk with S-cscf, and when an IMS user
>> register to the IMS to domain, a trigger will initiate the S-cscf to send
>> notify to asterisk .
>>
>>
>>
>> i didnt find any solution or tutorial for this procedure, and idont know if
>> it is possible to be done.
>>
>> Regards
>> Ammar
>>
>> ___
>> 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 - May 14-16, 2018 - www.kamailioworld.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


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lis

[SR-Users] kamcmd gives segmentation fault (5.0.4)

2017-11-21 Thread José Lopes
Hello,

I invoke kamcmd inside Freeswitch Lua Scripts and right now i am getting
segmentation fault any time.
This started to happen after I upgraded kamailio from 4.4 to 5.0.4 .

I tried to analyse the core dump and it give me the next information.
When I execute on the console, the command works.

Am I doing something wrong?
There is any alternative or better way to communicate with kamailio?

Thanks in advance

Best regards,
Jose Lopes


Core was generated by `/usr/sbin/kamcmd -s udp:127.0.0.1:2050
uac.reg_refresh s:29010017'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0040340d in send_binrpc_cmd (s=, cmd=,
cookie=) at kamcmd.c:591
591kamcmd.c: No such file or directory.
(gdb) bt
#0  0x0040340d in send_binrpc_cmd (s=, cmd=,
cookie=) at kamcmd.c:591
#1  0x00403eee in run_binrpc_cmd (s=3, cmd=0x7ffec898a8d0, fmt=0x0)
at kamcmd.c:924
#2  0x00404499 in run_cmd (s=3, cmd=0x7ffec898a8d0, format=0x0) at
kamcmd.c:1068
#3  0x004073aa in main (argc=5, argv=0x7ffec898d1e8) at
kamcmd.c:2114
___
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 + Asterisk PBX

2017-11-21 Thread amar.tin...@gmail.com
Thanks a lot Ivalio, i'll do some tests and report back.Sent from my Huawei Mobile Original Message Subject: Re: [SR-Users] Kamailio IMS + Asterisk PBXFrom: Ivailo Dobrev To: sr-users@lists.kamailio.orgCC: 
  
  
Hello,
Comment inline.
Hope I'm helping,
Ivo

On 11/21/2017 12:32 PM, Amar Tinawi wrote:

  Thank you Daniel :


Actually i followed your
tutorial, but in case of IMS the modifications should be on
(my assumption) S-CSCF, in this case all routing block
should be routed towards AS ? 

  
  

In order to route the call to Asterisk you should define it as
AS/MMtel in your HSS. Define proper TP and iFC for the subscriber
profiles.

  
i followed also Mr Carsten Bock videos on kamailio World conferences for the years 2015 - 2016 - 2017 and he mentioned clearly that any application that talk sip can operate as an AS, and he mentioned Asterisk and FreeSwitch as an example




Thanks Mojtaba, i followed this video but the video at the end shows that the users still in offline mode after registration, is that right ?


My questions are : 
- should i configure Asterisk in a way to be AS for kamailio IMS ? 
  

For
sure you should configure Asterisk to handle originating and
terminating call legs from/to S-CSCF. From Asterisk perspective
the easiest way is S-CSCF to be a SIP trunk. (Note that this may
not be 100% true and depends on the design)

  
- should the users be identified in Asterisk Database in order to make a correlation ? or  asterisk can pull users profiles from HSS ?
  

As far
I know there is no DIAMETER/Sh support in Asterisk. Related and
to Q below too.

  
- Do
  we have to perform any configuration over HSS to identify sh
  interface with Asterisk ?  


  

You have  2 options in general here, to have or not subscribers in
Asterisk. Easiest way is to not. Assuming that all your subscribers
are same from service point of view you can handle everything in
routing w/o having any subscriber profile in Asterisk. Second option
is a matter of design and there is no simple answer.

Keep in mind that SIP and IMS services differs. When using * or
FreeSWITCH as SIP MMtel w/ SIP clients in IMS env, you can
relatively easy implement known SIP services. Implementing MMTel IMS
services w/ IMS clients is a different story. 

  
if you can send me the Astricon video it would be great



Thanks, 
Ammar 


  
  
On Tue, Nov 21, 2017 at 10:29 AM,
  Daniel-Constantin Mierla 
  wrote:
  Hello,

personally I do not have any time these days to search or
look at
documents/videos/etc... to see what TAS are supposed to be
-- a lot of
stuff to do for upcoming kamailio 5.1 in the spare time.

On the other hand, at the last edition of Astricon, Carsten
Bock (one of
the ims extensions developer in kamailio) had a presentation
about using
Asterisk for IMS -- I had to be at the Kamailio booth in
Astricon expo
area, so I couldn't attend it -- maybe the videos from
Astricon are
already published and you can watch it, if not, probably
they will be
released soon.

Cheers,
Daniel

  

On 21.11.17 09:06, Mojtaba wrote:
> Hello,
> Maybe this link be useful to understanding the
concept of Asterisk
> working as Telephone Application Servers(TAS) in
IMS core network.
> https://www.youtube.com/watch?v=3nVRpzkUbIg
> With Regards. Mojtaba
>
> On Mon, Nov 20, 2017 at 5:14 PM, Amar Tinawi 
wrote:
>> Dears;
>> Good day !
>>
>> is it possible to use Asterisk pbx server as an
Application server for the
>> kamailio IMS users ? as if i want to correlate
an IMS user with an extension
>> number.
>>
>> My though is kamailio ims  will handle the
registration process  and
>> authentication and Asterisk will deal with IMS
users as the

Re: [SR-Users] Adding strip and preix attribute to Dispatcher table

2017-11-21 Thread Ashutosh chaubey
Hi

Thanks it helped.

Regards,
Ashutosh Chaubey

On Tue, Nov 21, 2017 at 8:04 PM, Dmitri Savolainen 
wrote:

> for example:
>
> $rU = $(rU{s.substr,$(avp(dsattrs){param.value,strip}{s.int}),0});
>
> 2017-11-21 16:56 GMT+03:00 Ashutosh chaubey :
>
>> Hi,
>> Thanks for the help I am now able to add prefix this way to my request
>> however can you please tell me how to use strip as i have to strip few
>> numbers before i send out request from kamailio.
>>
>> Regards,
>> Ashutosh Chaubey
>>
>> On Tue, Nov 21, 2017 at 6:32 PM, Dmitri Savolainen > > wrote:
>>
>>> Hi.
>>>
>>> Attributes should be ";" separeted:
>>> attributes: extra fields in form of name1=value1;...;nameN=valueN.
>>>
>>> Also prefix/strip are not in  "predefined names" in dispatcher doc  ,
>>> so it is possible:
>>>
>>> modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")
>>> 
>>> $rU =$(avp(dsattrs){param.value,prefix}) + $rU;
>>>
>>> 2017-11-21 15:02 GMT+03:00 Ashutosh chaubey >> >:
>>>
 Hi,

 Is there a way to add prefix and strip in dispatcher table attribute
 column. I have tried prefix=11,strip=3 but this seems to not work.
 Any help?



 Regards,
 Ashutosh Chaubey

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


>>>
>>>
>>> --
>>> Savolainen Dmitri
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Savolainen Dmitri
>
> ___
> 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] Adding strip and preix attribute to Dispatcher table

2017-11-21 Thread Dmitri Savolainen
for example:

$rU = $(rU{s.substr,$(avp(dsattrs){param.value,strip}{s.int}),0});

2017-11-21 16:56 GMT+03:00 Ashutosh chaubey :

> Hi,
> Thanks for the help I am now able to add prefix this way to my request
> however can you please tell me how to use strip as i have to strip few
> numbers before i send out request from kamailio.
>
> Regards,
> Ashutosh Chaubey
>
> On Tue, Nov 21, 2017 at 6:32 PM, Dmitri Savolainen 
> wrote:
>
>> Hi.
>>
>> Attributes should be ";" separeted:
>> attributes: extra fields in form of name1=value1;...;nameN=valueN.
>>
>> Also prefix/strip are not in  "predefined names" in dispatcher doc  , so
>> it is possible:
>>
>> modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")
>> 
>> $rU =$(avp(dsattrs){param.value,prefix}) + $rU;
>>
>> 2017-11-21 15:02 GMT+03:00 Ashutosh chaubey 
>> :
>>
>>> Hi,
>>>
>>> Is there a way to add prefix and strip in dispatcher table attribute
>>> column. I have tried prefix=11,strip=3 but this seems to not work.
>>> Any help?
>>>
>>>
>>>
>>> Regards,
>>> Ashutosh Chaubey
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>>
>> --
>> Savolainen Dmitri
>>
>> ___
>> 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
>
>


-- 
Savolainen Dmitri
___
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 + Asterisk PBX

2017-11-21 Thread Ivailo Dobrev

Hello,

Comment inline.

Hope I'm helping,

Ivo

On 11/21/2017 12:32 PM, Amar Tinawi wrote:

Thank you Daniel :

Actually i followed your tutorial, but in case of IMS the 
modifications should be on (my assumption) S-CSCF, in this case all 
routing block should be routed towards AS ?


In order to route the call to Asterisk you should define it as AS/MMtel 
in your HSS. Define proper TP and iFC for the subscriber profiles.
i followed also Mr Carsten Bock videos on kamailio World conferences 
for the years 2015 - 2016 - 2017 and he mentioned clearly that any 
application that talk sip can operate as an AS, and he 
mentionedAsterisk and FreeSwitch as an example
Thanks Mojtaba, i followed this video but the video at the end shows 
that the users still in offline mode after registration, is that right ?

My questions are :
- should i configure Asterisk in a way to be AS for kamailio IMS ?
For sure you should configure Asterisk to handle originating and 
terminating call legs from/to S-CSCF. From Asterisk perspective the 
easiest way is S-CSCF to be a SIP trunk. (Note that this may not be 100% 
true and depends on the design)
- should the users be identified in Asterisk Database in order to make 
a correlation ? or asterisk can pull users profiles from HSS ?
As far I know there is no DIAMETER/Sh support in Asterisk. Related and 
to Q below too.
- Do we have to perform any configuration over HSS to identify sh 
interface with Asterisk ?
You have  2 options in general here, to have or not subscribers in 
Asterisk. Easiest way is to not. Assuming that all your subscribers are 
same from service point of view you can handle everything in routing w/o 
having any subscriber profile in Asterisk. Second option is a matter of 
design and there is no simple answer.


Keep in mind that SIP and IMS services differs. When using * or 
FreeSWITCH as SIP MMtel w/ SIP clients in IMS env, you can relatively 
easy implement known SIP services. Implementing MMTel IMS services w/ 
IMS clients is a different story.

if you can send me the Astriconvideo it would be great
Thanks,
Ammar


On Tue, Nov 21, 2017 at 10:29 AM, Daniel-Constantin Mierla 
mailto:mico...@gmail.com>> wrote:


Hello,

personally I do not have any time these days to search or look at
documents/videos/etc... to see what TAS are supposed to be -- a lot of
stuff to do for upcoming kamailio 5.1 in the spare time.

On the other hand, at the last edition of Astricon, Carsten Bock
(one of
the ims extensions developer in kamailio) had a presentation about
using
Asterisk for IMS -- I had to be at the Kamailio booth in Astricon expo
area, so I couldn't attend it -- maybe the videos from Astricon are
already published and you can watch it, if not, probably they will be
released soon.

Cheers,
Daniel


On 21.11.17 09:06, Mojtaba wrote:
> Hello,
> Maybe this link be useful to understanding the concept of Asterisk
> working as Telephone Application Servers(TAS) in IMS core network.
> https://www.youtube.com/watch?v=3nVRpzkUbIg

> With Regards. Mojtaba
>
> On Mon, Nov 20, 2017 at 5:14 PM, Amar Tinawi
mailto:amar.tin...@gmail.com>> wrote:
>> Dears;
>> Good day !
>>
>> is it possible to use Asterisk pbx server as an Application
server for the
>> kamailio IMS users ? as if i want to correlate an IMS user with
an extension
>> number.
>>
>> My though is kamailio ims  will handle the registration
process  and
>> authentication and Asterisk will deal with IMS users as they
are PBX users
>> to get all asterisk's benefits (call conference, monitoring,
waiting, voice
>> mail ... etc)
>>
>> i'm thinking to integrate Asterisk with S-cscf, and when an IMS
user
>> register to the IMS to domain, a trigger will initiate the
S-cscf to send
>> notify to asterisk .
>>
>>
>>
>> i didnt find any solution or tutorial for this procedure, and
idont know if
>> it is possible to be done.
>>
>> Regards
>> Ammar
>>
>> ___
>> 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 - May 14-16, 2018 -
www.kamailioworld.com 


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org 
ht

Re: [SR-Users] Kamailio KEMI Framework Tutorial

2017-11-21 Thread Daniel-Constantin Mierla
Likely you spotted it, but for sake of completion and highlighting to
everyone, the rpc commands to list the kemi functions are listed with
kamctl usage example at the end of the section on the web at:


  - http://127.0.0.1:8000/kemi/#kemi-functions


Cheers,
Daniel


On 21.11.17 15:20, Daniel-Constantin Mierla wrote:
>
> Hello,
>
>
> On 21.11.17 10:20, Samuel F. wrote:
>>
>> Hi Daniel,
>>
>>
>> First, I'd just like to say thanks and let you know we are very
>> grateful for the KEMI framework. We have developed three
>> small applications running on python KEMI in production serving calls
>> every day successfully without any issues at all. The development
>> process was very smooth and quick.
>>
>
> thanks for the feedback, really appreciated! It is good to know that
> KEMI is being used in production and also it shows its potential for
> various needs.
>
>>
>> I reviewed the documentation and think it's great that the KEMI
>> framework gets an extensive documentation.
>>
>>
>> One thought I had regarding documenting the exported functions is
>> that I think it's good if they are exported to the docs automatically
>> from the source code. My opinion is that it is better to have
>> documentation that reflects the current state of the source code
>> rather than having stale/out-of-date documentation.
>>
>>
>> Perhaps having a parser that locates all the exported functions,
>> lists them in appropriate modules with the return value and then a
>> link to the actual modules documentation?
>>
>
> There is an RPC command that lists the exported KEMI functions for a
> running Kamailio. It reflects exactly what functions are available
> from the kemi framework internal structure. This is like an auto
> discovery, it is done automatically.
>
> Addition docs can be added in the code using doxygen, however, while
> that is good for short descriptions, I don't find it good to add
> extensive docs and especially usage examples in the code. Also, from
> past experiences, non-developer users tend not to look at the code,
> therefore the improvements to docs in code from general users are very
> low.
>
> Anyhow, this tutorial was started with the initial goal of covering
> the KEMI framework in general, and the special functions. For the
> functions exported by modules I added only the acc as an example
> (which is also a skeleton at this moment).
>
> As I said, I am open for suggestions on how to do the docs for kemi
> functions from modules. Your proposal with using somehow the code is
> not like being dismissed, I just expressed my opinions based.
> Contributions to parse the code and extract prototypes are of course
> welcome.
>
> Cheers,
> Daniel
>
>
>>
>> // Samuel
>>
>> 
>> *From:* sr-users  on behalf of
>> Daniel-Constantin Mierla 
>> *Sent:* Monday, November 20, 2017 4:11:54 PM
>> *To:* Kamailio (SER) - Users Mailing List; Kamailio (SER) - Devel
>> Mailing List
>> *Subject:* [SR-Users] Kamailio KEMI Framework Tutorial
>>  
>> Hello,
>>
>> I started a tutorial for Kamailio KEMI Framework written in markdown
>> format targeting use of mkdocs. It is published on github as part of
>> kamailio-docs repository:
>>
>>   *
>> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio-docs%2Ftree%2Fmaster%2Fkamailio-kemi-framework&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=MuTy1ZgjcDEbQdHTGA2LpO1sKUDAxxo%2BupwGr%2BBspCE%3D&reserved=0
>>
>> The mkdocs build (to browse and read) is online at:
>>
>>   *
>> https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkamailio.org%2Fdocs%2Ftutorials%2Fdevel%2Fkamailio-kemi-framework%2F&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=FHJ1zANtLQI6o2%2F1wFPFYfu1B94JlQ%2FHTLDbaVp7dUg%3D&reserved=0
>>
>> It is work in progress and contributions from the community are more
>> than welcome -- doing push requests on github project is the recommended
>> way for contributions:
>>
>>   *
>> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio-docs%2F&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=utRI9tOvpEuyBWFU70KaBaod6URNk0ju4rTSQl%2FhO3I%3D&reserved=0
>>
>> The main goal is document the role of KEMI, its benefits and how it can
>> be used. It addition it should cover the list of functions exported to
>> KEMI by core as well as special KEMI functions.
>>
>> Regarding the functions exported by kamailio modules to KEMI I added as
>> an skeleton the ones exported by acc module. However, I am not sure if
>> we should do it there or add them to the existing docs of the modules.
>> Opinions on this?!?
>>
>> Cheers,
>> Daniel
>>

Re: [SR-Users] Kamailio KEMI Framework Tutorial

2017-11-21 Thread Daniel-Constantin Mierla
Hello,


On 21.11.17 10:20, Samuel F. wrote:
>
> Hi Daniel,
>
>
> First, I'd just like to say thanks and let you know we are very
> grateful for the KEMI framework. We have developed three
> small applications running on python KEMI in production serving calls
> every day successfully without any issues at all. The development
> process was very smooth and quick.
>

thanks for the feedback, really appreciated! It is good to know that
KEMI is being used in production and also it shows its potential for
various needs.

>
> I reviewed the documentation and think it's great that the KEMI
> framework gets an extensive documentation.
>
>
> One thought I had regarding documenting the exported functions is that
> I think it's good if they are exported to the docs automatically from
> the source code. My opinion is that it is better to have documentation
> that reflects the current state of the source code rather than having
> stale/out-of-date documentation.
>
>
> Perhaps having a parser that locates all the exported functions, lists
> them in appropriate modules with the return value and then a link to
> the actual modules documentation?
>

There is an RPC command that lists the exported KEMI functions for a
running Kamailio. It reflects exactly what functions are available from
the kemi framework internal structure. This is like an auto discovery,
it is done automatically.

Addition docs can be added in the code using doxygen, however, while
that is good for short descriptions, I don't find it good to add
extensive docs and especially usage examples in the code. Also, from
past experiences, non-developer users tend not to look at the code,
therefore the improvements to docs in code from general users are very low.

Anyhow, this tutorial was started with the initial goal of covering the
KEMI framework in general, and the special functions. For the functions
exported by modules I added only the acc as an example (which is also a
skeleton at this moment).

As I said, I am open for suggestions on how to do the docs for kemi
functions from modules. Your proposal with using somehow the code is not
like being dismissed, I just expressed my opinions based. Contributions
to parse the code and extract prototypes are of course welcome.

Cheers,
Daniel


>
> // Samuel
>
> 
> *From:* sr-users  on behalf of
> Daniel-Constantin Mierla 
> *Sent:* Monday, November 20, 2017 4:11:54 PM
> *To:* Kamailio (SER) - Users Mailing List; Kamailio (SER) - Devel
> Mailing List
> *Subject:* [SR-Users] Kamailio KEMI Framework Tutorial
>  
> Hello,
>
> I started a tutorial for Kamailio KEMI Framework written in markdown
> format targeting use of mkdocs. It is published on github as part of
> kamailio-docs repository:
>
>   *
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio-docs%2Ftree%2Fmaster%2Fkamailio-kemi-framework&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=MuTy1ZgjcDEbQdHTGA2LpO1sKUDAxxo%2BupwGr%2BBspCE%3D&reserved=0
>
> The mkdocs build (to browse and read) is online at:
>
>   *
> https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkamailio.org%2Fdocs%2Ftutorials%2Fdevel%2Fkamailio-kemi-framework%2F&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=FHJ1zANtLQI6o2%2F1wFPFYfu1B94JlQ%2FHTLDbaVp7dUg%3D&reserved=0
>
> It is work in progress and contributions from the community are more
> than welcome -- doing push requests on github project is the recommended
> way for contributions:
>
>   *
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio-docs%2F&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=utRI9tOvpEuyBWFU70KaBaod6URNk0ju4rTSQl%2FhO3I%3D&reserved=0
>
> The main goal is document the role of KEMI, its benefits and how it can
> be used. It addition it should cover the list of functions exported to
> KEMI by core as well as special KEMI functions.
>
> Regarding the functions exported by kamailio modules to KEMI I added as
> an skeleton the ones exported by acc module. However, I am not sure if
> we should do it there or add them to the existing docs of the modules.
> Opinions on this?!?
>
> Cheers,
> Daniel
>
> -- 
> Daniel-Constantin Mierla
> https://nam02.safelinks.protection.outlook.com/?url=www.twitter.com%2Fmiconda&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=%2F1Fg1476daehbTE4jVNmQ1%2BQro52j%2Fy6maGN8HZmHjU%3D&reserved=0
> --
> https://nam02.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2Fmiconda&data=02%7C01%7Csamuel_is_kewl%40hotmai

Re: [SR-Users] Adding strip and preix attribute to Dispatcher table

2017-11-21 Thread Ashutosh chaubey
Hi,
Thanks for the help I am now able to add prefix this way to my request
however can you please tell me how to use strip as i have to strip few
numbers before i send out request from kamailio.

Regards,
Ashutosh Chaubey

On Tue, Nov 21, 2017 at 6:32 PM, Dmitri Savolainen 
wrote:

> Hi.
>
> Attributes should be ";" separeted:
> attributes: extra fields in form of name1=value1;...;nameN=valueN.
>
> Also prefix/strip are not in  "predefined names" in dispatcher doc  , so
> it is possible:
>
> modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")
> 
> $rU =$(avp(dsattrs){param.value,prefix}) + $rU;
>
> 2017-11-21 15:02 GMT+03:00 Ashutosh chaubey :
>
>> Hi,
>>
>> Is there a way to add prefix and strip in dispatcher table attribute
>> column. I have tried prefix=11,strip=3 but this seems to not work.
>> Any help?
>>
>>
>>
>> Regards,
>> Ashutosh Chaubey
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>
> --
> Savolainen Dmitri
>
> ___
> 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] Adding strip and preix attribute to Dispatcher table

2017-11-21 Thread Dmitri Savolainen
Hi.

Attributes should be ";" separeted:
attributes: extra fields in form of name1=value1;...;nameN=valueN.

Also prefix/strip are not in  "predefined names" in dispatcher doc  , so it
is possible:

modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")

$rU =$(avp(dsattrs){param.value,prefix}) + $rU;

2017-11-21 15:02 GMT+03:00 Ashutosh chaubey :

> Hi,
>
> Is there a way to add prefix and strip in dispatcher table attribute
> column. I have tried prefix=11,strip=3 but this seems to not work.
> Any help?
>
>
>
> Regards,
> Ashutosh Chaubey
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>


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


[SR-Users] Adding strip and preix attribute to Dispatcher table

2017-11-21 Thread Ashutosh chaubey
Hi,

Is there a way to add prefix and strip in dispatcher table attribute
column. I have tried prefix=11,strip=3 but this seems to not work.
Any help?



Regards,
Ashutosh Chaubey
___
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 + Asterisk PBX

2017-11-21 Thread Amar Tinawi
Thank you Daniel :

Actually i followed your tutorial, but in case of IMS the modifications
should be on (my assumption) S-CSCF, in this case all routing block should
be routed towards AS ?

i followed also Mr Carsten Bock videos on kamailio World conferences for
the years 2015 - 2016 - 2017 and he mentioned clearly that any application
that talk sip can operate as an AS, and he mentioned Asterisk and
FreeSwitch as an example


Thanks Mojtaba, i followed this video but the video at the end shows that
the users still in offline mode after registration, is that right ?

My questions are :
- should i configure Asterisk in a way to be AS for kamailio IMS ?
- should the users be identified in Asterisk Database in order to make a
correlation ? or asterisk can pull users profiles from HSS ?
- Do we have to perform any configuration over HSS to identify sh interface
with Asterisk ?


if you can send me the Astricon video it would be great

Thanks,
Ammar


On Tue, Nov 21, 2017 at 10:29 AM, Daniel-Constantin Mierla <
mico...@gmail.com> wrote:

> Hello,
>
> personally I do not have any time these days to search or look at
> documents/videos/etc... to see what TAS are supposed to be -- a lot of
> stuff to do for upcoming kamailio 5.1 in the spare time.
>
> On the other hand, at the last edition of Astricon, Carsten Bock (one of
> the ims extensions developer in kamailio) had a presentation about using
> Asterisk for IMS -- I had to be at the Kamailio booth in Astricon expo
> area, so I couldn't attend it -- maybe the videos from Astricon are
> already published and you can watch it, if not, probably they will be
> released soon.
>
> Cheers,
> Daniel
>
>
> On 21.11.17 09:06, Mojtaba wrote:
> > Hello,
> > Maybe this link be useful to understanding the concept of Asterisk
> > working as Telephone Application Servers(TAS) in IMS core network.
> > https://www.youtube.com/watch?v=3nVRpzkUbIg
> > With Regards. Mojtaba
> >
> > On Mon, Nov 20, 2017 at 5:14 PM, Amar Tinawi 
> wrote:
> >> Dears;
> >> Good day !
> >>
> >> is it possible to use Asterisk pbx server as an Application server for
> the
> >> kamailio IMS users ? as if i want to correlate an IMS user with an
> extension
> >> number.
> >>
> >> My though is kamailio ims  will handle the registration process  and
> >> authentication and Asterisk will deal with IMS users as they are PBX
> users
> >> to get all asterisk's benefits (call conference, monitoring, waiting,
> voice
> >> mail ... etc)
> >>
> >> i'm thinking to integrate Asterisk with S-cscf, and when an IMS user
> >> register to the IMS to domain, a trigger will initiate the S-cscf to
> send
> >> notify to asterisk .
> >>
> >>
> >>
> >> i didnt find any solution or tutorial for this procedure, and idont
> know if
> >> it is possible to be done.
> >>
> >> Regards
> >> Ammar
> >>
> >> ___
> >> 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 - May 14-16, 2018 - www.kamailioworld.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] Failed to find command http_client_query

2017-11-21 Thread Alexandru Covalschi
Kamailio is actually starting, please take a look at that debug=4 log file: 
https://filebin.net/r54y3jkmzdyk9zak/syslog_http_client_query_failed.txt 

at line 1042 http_client module is successfully loading, but at line 12785 it 
fails to load http_client_query

Also please check line 50385 in 
https://filebin.net/352vff41fwx7uowg/syslog_http_query_curl_6.txt 
 
I'm using http_query here with 5.0.4 http_client, you can see that http_client 
makes a request, but afterwards it returns curl error 6, but the weirdest thing 
is - at line 19887 I request token from the very same IP address, only url is 
changed, and it actually works fine.

Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

> 21 нояб. 2017 г., в 10:44, Daniel-Constantin Mierla  
> написал(а):
> 
> But then kamailio is not starting, or?
> 
> Can you provide all the error message as they are printed in syslog file? 
> File, line and other details are part of the logs message, allowing to 
> identify the location in the source code where that happens ...
> 
> Cheers,
> Daniel
> 
> On 21.11.17 09:38, Alexandru Covalschi wrote:
>> It is still one of the issues
>> 
>> 
>> Alexandru Covalschi
>> VoIP Engineer and System Administrator
>> tel: +373 673 98 493
>> 
>>> 21 нояб. 2017 г., в 9:40, Daniel-Constantin Mierla >> > написал(а):
>>> 
>>> Hello,
>>> 
>>> in your email in this thread, you said:
>>> 
>>> > When I try to change http_query to http_client_query it fails to load 
>>> > with  error "failed to find command http_client_query".
>>> 
>>> Is it still the case, or that was sorted out?
>>> 
>>> Cheers,
>>> Daniel
>>> 
>>> On 20.11.17 22:43, Alexandru Covalschi wrote:
 Works ok on 4.4.6. So I suppose it's a weird 5.0.4 + my environment bug. 
 I'm rolling back to 4.4.6 right now, will keep one 5.0.4 machine for 
 testing (on debian 9)
 Let me know if I can provide any dumps/cores etc.
 
 
 Alexandru Covalschi
 VoIP Engineer and System Administrator
 tel: +373 673 98 493
 
> 20 нояб. 2017 г., в 23:29, Alexandru Covalschi <568...@gmail.com 
> > написал(а):
> 
> So the weirdest thing is Kamailio actually sends the request, but it 
> returns curl error 6 in the answer variable. I have a plenty of clonned 
> servers and same behaviour is on all of them, also just now tried on a 
> fresh debian 9 - same result. I'm inside a virtual machine (vmware), but 
> not sure it matters...
> 
> 
> Alexandru Covalschi
> VoIP Engineer and System Administrator
> tel: +373 673 98 493
> 
>> 20 нояб. 2017 г., в 22:37, Alexandru Covalschi <568...@gmail.com 
>> > написал(а):
>> 
>> I often get WARNING: http_client [functions.c:281]: curL_query_url(): 
>> Couldn't resolve host, while I don't even use hostnames. 
>> After I changed IP address to hostname (which I've added into 
>> /etc/hosts) nothing changed. It seems like a weird bug, but I've no idea 
>> - is it CURL or kamailio, but when I execute curl from shell it is 
>> working fine. I have google dns in resolve.conf and nslookup is also 
>> working ok.
>> Can anyone help me with that?
>> 
>> 
>> Alexandru Covalschi
>> VoIP Engineer and System Administrator
>> tel: +373 673 98 493
>> 
>>> 20 нояб. 2017 г., в 22:06, Alexandru Covalschi <568...@gmail.com 
>>> > написал(а):
>>> 
>>> t
>> 
> 
 
 
 
 ___
 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 - May 14-16, 2018 - www.kamailioworld.com 
>>> 
> 
> -- 
> Daniel-Constantin Mierla
> www.twitter.com/miconda  -- 
> www.linkedin.com/in/miconda 
> Kamailio Advanced Training - www.asipto.com 
> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com 
> 
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.k

Re: [SR-Users] Kamailio KEMI Framework Tutorial

2017-11-21 Thread Samuel F .
Hi Daniel,


First, I'd just like to say thanks and let you know we are very grateful for 
the KEMI framework. We have developed three small applications running on 
python KEMI in production serving calls every day successfully without any 
issues at all. The development process was very smooth and quick.


I reviewed the documentation and think it's great that the KEMI framework gets 
an extensive documentation.


One thought I had regarding documenting the exported functions is that I think 
it's good if they are exported to the docs automatically from the source code. 
My opinion is that it is better to have documentation that reflects the current 
state of the source code rather than having stale/out-of-date documentation.


Perhaps having a parser that locates all the exported functions, lists them in 
appropriate modules with the return value and then a link to the actual modules 
documentation?


// Samuel


From: sr-users  on behalf of 
Daniel-Constantin Mierla 
Sent: Monday, November 20, 2017 4:11:54 PM
To: Kamailio (SER) - Users Mailing List; Kamailio (SER) - Devel Mailing List
Subject: [SR-Users] Kamailio KEMI Framework Tutorial

Hello,

I started a tutorial for Kamailio KEMI Framework written in markdown
format targeting use of mkdocs. It is published on github as part of
kamailio-docs repository:

  *
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio-docs%2Ftree%2Fmaster%2Fkamailio-kemi-framework&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=MuTy1ZgjcDEbQdHTGA2LpO1sKUDAxxo%2BupwGr%2BBspCE%3D&reserved=0

The mkdocs build (to browse and read) is online at:

  * 
https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkamailio.org%2Fdocs%2Ftutorials%2Fdevel%2Fkamailio-kemi-framework%2F&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=FHJ1zANtLQI6o2%2F1wFPFYfu1B94JlQ%2FHTLDbaVp7dUg%3D&reserved=0

It is work in progress and contributions from the community are more
than welcome -- doing push requests on github project is the recommended
way for contributions:

  * 
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio-docs%2F&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=utRI9tOvpEuyBWFU70KaBaod6URNk0ju4rTSQl%2FhO3I%3D&reserved=0

The main goal is document the role of KEMI, its benefits and how it can
be used. It addition it should cover the list of functions exported to
KEMI by core as well as special KEMI functions.

Regarding the functions exported by kamailio modules to KEMI I added as
an skeleton the ones exported by acc module. However, I am not sure if
we should do it there or add them to the existing docs of the modules.
Opinions on this?!?

Cheers,
Daniel

--
Daniel-Constantin Mierla
https://nam02.safelinks.protection.outlook.com/?url=www.twitter.com%2Fmiconda&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=%2F1Fg1476daehbTE4jVNmQ1%2BQro52j%2Fy6maGN8HZmHjU%3D&reserved=0
 -- 
https://nam02.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2Fmiconda&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=WytUIkS%2FT0cdu%2BEMhSLz8TFhkn2PADOVGEjnHF5d2lE%3D&reserved=0
Kamailio Advanced Training - 
https://nam02.safelinks.protection.outlook.com/?url=www.asipto.com&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=b8D9EWNFf5eocdwbjZDu8nKmFF777nNE5yknicVgDKs%3D&reserved=0
Kamailio World Conference - May 14-16, 2018 - 
https://nam02.safelinks.protection.outlook.com/?url=www.kamailioworld.com&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=X7KEbj5w3kLSiCPrpgnrdoCITpeBiWPfAeYFyY2yMhk%3D&reserved=0


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users&data=02%7C01%7Csamuel_is_kewl%40hotmail.com%7C226fe2242ed4436c13fa08d53029444d%7C84df9e7fe9f640afb435%7C1%7C0%7C636467876150276887&sdata=HLJ5knbTzvZ2EFRpdNEPawUUy5ArJVL6HVqitepIM2Q%3D&reserved=0
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Failed to find command http_client_query

2017-11-21 Thread Daniel-Constantin Mierla
But then kamailio is not starting, or?

Can you provide all the error message as they are printed in syslog
file? File, line and other details are part of the logs message,
allowing to identify the location in the source code where that happens ...

Cheers,
Daniel


On 21.11.17 09:38, Alexandru Covalschi wrote:
> It is still one of the issues
>
> 
> Alexandru Covalschi
> VoIP Engineer and System Administrator
> tel: +373 673 98 493
>
>> 21 нояб. 2017 г., в 9:40, Daniel-Constantin Mierla > > написал(а):
>>
>> Hello,
>>
>> in your email in this thread, you said:
>>
>> > When I try to change http_query to http_client_query it fails to
>> load with  error "failed to find command http_client_query".
>>
>> Is it still the case, or that was sorted out?
>>
>> Cheers,
>> Daniel
>>
>> On 20.11.17 22:43, Alexandru Covalschi wrote:
>>> Works ok on 4.4.6. So I suppose it's a weird 5.0.4 + my environment
>>> bug. I'm rolling back to 4.4.6 right now, will keep one 5.0.4
>>> machine for testing (on debian 9)
>>> Let me know if I can provide any dumps/cores etc.
>>>
>>> 
>>> Alexandru Covalschi
>>> VoIP Engineer and System Administrator
>>> tel: +373 673 98 493
>>>
 20 нояб. 2017 г., в 23:29, Alexandru Covalschi <568...@gmail.com
 > написал(а):

 So the weirdest thing is Kamailio actually sends the request, but
 it returns curl error 6 in the answer variable. I have a plenty of
 clonned servers and same behaviour is on all of them, also just now
 tried on a fresh debian 9 - same result. I'm inside a virtual
 machine (vmware), but not sure it matters...

 
 Alexandru Covalschi
 VoIP Engineer and System Administrator
 tel: +373 673 98 493

> 20 нояб. 2017 г., в 22:37, Alexandru Covalschi <568...@gmail.com
> > написал(а):
>
> I often get WARNING: http_client [functions.c:281]:
> curL_query_url(): Couldn't resolve host, while I don't even use
> hostnames. 
> After I changed IP address to hostname (which I've added into
> /etc/hosts) nothing changed. It seems like a weird bug, but I've
> no idea - is it CURL or kamailio, but when I execute curl from
> shell it is working fine. I have google dns in resolve.conf and
> nslookup is also working ok.
> Can anyone help me with that?
>
> 
> Alexandru Covalschi
> VoIP Engineer and System Administrator
> tel: +373 673 98 493
>
>> 20 нояб. 2017 г., в 22:06, Alexandru Covalschi <568...@gmail.com
>> > написал(а):
>>
>> t
>

>>>
>>>
>>>
>>> ___
>>> 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 - May 14-16, 2018 - www.kamailioworld.com
>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

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


Re: [SR-Users] Failed to find command http_client_query

2017-11-21 Thread Alexandru Covalschi
It is still one of the issues


Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

> 21 нояб. 2017 г., в 9:40, Daniel-Constantin Mierla  
> написал(а):
> 
> Hello,
> 
> in your email in this thread, you said:
> 
> > When I try to change http_query to http_client_query it fails to load with  
> > error "failed to find command http_client_query".
> 
> Is it still the case, or that was sorted out?
> 
> Cheers,
> Daniel
> 
> On 20.11.17 22:43, Alexandru Covalschi wrote:
>> Works ok on 4.4.6. So I suppose it's a weird 5.0.4 + my environment bug. I'm 
>> rolling back to 4.4.6 right now, will keep one 5.0.4 machine for testing (on 
>> debian 9)
>> Let me know if I can provide any dumps/cores etc.
>> 
>> 
>> Alexandru Covalschi
>> VoIP Engineer and System Administrator
>> tel: +373 673 98 493
>> 
>>> 20 нояб. 2017 г., в 23:29, Alexandru Covalschi <568...@gmail.com 
>>> > написал(а):
>>> 
>>> So the weirdest thing is Kamailio actually sends the request, but it 
>>> returns curl error 6 in the answer variable. I have a plenty of clonned 
>>> servers and same behaviour is on all of them, also just now tried on a 
>>> fresh debian 9 - same result. I'm inside a virtual machine (vmware), but 
>>> not sure it matters...
>>> 
>>> 
>>> Alexandru Covalschi
>>> VoIP Engineer and System Administrator
>>> tel: +373 673 98 493
>>> 
 20 нояб. 2017 г., в 22:37, Alexandru Covalschi <568...@gmail.com 
 > написал(а):
 
 I often get WARNING: http_client [functions.c:281]: curL_query_url(): 
 Couldn't resolve host, while I don't even use hostnames. 
 After I changed IP address to hostname (which I've added into /etc/hosts) 
 nothing changed. It seems like a weird bug, but I've no idea - is it CURL 
 or kamailio, but when I execute curl from shell it is working fine. I have 
 google dns in resolve.conf and nslookup is also working ok.
 Can anyone help me with that?
 
 
 Alexandru Covalschi
 VoIP Engineer and System Administrator
 tel: +373 673 98 493
 
> 20 нояб. 2017 г., в 22:06, Alexandru Covalschi <568...@gmail.com 
> > написал(а):
> 
> t
 
>>> 
>> 
>> 
>> 
>> ___
>> 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 - May 14-16, 2018 - www.kamailioworld.com 
> 
___
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 + Asterisk PBX

2017-11-21 Thread Daniel-Constantin Mierla
Hello,

personally I do not have any time these days to search or look at
documents/videos/etc... to see what TAS are supposed to be -- a lot of
stuff to do for upcoming kamailio 5.1 in the spare time.

On the other hand, at the last edition of Astricon, Carsten Bock (one of
the ims extensions developer in kamailio) had a presentation about using
Asterisk for IMS -- I had to be at the Kamailio booth in Astricon expo
area, so I couldn't attend it -- maybe the videos from Astricon are
already published and you can watch it, if not, probably they will be
released soon.

Cheers,
Daniel


On 21.11.17 09:06, Mojtaba wrote:
> Hello,
> Maybe this link be useful to understanding the concept of Asterisk
> working as Telephone Application Servers(TAS) in IMS core network.
> https://www.youtube.com/watch?v=3nVRpzkUbIg
> With Regards. Mojtaba
>
> On Mon, Nov 20, 2017 at 5:14 PM, Amar Tinawi  wrote:
>> Dears;
>> Good day !
>>
>> is it possible to use Asterisk pbx server as an Application server for the
>> kamailio IMS users ? as if i want to correlate an IMS user with an extension
>> number.
>>
>> My though is kamailio ims  will handle the registration process  and
>> authentication and Asterisk will deal with IMS users as they are PBX users
>> to get all asterisk's benefits (call conference, monitoring, waiting, voice
>> mail ... etc)
>>
>> i'm thinking to integrate Asterisk with S-cscf, and when an IMS user
>> register to the IMS to domain, a trigger will initiate the S-cscf to send
>> notify to asterisk .
>>
>>
>>
>> i didnt find any solution or tutorial for this procedure, and idont know if
>> it is possible to be done.
>>
>> Regards
>> Ammar
>>
>> ___
>> 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 - May 14-16, 2018 - www.kamailioworld.com


___
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 + Asterisk PBX

2017-11-21 Thread Mojtaba
Hello,
Maybe this link be useful to understanding the concept of Asterisk
working as Telephone Application Servers(TAS) in IMS core network.
https://www.youtube.com/watch?v=3nVRpzkUbIg
With Regards. Mojtaba

On Mon, Nov 20, 2017 at 5:14 PM, Amar Tinawi  wrote:
> Dears;
> Good day !
>
> is it possible to use Asterisk pbx server as an Application server for the
> kamailio IMS users ? as if i want to correlate an IMS user with an extension
> number.
>
> My though is kamailio ims  will handle the registration process  and
> authentication and Asterisk will deal with IMS users as they are PBX users
> to get all asterisk's benefits (call conference, monitoring, waiting, voice
> mail ... etc)
>
> i'm thinking to integrate Asterisk with S-cscf, and when an IMS user
> register to the IMS to domain, a trigger will initiate the S-cscf to send
> notify to asterisk .
>
>
>
> i didnt find any solution or tutorial for this procedure, and idont know if
> it is possible to be done.
>
> Regards
> Ammar
>
> ___
> Kamailio (SER) - Users Mailing List
> 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] Kamailio IMS + Asterisk PBX

2017-11-21 Thread Mojtaba
Hello,
Maybe this link be useful to understanding the concept of Asterisk
working as Telephone Application Servers(TAS) in IMS core network.
https://www.youtube.com/watch?v=3nVRpzkUbIg
With Regards. Mojtaba

On Tue, Nov 21, 2017 at 11:13 AM, Daniel-Constantin Mierla
 wrote:
> Hello,
>
>
> On 20.11.17 14:44, Amar Tinawi wrote:
>> Dears;
>> Good day !
>>
>> is it possible to use Asterisk pbx server as an Application server for
>> the kamailio IMS users ? as if i want to correlate an IMS user with an
>> extension number.
>>
>> My though is kamailio ims  will handle the registration process  and
>> authentication and Asterisk will deal with IMS users as they are PBX
>> users to get all asterisk's benefits (call conference, monitoring,
>> waiting, voice mail ... etc)
>>
>> i'm thinking to integrate Asterisk with S-cscf, and when an IMS user
>> register to the IMS to domain, a trigger will initiate the S-cscf to
>> send notify to asterisk .
>>
>> i didnt find any solution or tutorial for this procedure, and idont
>> know if it is possible to be done.
>>
> not sure if IMS has any relevant requirement here, but using Kamailio
> with Asterisk is very common. There are several options to integrate the
> two, for some of them I wrote tutorials available at:
>
>   - https://kb.asipto.com/asterisk:index
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - www.asipto.com
> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
>
>
> ___
> Kamailio (SER) - Users Mailing List
> 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