Re: [SR-Users] NSQ libevbuffsock dependency

2016-05-30 Thread smititelu

On 30.05.2016 17:55, smititelu wrote:
Is there other  recommended way, to install the library besides 
compiling from sources at [1]?


L.E. : apt-get doesn't find the library even after an update/upgrade. My 
system is an Ubuntu 14.04.4 LTS.


Thx,
Stefan

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] NSQ libevbuffsock dependency

2016-05-30 Thread smititelu

Hi,

Upon trying to compile latest Kamailio from sources I got an:
"
nsq.h:9:24: fatal error: evbuffsock.h: No such file or directory
 #include 
^
"

Looking on the new NSQ module documentation I see the libevbuffsock 
dependency. Is there other  recommended way, to install the library 
besides compiling from sources at [1]?


Thx,
Stefan

[1] https://github.com/mreiferson/libevbuffsock

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] rtpengine default set

2016-05-04 Thread smititelu

Hi,

On 04.05.2016 00:23, Alex Balashov wrote:

Hi,

After upgrading to Kamailio v4.4, I receive the following error on boot:

May 03 17:18:22 allegro-4.evaristesys.com 
/usr/local/sbin/kamailio[24972]: ERROR: rtpengine [rtpengine.c:2691]: 
select_rtpp_set():  script error-invalid id_set to be selected
May 03 17:18:22 allegro-4.evaristesys.com 
/usr/local/sbin/kamailio[24972]: ERROR: rtpengine [rtpengine.c:2691]: 
select_rtpp_set():  script error-invalid id_set to be selected
May 03 17:18:22 allegro-4.evaristesys.com 
/usr/local/sbin/kamailio[24972]: NOTICE: rtpengine [rtpengine.c:1788]: 
mod_init(): Default rtpp set 0 NOT found



There have been quite a lot of changes in rtpengine module mainly relate 
to the possibility to store/get rtpengine machine URL in/from database.


Among those changes, [1] has been introduced also. This is useful when 
you have many sets of rtpengine stored in database and want to select 
the active set, currently possible only at startup-time (devault those 
with setid 0). A further improvement here would be to be able to "kamctl 
fifo change it".


The message notices that you should set [1] to your wanted, active set.




Subsequently to that, Kamailio starts normally and connects to rtpengine:

May 03 17:18:22 allegro-4.evaristesys.com 
/usr/local/sbin/kamailio[24972]: INFO: rtpengine [rtpengine.c:2542]: 
rtpp_test(): rtp proxy  found, support for it enabled
May 03 17:18:22 allegro-4.evaristesys.com 
/usr/local/sbin/kamailio[24975]: INFO: rtpengine [rtpengine.c:2542]: 
rtpp_test(): rtp proxy  found, support for it enabled
May 03 17:18:22 allegro-4.evaristesys.com 
/usr/local/sbin/kamailio[24974]: INFO: rtpengine [rtpengine.c:2542]: 
rtpp_test(): rtp proxy  found, support for it enabled

[...]

It might be something on my end, but my guess is that in v4.4 there is 
a fixup that runs beforehand and looks for a default set.


Strictly speaking, I don't need an explicitly identified set, since 
I'm only using one rtpengine instance. However, I explicitly specify 
it because I'd like the code to be open in the future to selecting a 
given rtpengine relay based on some criteria.


-- Alex

Now, having "modparam("rtpengine", "setid_avp", "$avp(setid)")" 
overwrites [1]'s behaviour, explaining why it's "found, support for it 
enabled".




Regards,
Stefan

[1] 
http://kamailio.org/docs/modules/4.4.x/modules/rtpengine.html#rtpengine.p.setid_default


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] why msg_apply_changes() from REQUEST_ROUTE only

2016-02-05 Thread smititelu

On 21.12.2015 10:48, Daniel-Constantin Mierla wrote:

Hello,

in failure route the sip message is cloned in shared memory, with many 
references to shared memory buffer, as well as shorter size (just to 
fit the sip message) of the buffer storing the message (the core used 
a private memory buffer to max capacity configured for message size).


I'm not sure where to I start working on this. Can you give some tips on 
the places/functions to look on and try to extend for failure routes?


Regards,
Stefan
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Memory issue?

2016-01-21 Thread smititelu

On 21.01.2016 12:37, Igor Potjevlesch wrote:


And 2 coredumps readable:

Core was generated by `/usr/local/sbin/kamailio -P 
/var/run/kamailio.pid -m 256 -M 64'.


Program terminated with signal 11, Segmentation fault.

#0  0x7f13a1550af2 in dtrie_insert (root=0x7f138d7ffb38, 
number=0x22ba6c0 "003716716", numberlen=9, data=0x2, branches=10) at 
dtrie.c:141


141 if (node->child[digit] == NULL) {

Core was generated by `/usr/local/sbin/kamailio -P 
/var/run/kamailio.pid -m 256 -M 64'.


Program terminated with signal 11, Segmentation fault.

