[OpenSIPS-Users] transformation

2014-06-06 Thread Mike Claudi Pedersen
if i want to transfrom a value like this

$var(FROMIP) = "xxx.xxx.xxx.xxx"

some transformation to allow me to cut the ip after the 3rd "." (full stop)

im thinking something like {s.select,x,y}
but im not sure how to define i want to use the 3rd full stop instead of
the first,

if i say $(var(FROMIP){s.select,-1,.}) or $(var(FROMIP){s.select,0,.}) both
seperates at the first "."

the result should be something like
$var(SHORTIP) = "xxx.xxx.xxx"
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

2014-06-06 Thread dpa
Hello Bogdan

 

What I can see in logs during test call 

"ERROR:aaa_radius:send_auth_func: radius authentication message failed with
ERROR"

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Thursday, June 05, 2014 6:20 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

-1 ret code means some internal error - check the opensips logs for any
error.

Regards,




Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:

Hello Bogdan

 

Sorry for long answer.

 

I changed opensips.cfg just a little

 

..

radius_send_auth("set1","set2");

 switch($rc){

 

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }

..

 

In log file I see 

"Jun  3 07:19:13 opensips-mirror
/usr/local/opensipsdev/sbin/opensips[14956]: Case -1 in radius route
detected"

 

Meanwhile tcpdump shows that radius server answers "Rejected" on the
request.  

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Thursday, May 29, 2014 11:26 AM
To: OpenSIPS users mailling list; Denis Putyato
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

On each "case", please an "xlog" to print something from the script - in
this way you can double check which way your script went. Or, you can use
the script_trace() function to do that . See:
http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42

Regards,




Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 29.05.2014 09:22, dpa wrote:



Hello!

 

I have such configuration in opensips.cfg

..

