Re: [OpenSIPS-Users] not trigger on_failure_route[0] when use mi interface

2015-04-16 Thread chow
Hi:
I make a mistake.   I use tcp  with async that fix problem.



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/not-trigger-on-failure-route-0-when-use-mi-interface-tp7596480p7596574.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] how do I check destination user is offline

2015-04-15 Thread chow
Hi:
thank you . Perfect answer !!!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/how-do-I-check-destination-user-is-offline-tp7596490p7596552.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] not trigger on_failure_route[0] when use mi interface

2015-04-15 Thread chow
Hi:
It work for me with use $du that redirect request to Main route.
have another problem about  retransmission

eg:
I followed the order sent 50 messages.   40 of  message will  be  fast
store into db. 
the remaining message (40-50) store into  db  that  Spend  more than 10
minute.
I  modify:
modparam("tm", "fr_timer", 5)
modparam("tm", "fr_inv_timer", 30)
modparam("tm", "T2_timer", 1000)

   but it  always   spend long time to do it.
   why  T2_timer no  work with a loss  value?
   have some timer like TIMER B  or TIME F  for non-invite message?



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/not-trigger-on-failure-route-0-when-use-mi-interface-tp7596480p7596551.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] how do I check destination user is offline

2015-04-14 Thread chow
Hi ALL:
   User A  sent register to opensips. then User A client core-dump,  so
User A will  never sent unregister message to opensips.
   in this case , how do I  Immediately know User A unreachable .
registered function can not know this,
by the way,  transport protocol is TCP.
thanks a lot.



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/how-do-I-check-destination-user-is-offline-tp7596490.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] not trigger on_failure_route[0] when use mi interface

2015-04-14 Thread chow
   in  my  understanding: mi interface will first enter local_route, 
   in local route , will  generate SIP Message, this SIP Message will route
to main REQUEST_ROUTE.
   in  REQUEST_ROUTE, I have some code part like this:
   
   t_on_failure("sip_message");

   
   if this transaction have any error(I also use t_relay(0x02) in
route[relay]), the FAILURE_ROUTE will be trigger.
   

   
   but , in my case, in local_route, it generate 408 code, then exit.
   so, where I can call m_store() to store message when have any error.
  
   



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/not-trigger-on-failure-route-0-when-use-mi-interface-tp7596480p7596481.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] not trigger on_failure_route[0] when use mi interface

2015-04-14 Thread chow
Hi:
 I use  t_uac_dlg send message.
 the destination  user in my location table.  actually,this user is
offline and not send  unregister。
 then, I sent  lots of message to this user,  only previous message  can 
trigger on_failure_route[].
 
 some  log  like this:
 Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_server: received