#0  0x7f13a1550af2 in dtrie_insert (root=0x7f138d7ff998, 
number=0x22b57a8 "0035587482", numberlen=10, data=0x2, branches=10) at 
dtrie.c:141


141 if (node->child[digit] == NULL) {



I remember something related, solved and backported in commit [1].

Now that I'm looking at the segfault line I think node should be NULL 
checked also after ```struct dtrie_node_t *node = root;```


Stefan

[1] 
https://github.com/kamailio/kamailio/commit/b399bb34cebdb1002d27bb0cf554f2d2e683c40d
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] rtpproxy does not response, disable it

2015-12-22 Thread smititelu


I solved this problem by changing the 127.0.0.1 in rtpengine startup 
config into 10.109.247.90 which is the eth0 address of the rtpengine 
machine.


Now Kamailio successfully connect to the rtpengine daemon.


Nice you solved it. Didn't think of it :D
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] rtpproxy does not response, disable it

2015-12-22 Thread smititelu


I’ve already set modparam("rtpengine", "force_send_interface", 
“10.109.247.80”) in my kamailio.cfg from the very beginning.
Can you try force ping from kamailio machine (.80) to rtpengine machine 
(.90), on 10.109.247.80 interface? (it should work)



There is nothing prompt out on command “kamctl fifo nh_show_rtpp all”
If there is nothing shown it means that kamailio sees no rtpengine 
nodes. What kamailio/rtpengine version are you using? (are they both 
latest upstream?!). The sock line should be fine: modparam("rtpengine", 
"rtpengine_sock", "udp:10.109.247.90:7723")


Can you increase the log level(debug=3) and send some debug info on 
what's happening right after you restart kamailio?(for rtpengine module)


There is nothing captured on "ngerp -W byline -d em1 port 5095” on 
Kamilio machine.
Wehn eventually you see something for the show ctl command, you should 
try capturing for dst port 7723, on kamailio machine, to see the 
commands sent to rtpengine.


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] rtpproxy does not response, disable it

2015-12-21 Thread smititelu
And, I also tried to set Kamailio and rtpengine daemon in a same 
machine,and use modparam(“rtpengine”, “rtpengine_sock”, 
“udp:localhost:7723”). And Kamailio can work functionally under this 
situation. rtpengine daemon can receive ping message from Kamailio and 
rtpengine daemon can work as suspected. So for the later case, is it 
supposed that Kamailio be in the same machine with same localhost 
address? Otherwise, what’s the reason for my ERROR?

You can try make use of the below parameter:

# Which local interface/IP should be used for the control channel
modparam("rtpengine", "force_send_interface", "X.X.X.X")

Thanks,
Stefan

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] rtpproxy does not response, disable it

2015-12-21 Thread smititelu

Hi Zodiac,

1. Can you see your configured rtp node on: "kamctl fifo nh_show_rtpp all" ?
2. Can you ngrep the commands being sent by kamailio to rtpengine?(on 
both kamailio and rtpengine machine)

3. Do you have some firewalling rules that may block that 7723 port?

Stefan

On 21.12.2015 17:45, Zodiac wrote:

Dear friends,
I am working on a program on Kamailio and rtpengine proxy. I am 
wondering whether can I set Kamailio and rtpengine daemon on different 
physical machines. For example, I set Kamailio on a machine with IP 
address:10.109.247.80, and launch rtpengine daemon on another machine 
with interface parameter as 10.109.247.90 and ng port 7723. I set 
parameter in Kamailio.cfg with modparam(“rtpengine”, “rtpengine_sock”, 
“udp:10.109.247.90:7723”).


Unfortunately I got debug message like this:

ERROR: rtpengine [rtpengine.c:1710]: send_rtpp_command(): can't send 
command to a RTP proxy


ERROR: rtpengine [rtpengine.c:1746]: send_rtpp_command(): proxy 
 does not respond, disable it


ERROR: rtpengine [rtpengine.c:1616]: rtpp_test(): proxy did not 
respond to ping


And, I also tried to set Kamailio and rtpengine daemon in a same 
machine,and use modparam(“rtpengine”, “rtpengine_sock”, 
“udp:localhost:7723”). And Kamailio can work functionally under this 
situation. rtpengine daemon can receive ping message from Kamailio and 
rtpengine daemon can work as suspected. So for the later case, is it 
supposed that Kamailio be in the same machine with same localhost 
address? Otherwise, what’s the reason for my ERROR?




北京邮电大学网络技术研究院
网络与交换技术国家重点实验室
田军
+86 18810315790
mozillaf...@bupt.edu.cn 




___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] why msg_apply_changes() from REQUEST_ROUTE only

2015-12-18 Thread smititelu

Hello,

I don't understand why msg_apply changes() can be called from 
REQUEST_ROUTE *only*. Can someone explain? Can this be extended to 
*FAILURE_ROUTES *also?


Basically I need to call this from FAILURE_ROUTES in order to avoid 
double SDP for rtpengine offers. Searching in the mailing list I could 
see that there could be other means of handling this like keeping and 
reading the SDP from an avp(write/read_sdp_pv), but I find the above 
method pretty straightforward.