radius_send_auth("set1","set2");

 switch($rc){

 

 case -2:

 exec_msg("echo '$avp(500) $rU $time(%c) rejected' >>
/opensips/alarmradius.txt");

 break;

 

 case -1:

 exec_msg("echo '$avp(500) $rU $time(%c) radius' >>
/opensips/alarmradius.txt");

 break;

 

   }

.

In attachment you can see communication of Opensips with radius server
during making some test call (1.1.1.1 - Opensips, 2.2.2.2 - radius server)

 

After making a test call i see in alarmradius.txt record with "radius" word.

The question is why do I see "radius" word (and it means that Opensips
detected "retcode -1") but not "rejected" ("retcode -2") word? 

 

Thank you for any help.

 







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

 

 

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


Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

2014-06-06 Thread Bogdan-Andrei Iancu

Hi,

The libradius returns the error via the rc_auth() function.I notices a 
bit of an inconsistency in the handling of the retcode of rc_auth() - 
old stuff :).


You say you see a REJECT and the RADIUS level, right ?

Could you please try the attached patchand see if the failures are 
properly reported to the script.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 11:27, dpa wrote:


Hello Bogdan

What I can see in logs during test call

"ERROR:aaa_radius:send_auth_func: radius authentication message failed 
with ERROR"


*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Thursday, June 05, 2014 6:20 PM
*To:* dpa; 'OpenSIPS users mailling list'
*Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

Hi,

-1 ret code means some internal error - check the opensips logs for 
any error.


Regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:

Hello Bogdan

Sorry for long answer.

I changed opensips.cfg just a little



radius_send_auth("set1","set2");

 switch($rc){

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }




diff --git a/modules/aaa_radius/aaa_radius.c b/modules/aaa_radius/aaa_radius.c
index 5e2c856..e1a3c71 100644
--- a/modules/aaa_radius/aaa_radius.c
+++ b/modules/aaa_radius/aaa_radius.c
@@ -329,9 +329,9 @@ int send_auth_func(struct sip_msg* msg, str* s1, str* s2) {
 	}
 
 	res = rc_auth(rh, SIP_PORT, send, &recv, mess);
-	if (res!=OK_RC && res!=BADRESP_RC) {
+	if (res!=OK_RC && res!=REJECT_RC) {
 		LM_ERR("radius authentication message failed with %s\n",
-			(res==TIMEOUT_RC)?"TIMEOUT":"ERROR");
+			(res==TIMEOUT_RC)?"TIMEOUT":((res==BADRESP_RC)?"BAD REPLY":"ERROR"));
 	}else{
 		LM_DBG("radius authentication message sent\n");
 	}
@@ -362,7 +362,7 @@ int send_auth_func(struct sip_msg* msg, str* s1, str* s2) {
 		for(; (vp = rc_avpair_get(vp, attr->value, 0)); vp = vp->next)
 			extract_avp(vp);
 
-	if ( res!=OK_RC && res!=BADRESP_RC)
+	if ( res!=OK_RC && res!=REJECT_RC)
 		goto error;
 	
 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RabbitMQ Timer Route Not Working

2014-06-06 Thread Răzvan Crainea

Hi, Kneeoh!

Currently the event_rabbitmq module does not need expiration. Since it 
is a connection oriented protocol, if the external application does not 
want to receive messages any more, it should close the connection. If 
you really need the expire feature in the near future, please open a 
ticket for it[1].


Changing the RabbitMQ servers is not that easy as it looks. You can't 
transparently simply change the connection to a different server, 
because you have to re-do the handshake (like authentication) with the 
new server. Therefore, the only method to fallback to a different server 
is to close the ongoing connection and open a new one.


If you need to unsubscribe a server, the following snippet should work:

subscribe_event("E_ACC_CDR", "rabbitmq:cdr:rabbit@192.168.2.30/cdr1", 0)

[1] 
https://github.com/OpenSIPS/opensips/issues?direction=desc&sort=created&state=open


Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 06/05/2014 11:00 PM, Kneeoh wrote:

That's correct, I move the ip via corosync by disabling the active node. 
Corosync does the moving automatically. The subscriber list never changes, and 
its odd that expire=never when I have it set to 5 in the opensips subscribe 
command.

root@opensips:/var/log# opensipsctl fifo subscribers_list
Event:: E_ACC_EVENT id=6
 Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/cdr1 expire=never
Event:: E_ACC_CDR id=7
 Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/cdr1 expire=never
Event:: E_ACC_MISSED_EVENT id=8
 Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/cdr1 expire=never
Event:: E_CHANNEL_LIMIT id=9
 Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/limits expire=never
Event:: E_CPS_LIMIT id=10
 Subscriber::  socket=rabbitmq:rabbitmq@192.168.2.30/limits expire=never


I think it may have to do with the fact that the subscription to rabbit comes 
from the local IP of the haproxy not the VIP. Opensips talks to the VIP, the 
local IP on the proxy is what shows up on RabbitMQ as the channel. I would 
think this would resolve via the resubscription I'm doing in the timer route, 
but it's not.

opensips
  |
  |
192.168.2.30 (haproxy VIP)
  /   \
 / \
192.168.2.31 (haproxy01)192.168.2.32 (haproxy02)
\/
 \  /   
 RabbitMQ01
 RabbitMQ02
 RabbitMQ03


On Thursday, June 5, 2014 11:33 AM, Bogdan-Andrei Iancu  
wrote:
So it seems the subscribing works fine. You can check that via the
"subscribers_list" MI command (see
http://www.opensips.org/Documentation/Interface-CoreMI-1-11#toc18).

The problem is when the actual event is generated - it looks like it
cannot be delivered via the rabbitmq driver. What you do is you move the
IP of the HAproxy on a different machine ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com




On 05.06.2014 17:31, Kneeoh wrote:

Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: Subscribing to CPS 
Event
Jun  5 14:19:24 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Enforcing Limits
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Account Channel Limit 
OK. Channels Up: 0 Channel Limit: 1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19020]: Call Rejected due to 
Account CPS Limit. CPS Limit: 0
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to CDR 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to ACC 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to MISSED 
Event
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: 
DBG:event_rabbitmq:rmq_match: socket matched: rabbitmq@192.168.2.30:5672/cdr1
Jun  5 14:19:29 opensips /usr/local/sbin/opensips[19027]: Subscribing to 
CHANNEL Event
Jun  5 14:19:29 opensips 

Re: [OpenSIPS-Users] transformation

2014-06-06 Thread kostenftw
dont mind this issue, I found a fix



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/transformation-tp7591741p7591745.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 1.10.1 and radius problem

2014-06-06 Thread dpa
Hello Bogdan

 

Yes, I see reject.

 

I will try the patch and let you know about the result

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Friday, June 06, 2014 1:21 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

The libradius returns the error via the rc_auth() function. I notices a bit
of an inconsistency in the handling of the retcode of rc_auth() - old stuff
:).

You say you see a REJECT and the RADIUS level, right ?

Could you please try the attached patch and see if the failures are properly
reported to the script.

Regards,



Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 11:27, dpa wrote:

Hello Bogdan

 

What I can see in logs during test call 

"ERROR:aaa_radius:send_auth_func: radius authentication message failed with
ERROR"

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Thursday, June 05, 2014 6:20 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

-1 ret code means some internal error - check the opensips logs for any
error.

Regards,





Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:

Hello Bogdan

 

Sorry for long answer.

 

I changed opensips.cfg just a little

 

..

radius_send_auth("set1","set2");

 switch($rc){

 

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }

 

 

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


[OpenSIPS-Users] RTPproxy errors

2014-06-06 Thread Rik Broers
These errors suddenly appear after an update from 1.8 to 1.10.1
Script is unchanged.

Audio/RTP seems to work in almost all the cases that this error comes.

ERROR:rtpproxy:force_rtp_proxy: can't extract reply destination from 
transaction/reply_via2



RTPProxy logs the following:
rtpproxy[8051]: ERR:handle_command: unknown command modifier `R'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `9'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `2'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `6'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `2'
rtpproxy[8051]: ERR:handle_command: unknown command modifier `7'
rtpproxy[8051]: ERR:handle_command: getaddrinfo: Address family for hostname 
not supported

What strikes me is that one character is missing everytime this comes up, in 
the second octet in all cases this is logged the last number is missing.
In the Traces the SDP is complete.
What does the R mean? I'm not using recording from my script in any way. I use 
RIEW/REIW combinations on rtpproxy_offer and rtpporxy_answer which have always 
worked before.

Why does it throw these errors now? And what can I do to fix them.

Kind regards,
Vriendelijke groet,

Rik Broers
Voice Engineer

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


Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

2014-06-06 Thread dpa
Unfortunately it doesn`t help.

 

I tried the patch (make command I gave from "module/aaa_radius" directory).

A test call shows 

"Jun  6 13:57:42 opensips-mirror /usr/local/opensipsdev/sbin/opensips[4297]:
ERROR:aaa_radius:send_auth_func: radius authentication message failed with
ERROR

Jun  6 13:57:42 opensips-mirror /usr/local/opensipsdev/sbin/opensips[4297]:
Case -1 in radius route detected" 

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Friday, June 06, 2014 1:21 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

The libradius returns the error via the rc_auth() function. I notices a bit
of an inconsistency in the handling of the retcode of rc_auth() - old stuff
:).

