Re: [OpenSIPS-Users] SIP SDP rfc1918 address fix

2017-04-29 Thread Satish Patel
I kind of knew it what you going say ;-)  

Because of legacy changes we have to stick with it. 

Sent from my iPhone

> On Apr 28, 2017, at 9:39 AM, Bogdan-Andrei Iancu  wrote:
> 
> :-|  SER 0.10 ?? that's 12 year oldpart of history... cannot help with 
> that.
> 
> Try OpenSIPS 2.2 or 2.3
> 
> Regards,
> 
> Bogdan-Andrei Iancu
>  OpenSIPS Founder and Developer
>  http://www.opensips-solutions.com
> 
> OpenSIPS Summit May 2017 Amsterdam
>  http://www.opensips.org/events/Summit-2017Amsterdam.html
> 
>> On 04/28/2017 04:24 PM, Satish Patel wrote:
>> Unfortunately we are using SER 0.10
>> 
>> Sent from my iPhone
>> 
>>> On Apr 27, 2017, at 5:50 AM, Bogdan-Andrei Iancu  
>>> wrote:
>>> 
>>> Satish,
>>> 
>>> I do not fine the err log you mentioned ("extract_mediaip: no `c=' in SDP") 
>>> in the code of OpenSIPS - what version are you using ??
>>> 
>>> Also I tried to to inject your SDP into OpenSIPS 2.3 and I do not get the 
>>> any errors.
>>> 
>>> Regards,
>>> 
>>> Bogdan-Andrei Iancu
>>>  OpenSIPS Founder and Developer
>>>  http://www.opensips-solutions.com
>>> 
>>> OpenSIPS Summit May 2017 Amsterdam
>>>  http://www.opensips.org/events/Summit-2017Amsterdam.html
>>> 
 On 04/27/2017 03:43 AM, Satish Patel wrote:
 Yes, whenever fix_nated_sdp() fiction run it produce that error which I 
 mentioned in my previous email. Every single time.
 
 Sent from my iPhone
 
> On Apr 26, 2017, at 4:52 PM, Bogdan-Andrei Iancu  
> wrote:
> 
> So below is the SDP OpenSIPS receives (from network) and when doing 
> fix_nated_sdp() on that SDP leads to the "c=" errors ?
> 
> Regards,
> 
> Bogdan-Andrei Iancu
>  OpenSIPS Founder and Developer
>  http://www.opensips-solutions.com
> 
> OpenSIPS Summit May 2017 Amsterdam
>  http://www.opensips.org/events/Summit-2017Amsterdam.html
> 
>> On 04/26/2017 08:44 PM, Satish Patel wrote:
>> Here is my payload again we have custom application which is using SER
>> so some of them are custom values, This is the payload after i apply
>> fix_nated_sdp() function.
>> 
>> 
>> Max-Forwards: 16.
>> Content-Type: application/sdp.
>> Content-Length: 418.
>> Supported: path, 100rel.
>> P-hint: LOCAL.
>> P-hint: ALIASED OUTBOUND.
>> P-hint: DIRECT-RTP.
>> .
>> v=0.
>> o=user1 53655765 2353687637 IN IP4 192.168.1.8.
>> s=-.
>> c=IN IP4 173.71.121.4.
>> t=0 0.
>> m=audio 6000 RTP/AVP 0.
>> a=rtpmap:127 VANI/32000.
>> a=fmtp:127 ver=3;mode=3;sub-types=1,7;codecs=0x26.
>> a=rtpmap:111 SIREN14-3D/32000.
>> a=fmtp:111 bitrate=32000.
>> a=vx_payload_hdr_ver:2.
>> a=rtpmap:0 PCMU/8000.
>> a=vx_join_audio:1.
>> a=vx_join_text:0.
>> a=vx_jc:60.
>> a=setup:both.
>> a=vx_rtcp:0.
>> a=direction:active.
>> a=oldmediaip:192.168.1.8.
>> 
>> On Wed, Apr 26, 2017 at 6:18 AM, Bogdan-Andrei Iancu
>>  wrote:
>>> Hi Satish,
>>> 
>>> For the mime test, you can use the has_body() function:
>>> http://www.opensips.org/html/docs/modules/2.2.x/sipmsgops.html#idp3886992
>>> 
>>> About the error - could you post the actual SDP payload generating those
>>> errors ?
>>> 
>>> Regards,
>>> 
>>> Bogdan-Andrei Iancu
>>>   OpenSIPS Founder and Developer
>>>   http://www.opensips-solutions.com
>>> 
>>> OpenSIPS Summit May 2017 Amsterdam
>>>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>>> 
>>> 
 On 04/25/2017 10:35 PM, Satish Patel wrote:
 We have some custome Voice solution and in-house media server so right
 now i don't care about PORT all i need correct IP address.
 
 I have tried following and it fixed issue but i am seeing following
 error in logs
 
 if (method=="INVITE") {
  if(search("^Content-Type:.*application/sdp")) {
  fix_nated_sdp("3");
  };
 };
 
 
 Error:
 
 ERROR: extract_mediaip: no `c=' in SDP
 ERROR: extract_mediaip: no `c=' in SDP
 
 Do you know what does that means and how to fix that issue?
 
 On Mon, Apr 24, 2017 at 11:41 PM, Alex Balashov
  wrote:
> The intent of my questions was to get what you think about what you
> actually want to accomplish. fix_nated_sdp() allows you to replace the
> IP with the received signalling IP:
> 
> http://www.opensips.org/html/docs/modules/2.1.x/nathelper.html#id293899
> 
> But what about the port?
> 
>> On Mon, Apr 24, 2017 at 11:39:14PM -0400, Satish Patel wrote:
>> 
>> after google found bunch of post where people suggesting use
>> fix_nated_sdp()  is that right approach ?
>> 
>> On Mon, Apr 24, 2017 at 11:25 PM, Alex Balashov
>>  wrote:
>>>

[OpenSIPS-Users] Set Acc Module in 2.3

2017-04-29 Thread Dragomir Haralambiev
Hello,

I try to move from 2.2.3 to 2.3.
In 2.3 modparam("acc", "aaa_extra",... is removed.

In 2.2.3 I use extra data with:
modparam("acc", "aaa_extra",   "MV-System=$avp(system_name);
  MV-UserName=$fU;
  MV-Number=$rU;
  MV-Timestamp=$avp(timestamp)")

For 2.3 I rewrite to:
modparam("acc", "extra_fields", "aaa:$avp(system_name)->MV-System;
$fU->MV-UserName;
$rU->MV-Number;
$avp(timestamp)->MV-Timestamp")

When try to start 2.3 I receive follow message:

ERROR:acc:init_acc_aaa: acc: can't get code for the MV-System;...

How to use correct extra_fields in 2.3?

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