:t_uac_dlg:#012MESSAGE#012sip:rh0002...@ivoip.ronghe.tv#012sip:172.17.0.18:8060#012.#012"From:
sip:icast_wei...@ivoip.ronghe.tv#015#012To:
sip:rh0002...@ivoip.ronghe.tv#015#012Content-Type:
Multipart/Related#015#012"#012"--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
text/plain#015#012#015#012P-ICast-Message-Expire:
1429164748#015#012P-ICast-WeiXin-NickName:
孙悟空#015#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
application/xml#015#012#015#012#012#0121428991948#012#012#0126137473683113663203#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8--#015#012"#012#012
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_server: mi_buf is
:t_uac_dlg:#012MESSAGE#012sip:rh0002...@ivoip.ronghe.tv#012sip:172.17.0.18:8060#012.#012"From:
sip:icast_wei...@ivoip.ronghe.tv#015#012To:
sip:rh0002...@ivoip.ronghe.tv#015#012Content-Type:
Multipart/Related#015#012"#012"--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
text/plain#015#012#015#012P-ICast-Message-Expire:
1429164748#015#012P-ICast-WeiXin-NickName:
孙悟空#015#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
application/xml#015#012#015#012#012#0121428991948#012#012#0126137473683113663203#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8--#015#012"#012#012
and we have received 726 bytes
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:identify_command: the command starts here:
t_uac_dlg:#012MESSAGE#012sip:rh0002...@ivoip.ronghe.tv#012sip:172.17.0.18:8060#012.#012"From:
sip:icast_wei...@ivoip.ronghe.tv#015#012To:
sip:rh0002...@ivoip.ronghe.tv#015#012Content-Type:
Multipart/Related#015#012"#012"--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
text/plain#015#012#015#012P-ICast-Message-Expire:
1429164748#015#012P-ICast-WeiXin-NickName:
孙悟空#015#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
application/xml#015#012#015#012#012#0121428991948#012#012#0126137473683113663203#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8--#015#012"#012#012
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:identify_command: the command is t_uac_dlg
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:identify_command: dtgram->len is 726
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:identify_command: dtgram->len is 714
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_server: we have a valid command 
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_server: after identifing the command, the
received datagram is 
MESSAGE#012sip:rh0002...@ivoip.ronghe.tv#012sip:172.17.0.18:8060#012.#012"From:
sip:icast_wei...@ivoip.ronghe.tv#015#012To:
sip:rh0002...@ivoip.ronghe.tv#015#012Content-Type:
Multipart/Related#015#012"#012"--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
text/plain#015#012#015#012P-ICast-Message-Expire:
1429164748#015#012P-ICast-WeiXin-NickName:
孙悟空#015#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
application/xml#015#012#015#012#012#0121428991948#012#012#0126137473683113663203#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8--#015#012"#012#012
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_server: parsing the command's params
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_parse_node: the remaining datagram to be parsed
is
MESSAGE#012sip:rh0002...@ivoip.ronghe.tv#012sip:172.17.0.18:8060#012.#012"From:
sip:icast_wei...@ivoip.ronghe.tv#015#012To:
sip:rh0002...@ivoip.ronghe.tv#015#012Content-Type:
Multipart/Related#015#012"#012"--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
text/plain#015#012#015#012P-ICast-Message-Expire:
1429164748#015#012P-ICast-WeiXin-NickName:
孙悟空#015#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8#015#012Content-Type:
application/xml#015#012#015#012#012#0121428991948#012#012#0126137473683113663203#012#015#012--55ca910c3bd0e785f97e77b8fd9e4ec8--#015#012"#012#012
and 714 in length 
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_parse_node: the string is not just a quoted
string
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_parse_node: found newline before
attr_separator--we have just the attribute's value
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_parse_node: empty name, attr not quoted value
 found
Apr 14 14:12:28 ivoip /usr/sbin/opensips[36928]:
DBG:mi_datagram:mi_datagram_parse_node: 1 data->len is 714
Apr 14 14:12:28 ivoip /usr

Re: [OpenSIPS-Users] disable dns lookup:

2015-04-09 Thread chow
Hi:
anyone know this mechanism?



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/disable-dns-lookup-tp7596381p7596396.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] disable dns lookup:

2015-04-08 Thread chow
Hi: 
 have a  problem , I can not fix it. 
 I have a domain in my sip server that is voip.test.com. 

 In my /etc/hosts have : 
 192.168.1.1  voip.test.com 
  
 our opensips linsten : 192.168.1.1:5060 (protocol use tcp) 

  In my opensips.cfg have: 
  auto_aliases=yes 
  alias=localhost 
  alias=localhost.localdomain 
  alias=voip.test.com:5060 

  dns=no 
  dns_retr_time=1 
  dns_retr_no=3 
  dns_try_ipv6=no 
  disable_dns_blacklist=yes 
  disable_dns_failover=no 
  dns_use_search_list=no 
  rev_dns=no 

  loadmodule "domain.so" 
  Database mode: 0 means non-caching, 1 means caching. 
  modparam("domain", "db_mode", 1) 

 I call the mi interface from other server, then opensips received
message, 
 it alwasys do dns lookup for voip.test.com. 
 why opensips do this, how can I disable dns lookup 
  
 mi message as below: 
 :t_uac_dlg: 
 MESSAGE 
 sip:1...@voip.test.com 
 . 
 . 
"From: sip:test_ser...@voip.test.com 
 To: sip:1...@voip.ronghe.tv 
 Content-Type: Multipart/Related" 

 please, give me some suggestion!!! thanks a lot 



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/disable-dns-lookup-tp7596381.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Content-Type Paramter issue

2014-10-31 Thread chow
I read  code in msilo module . 
It seems not contain parameter in content-type header when insert to DB,
why?
what consider for that. 
thank you any advice.!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Content-Type-Paramter-issue-tp7594276p7594295.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] GMT format for date

2014-10-27 Thread chow
Hi 
I want get GMT format for date that use like this:
append_hf("Date-Internal: $time(%a, %d %b %Y %H:%M:%S GMT)\r\n");
but the system tinezone is CST, then $time return CST format.
how covert  CST to GMT in opensips.cfg 
thanks for your advice



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/GMT-format-for-date-tp7594225.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] core dump when use mi_xmlrpc module