You say you see a REJECT and the RADIUS level, right ?

Could you please try the attached patch and see if the failures are properly
reported to the script.

Regards,



Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 11:27, dpa wrote:

Hello Bogdan

 

What I can see in logs during test call 

"ERROR:aaa_radius:send_auth_func: radius authentication message failed with
ERROR"

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Thursday, June 05, 2014 6:20 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

-1 ret code means some internal error - check the opensips logs for any
error.

Regards,





Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:

Hello Bogdan

 

Sorry for long answer.

 

I changed opensips.cfg just a little

 

..

radius_send_auth("set1","set2");

 switch($rc){

 

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }

 

 

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


Re: [OpenSIPS-Users] opensips crash with location data

2014-06-06 Thread Bogdan-Andrei Iancu

Hi Pasan,

OK, the online docs were fixed, thank for the notice.

The backtrace points to the "cflags" field - this was changed from "int" 
to "string" - and you did not made the correct change in your table 
definition. This causes the crash.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 06:18, Pasan Meemaduma wrote:

Hi Bogdan,

Thanks for the reply. I created the table using normal schema it looks 
fine to me. I was refering to the old url you gave me. There in that 
table attr was missing :)


this is the url missing attr in location table
http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254


below is my table schema,

mysql> desc location;
+---+--+--+-+-++
| Field | Type | Null | Key | Default 
| Extra  |

+---+--+--+-+-++
| id| int(10) unsigned | NO   | PRI | NULL
| auto_increment |
| username  | char(64) | NO   | MUL | 
||
| domain| char(64) | YES  | | NULL
||
| contact   | char(255)| NO   | | 
||
| received  | char(128)| YES  | | NULL
||
| path  | char(128)| YES  | | NULL
||
| expires   | datetime | NO   | | 2020-05-28 21:32:15 
||
| q | float(10,2)  | NO   | | 1.00
||
| callid| char(255)| NO   | | Default-Call-ID 
||
| cseq  | int(11)  | NO   | | 13  
||
| last_modified | datetime | NO   | | 1900-01-01 00:00:01 
||
| flags | int(11)  | NO   | | 0   
||
| cflags| int(11)  | NO   | | 0   
||
| user_agent| char(255)| NO   | | 
||
| socket| char(64) | YES  | | NULL
||
| methods   | int(11)  | YES  | | NULL
||
| sip_instance  | char(255)| YES  | | NULL
||
| attr  | char(255)| YES  | | NULL
||

