Re: [OpenSIPS-Devel] [opensips] loose_route returns TRUE for an in-dialog single consumed Route header (#550)

2015-06-11 Thread Bogdan Andrei IANCU
@gergelypeli, the docs were updated (see the above commits), the online docs 
are regenerated during the nights, so give them a bit of a time to be updated.
Thanks and regards, Bogdan

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/550#issuecomment-111077626___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 7e1fa3: RPM spec: returned missed m4 feature, corrected ve...

2015-06-11 Thread Nick Altmann
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7e1fa37238cef9dd50ef47ea3c313a29bbe78b5b
  
https://github.com/OpenSIPS/opensips/commit/7e1fa37238cef9dd50ef47ea3c313a29bbe78b5b
  Author: Nick Altmann nick.altm...@gmail.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M packaging/fedora/opensips.spec

  Log Message:
  ---
  RPM spec: returned missed m4 feature, corrected version numbering


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 800117: Revert Fix parsing for Diversion header.

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 800117b620c6f683c5a7f4fe89b56c2795e9f56e
  
https://github.com/OpenSIPS/opensips/commit/800117b620c6f683c5a7f4fe89b56c2795e9f56e
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/sipmsgops/sipmsgops.c

  Log Message:
  ---
  Revert Fix parsing for Diversion header.

This reverts commit 36384927a5d2fd1d900ac36adc2ee15b2acad0c9.


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 611b9b: RPM spec: enabled restart feature (in case of cras...

2015-06-11 Thread Nick Altmann
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 611b9bb55135b899746a0c71f21f25b0561a81b4
  
https://github.com/OpenSIPS/opensips/commit/611b9bb55135b899746a0c71f21f25b0561a81b4
  Author: Nick Altmann nick.altm...@gmail.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M packaging/fedora/opensips.service

  Log Message:
  ---
  RPM spec: enabled restart feature (in case of crash) in systemd service


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


Re: [OpenSIPS-Devel] [opensips] tcp read error on 1.11.5 (#551)

2015-06-11 Thread seanchann.zhou
i guess it occur when some tcp connecction have some data will be read, but  
this connection Suddenly disconnected  by client. 

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/551#issuecomment-111043894___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] c0df4e: Revert Fix parsing for Diversion header.

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c0df4e9211a1d67d4ad8bc6c9f259a37d41d0364
  
https://github.com/OpenSIPS/opensips/commit/c0df4e9211a1d67d4ad8bc6c9f259a37d41d0364
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/sipmsgops/sipmsgops.c

  Log Message:
  ---
  Revert Fix parsing for Diversion header.

This reverts commit 518b2c12192fcc018bedf5f1ad714697966bbdb4.


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


[OpenSIPS-Devel] [OpenSIPS/opensips] f3c2b0: Fix fixing hdr names shorter than 3 chars.

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f3c2b03766d4611baba3bd8e26665c3012d02d9d
  
https://github.com/OpenSIPS/opensips/commit/f3c2b03766d4611baba3bd8e26665c3012d02d9d
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/sipmsgops/sipmsgops.c

  Log Message:
  ---
  Fix fixing hdr names shorter than 3 chars.

The fixup function fails to identify header names shorter than 3 (like To or 
short formats). This affected script functions like is_present_hf() or 
remove_hf().
Reported by Nick Altmann

(cherry picked from commit 1f7bae0915ac93ca231ede55c5540560e5489a7b)


  Commit: 48a7f214955d008205b0d547cc67bd0954fcf240
  
https://github.com/OpenSIPS/opensips/commit/48a7f214955d008205b0d547cc67bd0954fcf240
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/sipmsgops/sipmsgops.c

  Log Message:
  ---
  Revert Fix parsing for Diversion header.

This reverts commit 31ddc4942d624f4d4cb559c0daa078fcebe527fe.


Compare: 
https://github.com/OpenSIPS/opensips/compare/3bb358351954...48a7f214955d___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] loose_route returns TRUE for an in-dialog single consumed Route header (#550)

2015-06-11 Thread gergelypeli
OK, then a documentation fix would suffice, and I'll use isdsturiset for this.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/550#issuecomment-111077066___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] ca2711: RPM spec: enabled restart feature (in case of cras...

2015-06-11 Thread Nick Altmann
  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ca2711ab4cea32a16225c8d866faf12b29ac679d
  
https://github.com/OpenSIPS/opensips/commit/ca2711ab4cea32a16225c8d866faf12b29ac679d
  Author: Nick Altmann nick.altm...@gmail.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M packaging/fedora/opensips.service

  Log Message:
  ---
  RPM spec: enabled restart feature (in case of crash) in systemd service

(cherry picked from commit 611b9bb55135b899746a0c71f21f25b0561a81b4)


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


Re: [OpenSIPS-Devel] [opensips] tcp read error on 1.11.5 (#551)

2015-06-11 Thread seanchann.zhou
by  a way, I run  opensips  in a  docker container

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/551#issuecomment-111066678___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] loose_route returns TRUE for an in-dialog single consumed Route header (#550)

2015-06-11 Thread Bogdan Andrei IANCU
Closed #550 via 2421034845068bbc243a8bd5de8aeebd071fc729.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/550#event-328340620___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 8b1bd1: Fix documentation on loose_route().

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8b1bd127b10c7d38aba3209e64db1addf14df6df
  
https://github.com/OpenSIPS/opensips/commit/8b1bd127b10c7d38aba3209e64db1addf14df6df
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/rr/README
M modules/rr/doc/rr_admin.xml

  Log Message:
  ---
  Fix documentation on loose_route().

loose_route() returns FALSE only if there is no Route header or if preloaded 
local Route only.
Reported by @gergelypeli on github
Closes #550

(cherry picked from commit 2421034845068bbc243a8bd5de8aeebd071fc729)


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 242103: Fix documentation on loose_route().

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 2421034845068bbc243a8bd5de8aeebd071fc729
  
https://github.com/OpenSIPS/opensips/commit/2421034845068bbc243a8bd5de8aeebd071fc729
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/rr/README
M modules/rr/doc/rr_admin.xml

  Log Message:
  ---
  Fix documentation on loose_route().

loose_route() returns FALSE only if there is no Route header or if preloaded 
local Route only.
Reported by @gergelypeli on github
Closes #550


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 3e4698: Fix documentation on loose_route().

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3e4698a24ba2d37b3be725cb4de81c1f596c
  
https://github.com/OpenSIPS/opensips/commit/3e4698a24ba2d37b3be725cb4de81c1f596c
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/rr/README
M modules/rr/doc/rr_admin.xml

  Log Message:
  ---
  Fix documentation on loose_route().

loose_route() returns FALSE only if there is no Route header or if preloaded 
local Route only.
Reported by @gergelypeli on github
Closes #550

(cherry picked from commit 2421034845068bbc243a8bd5de8aeebd071fc729)


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 92ffe5: RPM spec: returned missed m4 feature, changed vers...

2015-06-11 Thread Nick Altmann
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 92ffe5b463a9806c87d6f3abf427c6cd877e677a
  
https://github.com/OpenSIPS/opensips/commit/92ffe5b463a9806c87d6f3abf427c6cd877e677a
  Author: Nick Altmann nick.altm...@gmail.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M packaging/fedora/opensips.spec

  Log Message:
  ---
  RPM spec: returned missed m4 feature, changed version number


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


Re: [OpenSIPS-Devel] [opensips] loose_route returns TRUE for an in-dialog single consumed Route header (#550)

2015-06-11 Thread Bogdan Andrei IANCU
You can also do : 
if ($du==NULL) {} else {}

$du is destination URI

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/550#issuecomment-111083354___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] loose_route returns TRUE for an in-dialog single consumed Route header (#550)

2015-06-11 Thread Bogdan Andrei IANCU
@gergelypeli , the true/false returned by loose_route() does not limit to 
using RURI or not, but to applying the loose Route mechanism or not.
As time as your incoming request had a Route header (pointing to your server), 
the loose Route mechanism was applied (to identify and strip the local Route 
and to decide to route further based on RURI).

So, the doc seems to be  a bit ambiguous / bogus, I will take care of this. 

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/550#issuecomment-111071141___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] f846b4: RPM spec: m4 dependence

2015-06-11 Thread Nick Altmann
  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f846b4168d6ab5b98300c9a5bf201c334703fce0
  
https://github.com/OpenSIPS/opensips/commit/f846b4168d6ab5b98300c9a5bf201c334703fce0
  Author: Nick Altmann nick.altm...@gmail.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M packaging/fedora/opensips.spec

  Log Message:
  ---
  RPM spec: m4 dependence


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


[OpenSIPS-Devel] [OpenSIPS/opensips] badb86: RPM spec: enabled restart feature (in case of cras...

2015-06-11 Thread Nick Altmann
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: badb86e501c55cd70e29a73ac03037df1c3049cd
  
https://github.com/OpenSIPS/opensips/commit/badb86e501c55cd70e29a73ac03037df1c3049cd
  Author: Nick Altmann nick.altm...@gmail.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M packaging/fedora/opensips.service

  Log Message:
  ---
  RPM spec: enabled restart feature (in case of crash) in systemd service

(cherry picked from commit 611b9bb55135b899746a0c71f21f25b0561a81b4)


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


[OpenSIPS-Devel] [opensips] tcp read error on 1.11.5 (#551)

2015-06-11 Thread seanchann.zhou
Hi:
I use 1.11.5 with tcp. 
in my log allways have some error like this:
Jun 11 15:32:24 ivoip /usr/sbin/opensips[8067]: CRITICAL:core:handle_io: 
empty fd map
Jun 11 15:32:24 ivoip /usr/sbin/opensips[8063]: ERROR:core:tcp_read_req: bad 
request, state=0, error=2 buf:#012#012parsed:#012
Jun 11 15:32:24 ivoip /usr/sbin/opensips[8067]: CRITICAL:core:handle_io: empty 
fd map
Jun 11 15:32:24 ivoip /usr/sbin/opensips[8063]: ERROR:core:io_watch_del: trying 
to delete already erased entry 30 in the hash(0, 0, (nil)) )
Jun 11 15:32:24 ivoip /usr/sbin/opensips[8067]: CRITICAL:core:handle_io: empty 
fd map
^CJun 11 15:32:24 ivoip /usr/sbin/opensips[8063]: ERROR:core:tcp_read_req: bad 
request, state=0, error=2 buf:#012#012parsed:#012 


  once this error occur, the error info will not stop write to log util  i 
force stop opensips.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/551___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] mi_xmlrpc_ng mi_json answer bug with pua_publish (#552)

2015-06-11 Thread Damien Sandrs

?php
$extension = 754;
$realm = ds.local.beip.be;
$enable_tcp = true;

$uri = sip:$extension@$realm;
if ($enable_tcp)
$uri .= ';transport=tcp';
$etag = '.';
$id = 754-web;
$status = away;
$extended_status = Belgian Beer Rocks;
$ttl = 3600;

$xml = ?xml version='1.0' encoding='UTF-8'?
presence xmlns='urn:ietf:params:xml:ns:pidf'
xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'
xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'
entity='pres:{{ $extension }}@{{ $realm }}'
tuple{{ if $id }} id='{{ $id }}'{{ /if }}
statusbasicopen/basic/status
contact priority='1'sip:{{ $extension }}@{{ $realm }}/contact
note{{ $extended_status|escape }}/note
/tuple
dm:person id='{{ $id }}-pid'
rpid:activitiesrpid:{{ $status }}//rpid:activi;

$args = array ($uri, $ttl, 'presence', 'application/pidf+xml', $etag, '.', 
$xml);
$path = implode ($args, ',');

$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL,
 http://127.0.0.1:8011/json/pua_publish?params=; . urlencode 
($path));
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_HTTP_VERSION, 1.1); 
curl_setopt($ch, CURLOPT_HTTPHEADER, array (Accept: application/json));
curl_setopt($ch, CURLOPT_TIMEOUT, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$s = curl_exec ($ch);
echo $s .  ici \n;

curl_close ($ch);
?


---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/552#issuecomment-58777___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [opensips] mi_xmlrpc_ng mi_json answer bug with pua_publish (#552)

2015-06-11 Thread Damien Sandrs
It seems mi_xmlrpc_ng  mi_json can not build the XMLRPC or JSON answer when 
the modules are used together with pua_publish.

Jun 11 15:55:45 golgoth05 opensips[31577]: 
DBG:mi_json:mi_json_answer_to_connection: got an async reply


Jun 11 15:55:45 golgoth05 opensips[31577]: DBG:httpd:answer_to_connection: 
MHD_create_response_from_callback
Jun 11 15:55:45 golgoth05 opensips[31577]: ERROR:mi_json:mi_json_flush_data: 
Unexpected NULL mi handler!

This Unexpected NULL mi handler when building the module response to the 
query happens with both modules.

Attached is a script that reproduces the error. The system should probably 
return a 500 Internal Server error. Please note that when I submit a wrong XML 
document using mi_json through a command-line telnet, it seems to work. But 
both XMLRPC and mi_json trigger the bug when being invoked from a PHP script. 
Perhaps there is a timing issue or something similar.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/552___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Feature Request: in acc allow setting variables for *_extra_bye after loose_route (#526)

2015-06-11 Thread rrb3942
Hey Vlad,

Thank you for the response. That will work great for me.

I still think that it is a bit  unintuitive that any variables after calling 
loose_route don't get accounted for, as loose_route tends to be one of the very 
first calls that will be made on a request with a totag (which a BYE is pretty 
much guaranteed to have).

The documentation should at least mention this, as I know it was not obvious to 
me when I first attempted to use it.

Thanks for your help.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/526#issuecomment-111208191___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] f6386c: core: adding unescape_xml() function helper to str...

2015-06-11 Thread Ovidiu Sas
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f6386ca9029fb56233ef1ac0b2cc2034d88e0928
  
https://github.com/OpenSIPS/opensips/commit/f6386ca9029fb56233ef1ac0b2cc2034d88e0928
  Author: Ovidiu Sas o...@voipembedded.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M strcommon.c
M strcommon.h

  Log Message:
  ---
  core: adding unescape_xml() function helper to strcommon.[ch]


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 845063: mi_xmlrpc_ng: unescape xml strings

2015-06-11 Thread Ovidiu Sas
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8450630617b2504ffdc4089f2500a26b4187e078
  
https://github.com/OpenSIPS/opensips/commit/8450630617b2504ffdc4089f2500a26b4187e078
  Author: Ovidiu Sas o...@voipembedded.com
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/mi_xmlrpc_ng/http_fnc.c

  Log Message:
  ---
  mi_xmlrpc_ng: unescape xml strings
 - related to bug #537


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


Re: [OpenSIPS-Devel] [opensips] mi_xmlrpc_ng suppresses \r\n (#537)

2015-06-11 Thread Ovidiu Sas
@staskobzar please re-test on the latest trunk. Make sure that you are at 
commit 8450630617b2504ffdc4089f2500a26b4187e078

You will need to escape at least \r with #38;#13;
You may or may not escape \n with #38;#10;

#!/usr/bin/env python

import xmlrpclib
opensips = xmlrpclib.ServerProxy('http://10.130.8.20:8000/RPC2')
headers=From: 
sip:7...@voip.etsmtl.ca;tag=8755a8d01aa27e903a6f4ccaf393f04#13;\nTo: 
sip:7...@voip.etsmtl.ca#13;#10;Event: check-sync#13;\n
opensips.t_uac_dlg('NOTIFY', 'sip:7...@campus.voip.etsmtl.ca', ., ., 
headers)


---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/537#issuecomment-111234316___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] mi_xmlrpc_ng suppresses \r\n (#537)

2015-06-11 Thread Stas Kobzar
@ovidiusas sorry, still have issues.
```
# opensips -V
version: opensips 1.11.5-notls (x86_64/linux)
flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, 
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
git revision: ca2711a
main.c compiled on 15:06:08 Jun 11 2015 with gcc 4.4.7
``` 

When I escape \r with amp;#13;, like this: 
```
headers=From: 
sip:7...@voip.etsmtl.ca;tag=8755a8d01aa27e903a6f4ccaf393f04#13;\nTo: 
sip:7...@voip.etsmtl.ca#13;\nEvent: check-sync#13;\n
```
I have error:
```
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:answer_to_connection: START *** cls=(nil), connection=0x19c0180, 
url=/RPC2, method=POST, versio=HTTP/1.0, upload_data[0]=(nil), *con_cls=(nil)
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:answer_to_connection: running MHD_create_post_processor
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:answer_to_connection: START *** cls=(nil), connection=0x19c0180, 
url=/RPC2, method=POST, versio=HTTP/1.0, upload_data[546]=0x19c7054, 
*con_cls=0x7fa1ea364d18
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:answer_to_connection: NOT a regular POST :o)
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:getConnectionHeader: Content-Type=text/xml
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:getConnectionHeader: Content-Length=546
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:answer_to_connection: got ContentType [1] with len [546]: ?xml 
version='1.0'?#012methodCall#012methodNamet_uac_dlg/methodName#012params#012param#012valuestringNOTIFY/string/value#012/param#012param#012valuestringsip:7...@campus.voip.etsmtl.ca/string/value#012/param#012param#012valuestring./string/value#012/param#012param#012valuestring./string/value#012/param#012param#012valuestringFrom:
 
lt;sip:7...@voip.etsmtl.cagt;;tag=8755a8d01aa27e903a6f4ccaf393f04amp;#13;#012To:
 lt;sip:7...@voip.etsmtl.cagt;amp;#13;#012Event: 
check-syncamp;#13;#012/string/value#012/param#012/params#012/methodCall#012\n
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:answer_to_connection: START *** cls=(nil), connection=0x19c0180, 
url=/RPC2, method=POST, versio=HTTP/1.0, upload_data[0]=(nil), 
*con_cls=0x7fa1ea364d18
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:answer_to_connection: normalised_url=[]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: START *** cls=(nil), 
connection=0x19c0180, url=, method=POST, versio=HTTP/1.0, upload_data[0]=(nil), 
*con_cls=0x7fa1ea364d50
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:httpd:httpd_get_val: DATA=[0x7fa1ea364d98] [0x7fa1ea364db8][0x7fa1ea364db9] 
[1]-[?xml 
version='1.0'?#012methodCall#012methodNamet_uac_dlg/methodName#012params#012param#012valuestringNOTIFY/string/value#012/param#012param#012valuestringsip:7...@campus.voip.etsmtl.ca/string/value#012/param#012param#012valuestring./string/value#012/param#012param#012valuestring./string/value#012/param#012param#012valuestringFrom:
 
lt;sip:7...@voip.etsmtl.cagt;;tag=8755a8d01aa27e903a6f4ccaf393f04amp;#13;#012To:
 lt;sip:7...@voip.etsmtl.cagt;amp;#13;#012Event: 
check-syncamp;#13;#012/string/value#012/param#012/params#012/methodCall#012]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got methodName=t_uac_dlg
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_build_async_handler: hdl [0x7fa1c2b40210], 
hdl-param [0x7fa1c2b40228], *hdl-param [(nil)] 
mi_xmlrpc_http_lock=[0x7fa1c29b1880]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got string param [NOTIFY]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got string param 
[sip:7...@campus.voip.etsmtl.ca]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got string param [.]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got string param [.]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got string param [From: 
sip:7...@voip.etsmtl.ca;tag=8755a8d01aa27e903a6f4ccaf393f04#13;#012To: 
sip:7...@voip.etsmtl.ca#13;#012Event: check-sync#13;#012]
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:core:parse_headers: flags=
Jun 11 15:35:36 grannos01 /opt/opensips/sbin/opensips[19851]: 
DBG:core:parse_to: spitting out [] in status 10
Jun 11 15:35:36 grannos01 

Re: [OpenSIPS-Devel] [opensips] Permission module partition support broken (#544)

2015-06-11 Thread Rik Broers
Works!
Thanks :+1: 

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/544#issuecomment-42831___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] mi_xmlrpc_ng suppresses \r\n (#537)

2015-06-11 Thread Ovidiu Sas
Of course you have issues.  I asked you to test on trunk, not on 1.11.
Please test on trunk, report back and then I will backport.


---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/537#issuecomment-111282784___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 44f740: Fix fixing hdr names shorter than 3 chars.

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 44f740b09dc16400e4522f58bdf3de7a60c9a883
  
https://github.com/OpenSIPS/opensips/commit/44f740b09dc16400e4522f58bdf3de7a60c9a883
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/sipmsgops/sipmsgops.c

  Log Message:
  ---
  Fix fixing hdr names shorter than 3 chars.

The fixup function fails to identify header names shorter than 3 (like To or 
short formats). This affected script functions like is_present_hf() or 
remove_hf().
Reported by Nick Altmann

(cherry picked from commit 1f7bae0915ac93ca231ede55c5540560e5489a7b)


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 1f7bae: Fix fixing hdr names shorter than 3 chars.

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 1f7bae0915ac93ca231ede55c5540560e5489a7b
  
https://github.com/OpenSIPS/opensips/commit/1f7bae0915ac93ca231ede55c5540560e5489a7b
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/sipmsgops/sipmsgops.c

  Log Message:
  ---
  Fix fixing hdr names shorter than 3 chars.

The fixup function fails to identify header names shorter than 3 (like To or 
short formats). This affected script functions like is_present_hf() or 
remove_hf().
Reported by Nick Altmann


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 97ecc0: Fix fixing hdr names shorter than 3 chars.

2015-06-11 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/1.10
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 97ecc098b1e522e1b95b6b368eb3e45af7fd9d9e
  
https://github.com/OpenSIPS/opensips/commit/97ecc098b1e522e1b95b6b368eb3e45af7fd9d9e
  Author: Bogdan-Andrei Iancu bog...@opensips.org
  Date:   2015-06-11 (Thu, 11 Jun 2015)

  Changed paths:
M modules/sipmsgops/sipmsgops.c

  Log Message:
  ---
  Fix fixing hdr names shorter than 3 chars.

The fixup function fails to identify header names shorter than 3 (like To or 
short formats). This affected script functions like is_present_hf() or 
remove_hf().
Reported by Nick Altmann

(cherry picked from commit 1f7bae0915ac93ca231ede55c5540560e5489a7b)

Conflicts:
modules/sipmsgops/sipmsgops.c


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