2014-10-23 Thread chow
Hi:
I use mi_datagram instead of mi_xmlrpc. 
mi_datagram module work for me.

Thank you for any advice.



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/core-dump-when-use-mi-xmlrpc-module-tp7594167p7594211.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] core dump when use mi_xmlrpc module

2014-10-22 Thread chow
   there have twice core dump file log:
   
   [root@localhost opensips]# gdb core.13897 
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/sbin/opensips...Reading symbols from
/usr/lib/debug/usr/sbin/opensips.debug...done.
done.
[New Thread 14099]
[New Thread 13897]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib64/opensips/modules/signaling.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/signaling.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/signaling.so
Reading symbols from /usr/lib64/opensips/modules/sl.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/sl.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/sl.so
Reading symbols from /usr/lib64/opensips/modules/tm.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/tm.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/tm.so
Reading symbols from /usr/lib64/opensips/modules/rr.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/rr.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/rr.so
Reading symbols from /usr/lib64/opensips/modules/maxfwd.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/maxfwd.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/maxfwd.so
Reading symbols from /usr/lib64/opensips/modules/sipmsgops.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/sipmsgops.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/sipmsgops.so
Reading symbols from /usr/lib64/opensips/modules/mi_fifo.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/mi_fifo.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/mi_fifo.so
Reading symbols from /usr/lib64/opensips/modules/mi_xmlrpc.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/mi_xmlrpc.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/mi_xmlrpc.so
Reading symbols from /usr/lib64/opensips/modules/uri.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/uri.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/uri.so
Reading symbols from /usr/lib64/opensips/modules/usrloc.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/usrloc.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/usrloc.so
Reading symbols from /usr/lib64/opensips/modules/registrar.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/registrar.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/registrar.so
Reading symbols from /usr/lib64/opensips/modules/acc.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/acc.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/acc.so
Reading symbols from /usr/lib64/opensips/modules/textops.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/textops.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/textops.so
Reading symbols from /usr/lib64/opensips/modules/db_mysql.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/db_mysql.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/db_mysql.so
Reading symbols from /usr/lib64/opensips/modules/avpops.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/avpops.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/avpops.so
Reading symbols from /usr/lib64/opensips/modules/auth.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/auth.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/auth.so
Reading symbols from /usr/lib64/opensips/modules/auth_db.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/auth_db.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/auth_db.so
Reading symbols from /usr/lib64/opensips/modules/domain.so...Reading symbols
from /usr/lib/debug/usr/lib64/opensips/modules/domain.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/domain.so
Reading symbols from /usr/lib64/opensips/modules/permissions.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/permissions.so.debug...done.
done.
Loaded symbols for /usr/lib64/opensips/modules/permissions.so
Reading symbols from /usr/lib64/opensips/modules/alias_db.so...Reading
symbols from
/usr/lib/debug/usr/lib64/opensips/modules/alias_db.so.debug...done.
done.
Loaded symbols for

Re: [OpenSIPS-Users] add date header for every SIP Message

2014-10-22 Thread chow
Hi
thank you. it work for me!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/add-date-header-for-every-SIP-Message-tp7594123p7594166.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] add date header for every SIP Message

2014-10-20 Thread chow
Hi:
   I want to append Date header for every SIP Message.
   
   I called append_time function from opensips.cfg  that work fine , but
when called  t_uac_dlg by mi Interface, that message not have Date header.

   is there have some way to  add Date header for every SIP Message , like
as From and To header?



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/add-date-header-for-every-SIP-Message-tp7594123.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] branch computation failed

2014-10-19 Thread chow
Hi:
three days gone. that error not come out . 
thank you.



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/branch-computation-failed-tp7593895p7594122.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] branch computation failed

2014-10-16 Thread chow
Hi:
that error come out again.
I doubt  there have memory leak.  that server have   32G memory.
the opensips config:
default Start optionS_MEMORY=4096  and  P_MEMORY=128
children(process)   128
then I think opensips   have 4096 + 128*128 = 20480M memory, this is
right?
opensips hold memory never free ,  top command result:

Tasks: 529 total,   1 running, 528 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si, 
0.0%st
Mem:  32830608k total, 32589824k used,   240784k free,   138720k buffers
Swap: 16482296k total,  516k used, 16481780k free, 30601400k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 
11928 opensips  20   0 4368m 455m 454m S  0.3  1.4  51:17.91 opensips   
 