+---+--+--+-+-++


attr holds NULL values for all entries.

do I have to run below in gdb after running bt full right ?

this is what i got

(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info (contact=0x7fffe0246180, 
vals=0x7f648287a260) at udomain.c:306

306in udomain.c
(gdb) p (vals+6)->val.string_val
$2 = 0x0
(gdb)


-without running bt full - just in case :)
(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info (contact=0x7fffe0246180, 
vals=0x7f648287a260) at udomain.c:306

306udomain.c: No such file or directory.
(gdb) p (vals+6)->val.string_val
$1 = 0x0






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


Re: [OpenSIPS-Users] opensips crash with location data

2014-06-06 Thread Bogdan-Andrei Iancu

no, it is not related to that :) - see my previous email.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 06:35, Pasan Meemaduma wrote:

Hi Bogdan,

I just found that I have got the key constraint wrong. Will that be 
the issue ?


| location | CREATE TABLE `location` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` char(64) NOT NULL DEFAULT '',
  `domain` char(64) DEFAULT NULL,
  `contact` char(255) NOT NULL DEFAULT '',
  `received` char(128) DEFAULT NULL,
  `path` char(128) DEFAULT NULL,
  `expires` datetime NOT NULL DEFAULT '2020-05-28 21:32:15',
  `q` float(10,2) NOT NULL DEFAULT '1.00',
  `callid` char(255) NOT NULL DEFAULT 'Default-Call-ID',
  `cseq` int(11) NOT NULL DEFAULT '13',
  `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  `flags` int(11) NOT NULL DEFAULT '0',
  `cflags` int(11) NOT NULL DEFAULT '0',
  `user_agent` char(255) NOT NULL DEFAULT '',
  `socket` char(64) DEFAULT NULL,
  `methods` int(11) DEFAULT NULL,
  `sip_instance` char(255) DEFAULT NULL,
  `attr` char(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_contact_idx` (`username`,`domain`,`contact`)
) ENGINE=MyISAM AUTO_INCREMENT=25375081 DEFAULT CHARSET=latin1 |

account_contact_idx is missing callid column. Will this has any 
relation to crash ?



On Friday, 6 June 2014, 8:48, Pasan Meemaduma  wrote:


Hi Bogdan,

Thanks for the reply. I created the table using normal schema it looks 
fine to me. I was refering to the old url you gave me. There in that 
table attr was missing :)


this is the url missing attr in location table
http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254


below is my table schema,

mysql> desc location;
+---+--+--+-+-++
| Field | Type | Null | Key | Default 
| Extra  |

+---+--+--+-+-++
| id| int(10) unsigned | NO   | PRI | NULL
| auto_increment |
| username  | char(64) | NO   | MUL | 
||
| domain| char(64) | YES | | NULL
||
| contact   | char(255)| NO | | 
||
| received  | char(128)| YES | | NULL
||
| path  | char(128)| YES | | NULL
||
| expires   | datetime | NO | | 2020-05-28 21:32:15 
||
| q | float(10,2)  | NO | | 1.00
||
| callid| char(255)| NO | | Default-Call-ID 
||
| cseq  | int(11)  | NO | | 13  
||
| last_modified | datetime | NO | | 1900-01-01 00:00:01 
||
| flags | int(11)  | NO | | 0   
||
| cflags| int(11)  | NO | | 0   
||
| user_agent| char(255)| NO | | 
||
| socket| char(64) | YES | | NULL
||
| methods   | int(11)  | YES | | NULL
||
| sip_instance  | char(255)| YES | | NULL
||
| attr  | char(255)| YES | | NULL
||

+---+--+--+-+-++


attr holds NULL values for all entries.

do I have to run below in gdb after running bt full right ?

this is what i got

(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info (contact=0x7fffe0246180, 
vals=0x7f648287a260) at udomain.c:306

306in udomain.c
(gdb) p (vals+6)->val.string_val
$2 = 0x0
(gdb)


-without running bt full - just in case :)
(gdb) f 1
#1  0x7f64823a60a2 in dbrow2info (contact=0x7fffe0246180, 
vals=0x7f648287a260) at udomain.c:306

306udomain.c: No such file or directory.
(gdb) p (vals+6)->val.string_val
$1 = 0x0



On Thursday, 5 June 2014, 17:07, Bogdan-Andrei Iancu 
 wrote:



Thanks for the backtrace. In DB, what do you have for the "attr" value 
? NULL or an empty string ?


In gdb, could you do:
f 1
p (vals+6)->val.string_val

Thanks,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com  
On 05.06.2014 06:15, Pasan Meemaduma wrote:


oops sorry I forgot opensips-dbg :) bt reattached.

I have change some sensitive values with 'x' as below, hope it wont 
affect u r investigations


contact = {s = 0xf91eab "sip:xxx...@xxx.xxx.xxx.xx" 
, len = 29}



On Thursday, 5 June 2014, 8:34, Pasan Meem

[OpenSIPS-Users] Req. for increase the opensips thread limit

2014-06-06 Thread Muralidhar Reddy Narra
Hi,

I would like to know how to increase the opensips thread limit. please
respond me as soon as possible.

-- 
Thanks & Regards,
N.Muralidhar Reddy,
919094494901.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] contact with maddr in 3xx response from opensips

2014-06-06 Thread Kumar Abhishek
Hi

I want to deploy opensips as redirect server , returning 301 with FQDN in
contact wit maddr, for any message ite recieves.
Could you please help me pot.

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


Re: [OpenSIPS-Users] Req. for increase the opensips thread limit

2014-06-06 Thread Bogdan-Andrei Iancu

Hi,

See the "children" option :
http://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc31

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 09:32, Muralidhar Reddy Narra wrote:

Hi,

I would like to know how to increase the opensips thread limit. please 
respond me as soon as possible.


--
Thanks & Regards,
N.Muralidhar Reddy,
919094494901.


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


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


Re: [OpenSIPS-Users] RTPproxy errors

2014-06-06 Thread Răzvan Crainea

Hi, Rik!

The R flag indicates that the IP advertised in SDP should be trusted.
Can you increase the debugging level of rtpproxy to DEBUG? This way we 
can see exactly what commands are sent by OpenSIPS and check what's 
wrong with them.


Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 06/06/2014 12:37 PM, Rik Broers wrote:

These errors suddenly appear after an update from 1.8 to 1.10.1

Script is unchanged.

Audio/RTP seems to work in almost all the cases that this error comes.

ERROR:rtpproxy:force_rtp_proxy: can't extract reply destination from
transaction/reply_via2

RTPProxy logs the following:

rtpproxy[8051]: ERR:handle_command: unknown command modifier `R'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `9'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `2'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `6'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `2'

rtpproxy[8051]: ERR:handle_command: unknown command modifier `7'

rtpproxy[8051]: ERR:handle_command: getaddrinfo: Address family for
hostname not supported

What strikes me is that one character is missing everytime this comes
up, in the second octet in all cases this is logged the last number is
missing.

In the Traces the SDP is complete.

What does the R mean? I’m not using recording from my script in any way.
I use RIEW/REIW combinations on rtpproxy_offer and rtpporxy_answer which
have always worked before.

Why does it throw these errors now? And what can I do to fix them.

Kind regards,

Vriendelijke groet,

*Rik Broers*
Voice Engineer



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



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


Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

2014-06-06 Thread Bogdan-Andrei Iancu

Strange...
Could you directly add in your modules/aaa_radius/aaa_radius.c file, 
after line 331 which is:

res = rc_auth(rh, SIP_PORT, send, &recv, mess);
and extra log:
LM_ERR("rc_auth returned %d\n",res);

Recompile and run again - let's see exactly what the libradius has to 
return :).


Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 13:00, dpa wrote:


Unfortunately it doesn`t help.

I tried the patch (make command I gave from "module/aaa_radius" 
directory).


A test call shows

"Jun  6 13:57:42 opensips-mirror 
/usr/local/opensipsdev/sbin/opensips[4297]: 
ERROR:aaa_radius:send_auth_func: radius authentication message failed 
with ERROR


Jun  6 13:57:42 opensips-mirror 
/usr/local/opensipsdev/sbin/opensips[4297]: Case -1 in radius route 
detected"


*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Friday, June 06, 2014 1:21 PM
*To:* dpa; 'OpenSIPS users mailling list'
*Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

Hi,

The libradius returns the error via the rc_auth() function. I notices 
a bit of an inconsistency in the handling of the retcode of rc_auth() 
- old stuff :).