Thanks,
Stefan
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Generating db-tables .html file

2015-12-04 Thread smititelu

On 03.12.2015 13:43, Daniel-Constantin Mierla wrote:

Looking quickly at, I noticed there is a page for this topic:
http://www.kamailio.org/wiki/devel/update-database-schema

It is missing the part for html doc, if you have time, would be good 
if you add your notes there.


Updated the current doku.

Thanks,
Stefan
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] why is rtpenengine-delete deleting the whole call?

2015-12-04 Thread smititelu

On 03.12.2015 12:30, Juha Heinanen wrote:

Richard Fuchs writes:


I have a prospective fix in a separate branch:
https://github.com/sipwise/rtpengine/tree/rfuchs/delete-branch

Can you please test it to see if it works for your use case, then I'll
merge into master.

Richard,

I had chance to test this branch and it worked as I expected.  With
earlier version these two offers:


Hello Juha,

If you have the scenario in place and some time for it, can you please 
try [1] for rtpengine module, kamailio side?


It is related to the pull-request for rtpengine hash table to keep the 
nodes selected for a call. We are not able to test it since we are not 
using rtpengine's via-branch feature. We are running it for ~ two weeks 
from now, in the test system, and didn't spotted problems so far 
(without via-branch).


Thank you,
1&1 Team

[1] https://github.com/smititelu/kamailio/commits/master

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Generating db-tables .html file

2015-12-03 Thread smititelu

On 30.11.2015 10:23, Daniel-Constantin Mierla wrote:

for generating the sql script, run in root folder of kamailio sources:

make dbschema

The sql scripts will be placed in subfolders of utils/kamctl/.

For generating the html docs, iirc, the commands are:

- in lib/srdb1/schema:

make docbook-xml

- then in doc/databases/kamailio:

make html

Then a htables.html should be generated.

I didn't have the time to check everything, as I saw the commands 
issue error messages regarding the ID 'id', when doing validations.


Thank you.

Updated also 
http://www.kamailio.org/dokuwiki/doku.php/development:db-schema?

[SR-Users] Generating db-tables .html file

2015-11-26 Thread smititelu

Hello,

I want to add a new table to the [1].

I managed to create a new *kamailio-*.xml* in "lib/srdb1/schema/", run 
make and see the resulting **-dbschema.xml* in doc/databases/kamailio, 
along with the other .sql scripts. Here I got stuck; I can't find the 
scrip that generates the final .html.


I tried grepping the code for some keywords found in page source without 
success. Also, couldn't find the answer reading [2].


Any ideas how the final .html is generated?

Thanks,
Stefan

[1] http://kamailio.org/docs/db-tables/kamailio-db-devel.html
[2] http://www.kamailio.org/dokuwiki/doku.php/development:db-schema
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Generating db-tables .html file

2015-11-26 Thread smititelu

Hi,

On 26.11.2015 13:48, Daniel-Constantin Mierla wrote:
do you want to add the sql to create the new table or you just want to 
regenerate the html file with the description of db tables?

I think of both.

I can easily add the generated database script files(e.g. utils/kamctl/ 
dbtext, mysql, etc..). But I don't know how to regenerate the .html file 
with the description of db tables.


Thanks,
Stefan
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Outgoing SIP messages

2015-11-06 Thread smititelu

Hi,

On 06.11.2015 10:02, Varghese Paul wrote:

Hi all,

Is it possible to log the outgoing SIP messages relayed from kamailio ?


Can you try the dbg_sip_msg() available for REQUEST_ROUTEs?
http://kamailio.org/docs/modules/devel/modules/debugger.html

Please tell us if you find some bugs with it.

Regards,
Stefan


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to dump or log the value of $avp(ice_priority) with xlog

2015-04-28 Thread smititelu

Hello,

Try using|||dbg_pv_dump |from the kamailio debugger module. The output 
should also include your avp.


Alternatively, you could use interactive debugging with kamcmd: kamcmd 
dbg.bp eval 3016 $avp(myvar) as described in the above module. To do 
this you need to kamcmd dbg.bp on to set breakpoints in the kamailio 
procs, followed by dbg.ls, dbg.next, dbg.eval as the Usage example 
shows. You _must_ enter the kamcmd shell for dbg.eval to work; for me, 
it didn't worked otherwise(i.e. when trying non-interactively).


Alternatively, you could set the breakpoint(1) module param to enable 
line by line breakpoints or use dbg_breakpoint(1) function in .cfg 
file, though the latter didn't work for me and I belive is not yet 
implemented. (as w_dbg_breakpoint function says).


Regards,
Stefan

On 25.04.2015 19:04, Filip Malenka wrote:

Hi all,

I am adding the
modparam(rtpproxy, ice_candidate_priority_avp, $avp(ice_priority))
to my kamailio.cfg and I would like to know, what this
$avp(ice_priority) returns, either 1, or 2 or anything else..


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users