11791 opensips  20   0 4368m 6172 5004 S  0.0  0.0   0:00.19 opensips   
 
11792 opensips  20   0 4368m 1960  728 S  0.0  0.0   0:00.18 opensips   
 
11793 opensips  20   0 4368m 1404  240 S  0.0  0.0   0:00.06 opensips   
 
11794 opensips  20   0 4368m 1952  776 S  0.0  0.0   0:00.07 opensips   
 
11795 opensips  20   0 4368m 2512 1208 S  0.0  0.0   1:07.58 opensips   
 
11796 opensips  20   0 4368m 2172  992 S  0.0  0.0   0:00.06 opensips   
 
11797 opensips  20   0 4368m 1812  640 S  0.0  0.0   0:00.06 opensips   
 
11798 opensips  20   0 4368m 1812  640 S  0.0  0.0   0:00.05 opensips   
 
11799 opensips  20   0 4368m 514m 513m S  0.0  1.6  79:11.69 opensips   
 
11800 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:20.70 opensips   
 
11801 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:05.47 opensips   
 
11802 opensips  20   0 4368m 514m 513m S  0.0  1.6  79:09.96 opensips   
 
11803 opensips  20   0 4368m 514m 513m S  0.0  1.6  79:05.35 opensips   
 
11804 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:14.65 opensips   
 
11805 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:06.60 opensips   
 
11806 opensips  20   0 4368m 514m 513m S  0.0  1.6  79:19.44 opensips   
 
11807 opensips  20   0 4368m 514m 513m S  0.0  1.6  79:18.87 opensips   
 
11808 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:16.96 opensips   
 
11809 opensips  20   0 4368m 514m 513m S  0.0  1.6  79:27.83 opensips   
 
11810 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:11.83 opensips   
 
11811 opensips  20   0 4368m 514m 513m S  0.0  1.6  79:11.44 opensips   
 
11812 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:21.19 opensips   
 
11813 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:01.53 opensips   
 
11814 opensips  20   0 4368m 514m 513m S  0.0  1.6  78:51.01 opensips

   the free command have result:
 free
 total   used   free sharedbuffers cached
Mem:  32830608   32592164 238444  0 140008   30602304
-/+ buffers/cache:1849852   30980756
Swap: 16482296516   16481780
  
   


  the opensips log:
  Oct 15 10:21:02 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fifo:mi_fifo_reply: fifo_error: write error: Broken pipe
Oct 15 10:27:01 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fifo:mi_fifo_reply: fifo_error: write error: Broken pipe
Oct 15 10:42:02 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fifo:mi_fifo_reply: fifo_error: write error: Broken pipe
Oct 15 10:47:02 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fifo:mi_fifo_reply: fifo_error: write error: Broken pipe
Oct 15 11:02:01 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fifo:mi_fifo_reply: fifo_error: write error: Broken pipe
Oct 15 11:09:02 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fifo:mi_fifo_reply: fifo_error: write error: Broken pipe
Oct 15 11:14:02 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fifo:mi_fifo_reply: fifo_error: write error: Broken pipe
Oct 15 11:23:01 localhost /usr/sbin/opensips[11795]:
ERROR:mi_fi

Re: [OpenSIPS-Users] branch computation failed

2014-10-09 Thread chow
Hi Bogdan:
  the param of tm :
  loadmodule "tm.so"
 modparam("tm", "fr_timer", 5)
 modparam("tm", "fr_inv_timer", 30)
 modparam("tm", "restart_fr_on_each_reply", 0)
 modparam("tm", "onreply_avp_mode", 1)

 the sipp call rate is 3000 caps. 
 the opensips version is 1.10.1
 the opensips memory config : S_MEMORY=4096, P_MEMORY=128




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/branch-computation-failed-tp7593895p7593931.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] branch computation failed

2014-10-09 Thread chow
Hi All :
   please , have someone help me?



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/branch-computation-failed-tp7593895p7593902.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] branch computation failed

2014-10-08 Thread chow
Hi, I test performance  of opensips. I use sipp do it. but, occur some error. 
here is  the part of opensips's  log :