You say you see a REJECT and the RADIUS level, right ?

Could you please try the attached patch and see if the failures are 
properly reported to the script.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 11:27, dpa wrote:

Hello Bogdan

What I can see in logs during test call

"ERROR:aaa_radius:send_auth_func: radius authentication message
failed with ERROR"

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Thursday, June 05, 2014 6:20 PM
*To:* dpa; 'OpenSIPS users mailling list'
*Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

Hi,

-1 ret code means some internal error - check the opensips logs
for any error.

Regards,



Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:

Hello Bogdan

Sorry for long answer.

I changed opensips.cfg just a little



radius_send_auth("set1","set2");

 switch($rc){

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }



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


Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

2014-06-06 Thread dpa
Sorry, Bogdan

 

I missed one moment during starting opensips (I used wrong directory for
opensips modules)

The patch fixed the main problem. 

Now I see "retcode -2".

 

Thank you very much!

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Friday, June 06, 2014 3:38 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Strange...
Could you directly add in your modules/aaa_radius/aaa_radius.c file, after
line 331 which is:
res = rc_auth(rh, SIP_PORT, send, &recv, mess);
and extra log:
LM_ERR("rc_auth returned %d\n",res);

Recompile and run again - let's see exactly what the libradius has to return
:).

Thanks,



Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 13:00, dpa wrote:

Unfortunately it doesn`t help.

 

I tried the patch (make command I gave from "module/aaa_radius" directory).

A test call shows 

"Jun  6 13:57:42 opensips-mirror /usr/local/opensipsdev/sbin/opensips[4297]:
ERROR:aaa_radius:send_auth_func: radius authentication message failed with
ERROR

Jun  6 13:57:42 opensips-mirror /usr/local/opensipsdev/sbin/opensips[4297]:
Case -1 in radius route detected" 

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Friday, June 06, 2014 1:21 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

The libradius returns the error via the rc_auth() function. I notices a bit
of an inconsistency in the handling of the retcode of rc_auth() - old stuff
:).

You say you see a REJECT and the RADIUS level, right ?

Could you please try the attached patch and see if the failures are properly
reported to the script.

Regards,




Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 11:27, dpa wrote:

Hello Bogdan

 

What I can see in logs during test call 

"ERROR:aaa_radius:send_auth_func: radius authentication message failed with
ERROR"

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Thursday, June 05, 2014 6:20 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

 

Hi,

-1 ret code means some internal error - check the opensips logs for any
error.

Regards,






Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:

Hello Bogdan

 

Sorry for long answer.

 

I changed opensips.cfg just a little

 

..

radius_send_auth("set1","set2");

 switch($rc){

 

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }

 

 

 

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


Re: [OpenSIPS-Users] RTPproxy errors

2014-06-06 Thread Rik Broers
I've sent you some Debug logs on a separate mail.

Kind Regards,
Met vriendelijke groet,
 
Rik Broers
 


-Oorspronkelijk bericht-
Van: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] 
Namens Razvan Crainea
Verzonden: vrijdag 6 juni 2014 13:37
Aan: users@lists.opensips.org
Onderwerp: Re: [OpenSIPS-Users] RTPproxy errors

Hi, Rik!

The R flag indicates that the IP advertised in SDP should be trusted.
Can you increase the debugging level of rtpproxy to DEBUG? This way we can see 
exactly what commands are sent by OpenSIPS and check what's wrong with them.

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 06/06/2014 12:37 PM, Rik Broers wrote:
> These errors suddenly appear after an update from 1.8 to 1.10.1
>
> Script is unchanged.
>
> Audio/RTP seems to work in almost all the cases that this error comes.
>
> ERROR:rtpproxy:force_rtp_proxy: can't extract reply destination from
> transaction/reply_via2
>
> RTPProxy logs the following:
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `R'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `9'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `2'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `6'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `1'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `.'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `2'
>
> rtpproxy[8051]: ERR:handle_command: unknown command modifier `7'
>
> rtpproxy[8051]: ERR:handle_command: getaddrinfo: Address family for 
> hostname not supported
>
> What strikes me is that one character is missing everytime this comes 
> up, in the second octet in all cases this is logged the last number is 
> missing.
>
> In the Traces the SDP is complete.
>
> What does the R mean? I’m not using recording from my script in any way.
> I use RIEW/REIW combinations on rtpproxy_offer and rtpporxy_answer 
> which have always worked before.
>
> Why does it throw these errors now? And what can I do to fix them.
>
> Kind regards,
>
> Vriendelijke groet,
>
> *Rik Broers*
> Voice Engineer
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

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


Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

2014-06-06 Thread Bogdan-Andrei Iancu

Thanks for report and testing !

I pushed the fix on GIT on all maintained versions.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 15:14, dpa wrote:


Sorry, Bogdan

I missed one moment during starting opensips (I used wrong directory 
for opensips modules)


The patch fixed the main problem.

Now I see "retcode -2".

Thank you very much!

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Friday, June 06, 2014 3:38 PM
*To:* dpa; 'OpenSIPS users mailling list'
*Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

Strange...
Could you directly add in your modules/aaa_radius/aaa_radius.c file, 
after line 331 which is:

res = rc_auth(rh, SIP_PORT, send, &recv, mess);
and extra log:
LM_ERR("rc_auth returned %d\n",res);

Recompile and run again - let's see exactly what the libradius has to 
return :).


Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 13:00, dpa wrote:

Unfortunately it doesn`t help.