Oct  4 00:10:03 localhost /usr/sbin/opensips[18546]:
ERROR:tm:pre_print_uac_request: branch computation failed
Oct  4 00:10:03 localhost /usr/sbin/opensips[18546]:
ERROR:tm:t_forward_nonack: failure to add branches
Oct  4 00:10:03 localhost /usr/sbin/opensips[18482]:
ERROR:tm:pre_print_uac_request: branch computation failed
Oct  4 00:10:03 localhost /usr/sbin/opensips[18482]:
ERROR:tm:t_forward_nonack: failure to add branches
Oct  4 00:10:04 localhost /usr/sbin/opensips[18557]:
ERROR:tm:pre_print_uac_request: branch computation failed
Oct  4 00:10:04 localhost /usr/sbin/opensips[18557]:
ERROR:tm:t_forward_nonack: failure to add branches
Oct  4 00:10:04 localhost /usr/sbin/opensips[18467]:
ERROR:tm:pre_print_uac_request: branch computation failed
Oct  4 00:10:04 localhost /usr/sbin/opensips[18467]:
ERROR:tm:t_forward_nonack: failure to add branches
Oct  4 00:10:28 localhost /usr/sbin/opensips[18500]:
ERROR:tm:pre_print_uac_request: branch computation failed
Oct  4 00:10:28 localhost /usr/sbin/opensips[18500]:
ERROR:tm:t_forward_nonack: failure to add branches
Oct  4 00:10:35 localhost /usr/sbin/opensips[18502]:
ERROR:tm:pre_print_uac_request: branch computation failed
Oct  4 00:10:35 localhost /usr/sbin/opensips[18502]:
ERROR:tm:t_forward_nonack: failure to add branches
Oct  4 00:10:35 localhost /usr/sbin/opensips[18477]:
ERROR:tm:pre_print_uac_request: branch computation failed
Oct  4 00:10:35 localhost /usr/sbin/opensips[18477]:
ERROR:tm:t_forward_nonack: failure to add branches



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/branch-computation-failed-tp7593895.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips-cp err

2014-09-26 Thread chow
Hi,
 i fix code , then  that notice disappear

 in functions.inc.php 89 line
 -$value=$resultset[0]['extra']; 
 +$value=isset($resultset[0])?$resultset[0]['extra']:"";


 in mi_comm.php 78 line
 +$arg_list="";
   $arg_list.=$val."\n";

   if there have any err ,please tell me... thank you!
   




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/opensips-cp-err-tp7593645p7593646.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] opensips-cp err

2014-09-26 Thread chow
Hi,
  I user opensips-cp . the version  is 5.0 . 
  I have flow err in log:
PHP Notice:  Undefined offset: 0 in
/var/www/html/opensips-cp/web/tools/system/smonitor/lib/functions.inc.php on
line 89
PHP Notice:  Undefined variable: arg_list in
/var/www/html/opensips-cp/web/common/mi_comm.php on line 78
 
 it seems that have a notice by PHP. 
 what can I do for it.



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/opensips-cp-err-tp7593645.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] 483 Too manyHops

2014-09-25 Thread chow
hi,
I see your script . 
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
}

check the value of Max-Forward in sip message.
your script permit 10 hop.




zhouxiaoqiang.mstech

From: Prasanna Kumar Nelam [via OpenSIPS (Open SIP Server)]
Date: 2014-09-25 15:37
To: chow
Subject: 483 Too manyHops
Hi All,
 
After installation of opensips, choose the residential script and change the 
generated config file name as opensips.cfg and run the application successfully.
 
Whenever call made onto opensips from KAPANGA, for INVITE request it received 
100 later it received 483 Too manyHops error message.
 
Please suggest is anything missing in config file, as I am attaching the config 
file in .zip format for your reference.
 
 
Thanks and Regds,
Prasanna Kumar.N,
Tech Lead,
IMImobile Plot 770, Rd. 44 Jubilee Hills, Hyderabad - 500033
M +91 916358 T +91 40 2355 5945 - Ext: 226 www.imimobile.com
=
 
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error, please notify the sender immediately by 
e-mail and delete this e-mail from your system. The sender therefore does not 
accept liability for any errors or omissions in the contents of this message, 
which arise as a result of e-mail transmission. Please note that any views or 
opinions presented in this email are solely those of the author and do not 
necessarily represent those of the company. Finally, the recipient should check 
this email and any attachments for the presence of viruses. The company accepts 
no liability for any damage caused by any attachment with this email. 

IMImobile, Plot No:770, Road No : 44, Jubilee Hills, Hyderabad, India, 500033. 
www.imimobile.com 
==
This e-mail message has been scanned for Viruses and Content and cleared by 
Symantec Mail Security
 

___ 
Users mailing list 
[hidden email] 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


 opensips.zip (4K) Download Attachment