I tried the patch (make command I gave from "module/aaa_radius"
directory).

A test call shows

"Jun  6 13:57:42 opensips-mirror
/usr/local/opensipsdev/sbin/opensips[4297]:
ERROR:aaa_radius:send_auth_func: radius authentication message
failed with ERROR

Jun  6 13:57:42 opensips-mirror
/usr/local/opensipsdev/sbin/opensips[4297]: Case -1 in radius
route detected"

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Friday, June 06, 2014 1:21 PM
*To:* dpa; 'OpenSIPS users mailling list'
*Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

Hi,

The libradius returns the error via the rc_auth() function. I
notices a bit of an inconsistency in the handling of the retcode
of rc_auth() - old stuff :).

You say you see a REJECT and the RADIUS level, right ?

Could you please try the attached patch and see if the failures
are properly reported to the script.

Regards,


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 06.06.2014 11:27, dpa wrote:

Hello Bogdan

What I can see in logs during test call

"ERROR:aaa_radius:send_auth_func: radius authentication
message failed with ERROR"

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Thursday, June 05, 2014 6:20 PM
*To:* dpa; 'OpenSIPS users mailling list'
*Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem

Hi,

-1 ret code means some internal error - check the opensips
logs for any error.

Regards,




Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03.06.2014 07:01, dpa wrote:

Hello Bogdan

Sorry for long answer.

I changed opensips.cfg just a little



radius_send_auth("set1","set2");

 switch($rc){

 case -2:

 xlog ("Case -2 in radius route detected");

 break;

 case -1:

 xlog ("Case -1 in radius route detected");

 break;

   }



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


Re: [OpenSIPS-Users] contact with maddr in 3xx response from opensips

2014-06-06 Thread Bogdan-Andrei Iancu

Hi,

See here an example on how to do it:
https://github.com/OpenSIPS/opensips/blob/master/examples/redirect.cfg

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.06.2014 16:46, Kumar Abhishek wrote:

Hi

I want to deploy opensips as redirect server , returning 301 with FQDN 
in contact wit maddr, for any message ite recieves.

Could you please help me pot.

--
Regards
Kumar Abhishek


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


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


Re: [OpenSIPS-Users] RabbitMQ Timer Route Not Working

2014-06-06 Thread Kneeoh
Hi Razvan, thank you for the reply. I don't necessarily need expiration of 
subscriptions to rabbit or the timer route per se. I'm just trying to figure 
out (with the existing capabilities) how to make opensips fail to another 
member in the rabbit cluster in the event that the current node dies. My first 
thought was that you could simply stack entry points like:

subscribe_event("E_ACC_CDR", 
"rabbitmq:rabbitmq:rabbit@192.168.2.30;rabbitmq:rabbit@192.168.2.31;rabbitmq:rabbit@192.168.2.33/cdr1")

However, it sounds like that's not in the present implementation of the rabbit 
module. 