If you reply to this email, your message will be added to the discussion below:
http://opensips-open-sip-server.1449251.n2.nabble.com/483-Too-manyHops-tp7593630.html
 
To start a new topic under OpenSIPS - Users, email 
ml-node+s1449251n1449235...@n2.nabble.com 
To unsubscribe from OpenSIPS (Open SIP Server), click here.
NAML 



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/483-Too-manyHops-tp7593630p7593633.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dialog lifetime refresh issue

2014-09-11 Thread chow
hi,
thanks a lot!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/dialog-lifetime-refresh-issue-tp7593404p7593431.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dialog lifetime refresh issue

2014-09-10 Thread chow
hi,the opensips version is 1.10.1. In the code, I did not see $ DLG_timeout,
so, I use timeout_avp.
I fix script config , modify  $avp(session_expires) value before 
loose_route , it work. why?  

In the code , I see in dlg_handlers.c have function void dlg_onroute(struct
sip_msg* req, str *route_params, void *param), this function update our
dialog lifetime if timeout_avp changed.
In my option , loose_route() function triger the dlg_onroute() function. 
right? 

script like this:
 if (is_method("INVITE")) { 
  if($(hdr(Session-Expires))){ 
  # handling the case 
 "Session-Expires:4000;refresher=uac" 
  $var(se_value) = 
 $(hdr(Session-Expires){s.select,0,;}); 
 
  if($(var(se_value){s.int})>=SIP_MIN_SESSION_TIME){ 
  $avp(session_expires) =
$(var(se_value){s.int}); 
  xlog("L_INFO", "set session timer by reinvite 
 se_value:$(var(se_value){s.int}) dlg_lifettime:$DLG_lifetime seconds\n"); 
  }else{ 
  xlog("L_ERR", "Session timer not refreshed"); 
  } 
  } 
}
  if (has_totag()) { 
 if (loose_route()) { 
if (is_method("INVITE")) { 
  # even if in most of the cases is useless, do RR for 
  # re-INVITEs alos, as some buggy clients do change route
set 
  # during the dialog. 
   
   
  if (is_present_hf("Proxy-Authorization")) { 
  remove_hf("Proxy-Authorization"); 
  } 
   
  } 
 } 
  } 



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/dialog-lifetime-refresh-issue-tp7593404p7593411.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] dialog lifetime refresh issue

2014-09-09 Thread chow
I use time_avp set my custom timeout for dialog lifetime, then update dialog
lifetime when recive uac's re-invite(include sessiom-timer header),  but
dialog send BYE to uac , it seems lifetime not refresh in re-invite. 
scritpt like this: 

if (has_totag()) { 
   if (loose_route()) { 
  if (is_method("INVITE")) { 
# even if in most of the cases is useless, do RR for 
# re-INVITEs alos, as some buggy clients do change route set 
# during the dialog. 
record_route(); 

if($(hdr(Session-Expires))){ 
if(match_dialog()){ 
# handling the case
"Session-Expires:4000;refresher=uac" 
$var(se_value) =
$(hdr(Session-Expires){s.select,0,;}); 

if($(var(se_value){s.int})>=SIP_MIN_SESSION_TIME){ 
$avp(session_expires) = $(var(se_value){s.int}); 
xlog("L_INFO", "set session timer by reinvite
se_value:$(var(se_value){s.int}) dlg_lifettime:$DLG_lifetime seconds\n"); 
}else{ 
xlog("L_ERR", "Session timer not refreshed"); 
} 
}else{ 
sl_send_reply("481", "Transaction Does Exist"); 
exit; 
} 
} 

if (is_present_hf("Proxy-Authorization")) { 
remove_hf("Proxy-Authorization"); 
}   

} 
   } 
} 


... 

if (is_method("INVITE")) { 
# check Session time and Min-Se header if exist.update dialog timer 
if($hdr(Session-Expires)){ 
# Handling the case "Session-Expires:4000;refresher=uac" 
$var(se_value) = $(hdr(Session-Expires){s.select,0,;}); 

if(sstCheckMin("1")){ 
xlog("L_ERR", "422 Session Timer Too Small reply send.\n"); 
exit; 
} 
create_dialog("B"); 

$avp(session_expires) = $(var(se_value){s.int}); 
xlog("L_INFO", "set session timer for invite
se_value:$var(se_value) dlg_lifet:$DLG_lifetime seconds\n"); 

} 

setflag(ACC_DO); # do accounting 
}



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/dialog-lifetime-refresh-issue-tp7593404.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users