So my second thought was to trick opensips and put HAProxy between it and 
Rabbit, which works, but if I fail an HAProxy via corosync to the other HAproxy 
something with the subscription breaks. Since it looked like the two options 
were either put the subscribes in the startup route (only happens once so 
probably won't failover) OR use the timer route to subscribe (which is what i'm 
doing) I figured that in the event of an HAProxy failure, I might miss a few 
messages but on the next timer fire opensips would resubscribe to haproxy which 
would relay that to the appropriate rabbit server (I haven't failed over any 
rabbit servers in this scenario so haproxy2 is talking to the same rabbit 
server as haproxy1. All i'm doing is killing haproxy1 right now and letting the 
VIP go to haproxy2). However it doesn't look like this is working and I can't 
tell if its because the subscription isn't happening, OR it is happening but 
opensips sees it already exists in the
 subscribers list and does nothing (I think this is the case). If this IS the 
case perhaps a solution would be to kill the subscriber entry on new subscribe. 
If I'm way off, let me know, I'd really like to figure this out. Am I going 
about this all wrong? How would you handle a rabbit node failure?

Regards

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


[OpenSIPS-Users] rtpproxy_offer() adds IP and Port twice in SDP

2014-06-06 Thread kaushik parmar
Hello,

rtpproxy_offer() set IP and Port numbers twice in SDP. My code and SDP
output are as below.

*Opensips.cfg*

onreply_route[handle_nat] {
if (is_method("INVITE") && has_body("application/sdp"))
{
 rtpproxy_offer();
}
}



*SDP Packet : *

*SDP Before rtpproxy_offer(); *

v=0
o=Sippy 44829008 1 IN IP4  yy.yy.yy.yy
s=-
t=0 0
m=audio 46946 RTP/AVP 110 0 8 3 101
c=IN IP4 yy.yy.yy.yy
a=rtpmap:110 speex/8000
a=fmtp:110 mode=3;vbr=on
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 gsm/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=silenceSupp:off - - - -

*SDP After rtpproxy_offer(); *

v=0
o=Sippy 44829008 1 IN IP4 xx.xx.xx.xx
s=-
t=0 0
m=audio 40240 40240 RTP/AVP 110 0 8 3 101
c=IN IP4 xx.xx.xx.xx xx.xx.xx.xx
a=rtpmap:110 speex/8000
a=fmtp:110 mode=3;vbr=on
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 gsm/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=silenceSupp:off - - - -
a=oldmediaip:yy.yy.yy.yy
a=oldmediaip:yy.yy.yy.yy
a=nortpproxy:yes
a=nortpproxy:yes

Please help to resolve issue for Double IP and Port in SDP.


-- 
Kind regards,

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


Re: [OpenSIPS-Users] rtpproxy_offer() adds IP and Port twice in SDP

2014-06-06 Thread Bogdan-Andrei Iancu

Hello,

Check your script, for sure you do the rtpproxy_offer twice for that SIP 
message.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 19:03, kaushik parmar wrote:

Hello,

rtpproxy_offer() set IP and Port numbers twice in SDP. My code and SDP 
output are as below.


*Opensips.cfg*

onreply_route[handle_nat] {
if (is_method("INVITE") && has_body("application/sdp"))
{
 rtpproxy_offer();
}
}



*SDP Packet : *

*SDP Before rtpproxy_offer(); *
*
*
v=0
o=Sippy 44829008 1 IN IP4  yy.yy.yy.yy
s=-
t=0 0
m=audio 46946 RTP/AVP 110 0 8 3 101
c=IN IP4 yy.yy.yy.yy
a=rtpmap:110 speex/8000
a=fmtp:110 mode=3;vbr=on
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 gsm/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=silenceSupp:off - - - -

*SDP After rtpproxy_offer(); **
*

v=0
o=Sippy 44829008 1 IN IP4 xx.xx.xx.xx
s=-
t=0 0
m=audio 40240 40240 RTP/AVP 110 0 8 3 101
c=IN IP4 xx.xx.xx.xx xx.xx.xx.xx
a=rtpmap:110 speex/8000
a=fmtp:110 mode=3;vbr=on
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 gsm/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=silenceSupp:off - - - -
a=oldmediaip:yy.yy.yy.yy
a=oldmediaip:yy.yy.yy.yy
a=nortpproxy:yes
a=nortpproxy:yes

Please help to resolve issue for Double IP and Port in SDP.


--
Kind regards,

Kaushik Parmar


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


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