[SR-Users] Header field Contact not changed on kamailio 4.2

2015-05-25 Thread Зуев Михаил


Hi all, 

I need to modify the host part of a contact header. I'm trying
something like: 

route { 

 . 

 if (remove_hf("Contact")){ 

 if
(insert_hf("Contact: rn", "Contact")) 

 xlog("Contact modified"); 

 } 


if (!t_relay("YYY.YYY.YYY.YYY","5060")) { 

 sl_reply_error(); 

 } 


.. 

} 

When i look SIP DUMP on YYY.YYY.YYY.YYY side i see older
Contact field. 

I try subst_hf with regexp, subst and simply remove
Contact, all this does not work. 

What i am doing wrong?  

-- 

С
уважением Зуев Михаил
 ___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] dbcassandra schema files

2015-05-25 Thread jay binks
Hi all,

Im wondering if anyone can share their schema files for dbcassandra.

Ive managed to construct a bunch based on what ive found in git, wiki all
over the place,
I just want to compare my ones, with some others.

specifically the location table.

-- 
Sincerely

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


Re: [SR-Users] Issue with SNMPstats

2015-05-25 Thread Igor Potjevlesch
Hello,

With dlg_manage(); works.

Thank you,

Regards,


2015-05-25 17:50 GMT+02:00 Igor Potjevlesch :

> Hello,
>
> I have already put:
>
> modparam("dialog", "dlg_flag", 4)
>
> But I cannot see anything so I should put the dlg_amange() function right?
>
> Thanks and regards,
>
>
> 2015-05-25 17:21 GMT+02:00 ycaner :
>
>> Hello;
>>
>> Try to set dialog flag. you can do it with dlg_manage() function.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://sip-router.1086192.n5.nabble.com/Issue-with-SNMPstats-tp138131p138142.html
>> Sent from the Users mailing list archive at Nabble.com.
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Issue with SNMPstats

2015-05-25 Thread Igor Potjevlesch
Hello,

I have already put:

modparam("dialog", "dlg_flag", 4)

But I cannot see anything so I should put the dlg_amange() function right?

Thanks and regards,


2015-05-25 17:21 GMT+02:00 ycaner :

> Hello;
>
> Try to set dialog flag. you can do it with dlg_manage() function.
>
>
>
>
> --
> View this message in context:
> http://sip-router.1086192.n5.nabble.com/Issue-with-SNMPstats-tp138131p138142.html
> Sent from the Users mailing list archive at Nabble.com.
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Issue with SNMPstats

2015-05-25 Thread ycaner
Hello;

Try to set dialog flag. you can do it with dlg_manage() function. 




--
View this message in context: 
http://sip-router.1086192.n5.nabble.com/Issue-with-SNMPstats-tp138131p138142.html
Sent from the Users mailing list archive at Nabble.com.

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


Re: [SR-Users] Misc Radius can't parse sip-avps?

2015-05-25 Thread ycaner
Hello;
it is so weird. When i unset  common response , i can get right value.
---
modparam("misc_radius", "common_response", 0)
--
 8(2292) DEBUG: misc_radius [functions.c:453]: radius_is_user_in(): success
 8(2292) DEBUG: misc_radius [functions.c:268]: radius_load_caller_avps():
success
 8(2292) DEBUG: misc_radius [functions.c:187]: generate_avps(): AVP
'null'/3='null'/1 has been added
8(2292) ALERT: 

[SR-Users] Misc Radius can't parse sip-avps?

2015-05-25 Thread Yasin CANER

Hello all;
i am working on misc_radius modulü. i configured system like below. 
and when i try to write debug , it gives  Could you take a look 
what i am doing wrong

Thanks
-FREERADIUS-
101@192.168.0.188 Auth-Type := Accept, Service-Type == "SIP-Caller-AVPs"
Sip-Avp  = "#3#1"
---
---Kamailio.cfg
modparam("misc_radius", "radius_config", 
"/etc/radiusclient-ng/radiusclient.conf")

modparam("misc_radius", "group_service_type", 12)
modparam("misc_radius", "uri_service_type", 10)
modparam("misc_radius", "caller_service_type", 30)
modparam("misc_radius", "callee_service_type", 31)
modparam("misc_radius", "caller_extra", "Calling-Station-Id=$fu")
modparam("misc_radius", "callee_extra", "SIP-URI-User=$rU;SIP-URI-Host=$rd")
#modparam("misc_radius", "group_extra", "My-Special=$avp(i:100)")
modparam("misc_radius", "uri_extra", "Called-Station-Id=$tu")
modparam("misc_radius", "common_response", 1)

#"dont forget to change caller_service_type to 30 and 
callee_service_type to 31 as written in dictionary.kamailio"


if(is_method("INVITE")){
if(!radius_load_caller_avps("$fU@192.168.0.188")){
xlog("L_ALERT","Bulamadim Bulamadim");
sl_send_reply("403", "Forbidden - Bulamadim");
exit;

}
xlog("L_ALERT"," i3 $avp(i:3) $avp(s:3) s6 $avp(6) 
$avp(session-protocol) $avp(Sip-Avp)");

}

--
-RESULT

 1(21867) DEBUG: misc_radius [functions.c:453]: radius_is_user_in(): 
success
 1(21867) DEBUG: misc_radius [functions.c:268]: 
radius_load_caller_avps(): success
 1(21867) DEBUG: misc_radius [functions.c:137]: generate_avps_rad(): 
AVP 'SIP-AVP'/0='#3#1'/0 has been added


May 25 15:05:28 group1-imslab11 /usr/local/sbin/kamailio[21587]: ALERT: 

Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread DanB

Daniel,

Many thanks!

DanB


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


Re: [SR-Users] Issue with SNMPstats

2015-05-25 Thread Igor Potjevlesch
Hello,

No I don't, with:

loadmodule "dialog.so"

Should be enough? What else should I configure for tracking active calls?

Thank you,

Regards,


2015-05-25 12:50 GMT+02:00 Daniel-Constantin Mierla :

>  Hello,
>
> do you have dialog module loaded and tracking active calls?
>
> Cheers,
> Daniel
>
>
> On 25/05/15 12:45, Igor Potjevlesch wrote:
>
> Hello,
>
>  I have configured the SNMPstats module fine in my machine because I get
> the SNMP information with the new KAMAILIO MIBS but I don't understand why
> the value of kamailio dialogs is always 0:
>
> KAMAILIO-MIB::kamailioCurNumDialogs.0 = Gauge32: 0
> KAMAILIO-MIB::kamailioCurNumDialogsInProgress.0 = Gauge32: 0
> KAMAILIO-MIB::kamailioCurNumDialogsInSetup.0 = Gauge32: 0
> KAMAILIO-MIB::kamailioTotalNumFailedDialogSetups.0 = Counter32: 0
>
>  However I can see the transactions:
>
>  KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryTotalTransactions.0 =
> Counter32: 54797
>
>  Should I configure an specific parametr of the SNMPstats module?
>
>  Regards,
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
> http://www.linkedin.com/in/miconda
> Kamailio World Conference, May 27-29, 2015
> Berlin, Germany - http://www.kamailioworld.com
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Alex Balashov
Oh, I see. I think I misunderstood the thread when I wandered into it 
and saw your answer, thinking that the question was whether variables 
set prior to t_suspend() can be used in the route invoked by 
t_continue(). I should read more carefully.


-- Alex

On 05/25/2015 06:50 AM, Daniel-Constantin Mierla wrote:


$var(x) keeps the value in the context of the process. t_continue()
doesn't delegate route execution to other processes, it is executed in
the context of same process. So, yes, it is also the same for rtimer
processes. Actually, I can bet more for rtimer case, for evapi, I will
need to double check, because the libev might create some extra threads
around...

In other words, t_continue(tindex, tlabel, rtname) is like:

set_active_transaction(tindex, tlabel);
route(rtname);

t_suspend() is the one that parks the transaction and you can resume
processing it with t_continue() in other process, so if you set $var(x)
before t_suspend(), don't expect proper value at t_continue().

Cheers,
Daniel

On 25/05/15 12:35, Alex Balashov wrote:

Daniel,

On 05/25/2015 06:32 AM, Daniel-Constantin Mierla wrote:


yes, it is safe to use $var(x) to pass values between the block
calling t_continue() and the route executed by t_continue().


Why is that, when the scope of $var() variables is, as I understand
it, maintained only by a given SIP receiver thread?

Regardless, is this true only when async task workers are used, or is
this also true with other mechanisms, like resuming suspended
transactions in rtimer threads?



--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda  -http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany -http://www.kamailioworld.com



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




--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [SR-Users] Issue with SNMPstats

2015-05-25 Thread Daniel-Constantin Mierla
Hello,

do you have dialog module loaded and tracking active calls?

Cheers,
Daniel

On 25/05/15 12:45, Igor Potjevlesch wrote:
> Hello,
>
> I have configured the SNMPstats module fine in my machine because I
> get the SNMP information with the new KAMAILIO MIBS but I don't
> understand why the value of kamailio dialogs is always 0:
>
> KAMAILIO-MIB::kamailioCurNumDialogs.0 = Gauge32: 0
> KAMAILIO-MIB::kamailioCurNumDialogsInProgress.0 = Gauge32: 0
> KAMAILIO-MIB::kamailioCurNumDialogsInSetup.0 = Gauge32: 0
> KAMAILIO-MIB::kamailioTotalNumFailedDialogSetups.0 = Counter32: 0
>
> However I can see the transactions:
>
> KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryTotalTransactions.0 =
> Counter32: 54797
>
> Should I configure an specific parametr of the SNMPstats module?
>
> Regards,
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

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


Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Daniel-Constantin Mierla
$var(x) keeps the value in the context of the process. t_continue()
doesn't delegate route execution to other processes, it is executed in
the context of same process. So, yes, it is also the same for rtimer
processes. Actually, I can bet more for rtimer case, for evapi, I will
need to double check, because the libev might create some extra threads
around...

In other words, t_continue(tindex, tlabel, rtname) is like:

set_active_transaction(tindex, tlabel);
route(rtname);

t_suspend() is the one that parks the transaction and you can resume
processing it with t_continue() in other process, so if you set $var(x)
before t_suspend(), don't expect proper value at t_continue().

Cheers,
Daniel

On 25/05/15 12:35, Alex Balashov wrote:
> Daniel,
>
> On 05/25/2015 06:32 AM, Daniel-Constantin Mierla wrote:
>
>> yes, it is safe to use $var(x) to pass values between the block
>> calling t_continue() and the route executed by t_continue().
>
> Why is that, when the scope of $var() variables is, as I understand
> it, maintained only by a given SIP receiver thread?
>
> Regardless, is this true only when async task workers are used, or is
> this also true with other mechanisms, like resuming suspended
> transactions in rtimer threads?
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

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


[SR-Users] Issue with SNMPstats

2015-05-25 Thread Igor Potjevlesch
Hello,

I have configured the SNMPstats module fine in my machine because I get the
SNMP information with the new KAMAILIO MIBS but I don't understand why the
value of kamailio dialogs is always 0:

KAMAILIO-MIB::kamailioCurNumDialogs.0 = Gauge32: 0
KAMAILIO-MIB::kamailioCurNumDialogsInProgress.0 = Gauge32: 0
KAMAILIO-MIB::kamailioCurNumDialogsInSetup.0 = Gauge32: 0
KAMAILIO-MIB::kamailioTotalNumFailedDialogSetups.0 = Counter32: 0

However I can see the transactions:

KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryTotalTransactions.0 = Counter32:
54797

Should I configure an specific parametr of the SNMPstats module?

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


Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Alex Balashov

Daniel,

On 05/25/2015 06:32 AM, Daniel-Constantin Mierla wrote:


yes, it is safe to use $var(x) to pass values between the block
calling t_continue() and the route executed by t_continue().


Why is that, when the scope of $var() variables is, as I understand it, 
maintained only by a given SIP receiver thread?


Regardless, is this true only when async task workers are used, or is 
this also true with other mechanisms, like resuming suspended 
transactions in rtimer threads?


--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


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


Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Daniel-Constantin Mierla
Hello,

yes, it is safe to use $var(x) to pass values between the block calling
t_continue() and the route executed by t_continue().

Cheers,
Daniel

On 25/05/15 10:52, DanB wrote:
> Hey Daniel,
>
> Thanks for coming back to me.
>
> Yes, called t_continue and for now I have used $var() to pass
> information back to the route with transaction info recovered.
> Will that be OK to leave it like that? Is $var() safe to use between
> event_route[evapi:message-received] and route called by t_continue()?
> I am just speaking about these two interactions since after
> t_continue, I will process the vars into $avp().
>
> You can find the .cfg we are using it as part of our test build here:
>
> https://github.com/cgrates/cgrates/blob/master/data/tutorials/kamevapi/kamailio/etc/kamailio/kamailio-cgrates.cfg#L62
> https://github.com/cgrates/cgrates/blob/master/data/tutorials/kamevapi/kamailio/etc/kamailio/kamailio.cfg#L191
>
>
> Ta,
> DanB
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

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


Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread DanB

Hey Daniel,

Thanks for coming back to me.

Yes, called t_continue and for now I have used $var() to pass 
information back to the route with transaction info recovered.
Will that be OK to leave it like that? Is $var() safe to use between 
event_route[evapi:message-received] and route called by t_continue()? I 
am just speaking about these two interactions since after t_continue, I 
will process the vars into $avp().


You can find the .cfg we are using it as part of our test build here:

https://github.com/cgrates/cgrates/blob/master/data/tutorials/kamevapi/kamailio/etc/kamailio/kamailio-cgrates.cfg#L62
https://github.com/cgrates/cgrates/blob/master/data/tutorials/kamevapi/kamailio/etc/kamailio/kamailio.cfg#L191


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


Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Daniel-Constantin Mierla
Hello,

On 24/05/15 11:01, DanB wrote:
> Hey Guys,
>
> Was wondering what would be the recommended way to share information
> between $evapi(msg) received and transaction processors?
> I have tried $avp() but they do not appear to be available in
> evapi:message-received route. Trying to avoid here $sht() so I don't
> need to do extra management to destroy them. Is there any way to
> "activate" the $avp or $dlg_var  based on dialog index, label maybe?
>
have you called t_continue() somewhere?

Note also that you can define a hash table with auto-expires, so you
don't need to do manual removal of items in the hash table.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

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


Re: [SR-Users] info

2015-05-25 Thread Daniel-Constantin Mierla
Hello,

On 23/05/15 21:32, Walter Josef wrote:
> *Hi,*
> *Do you have any phonenumber for info about your iptel voip phone
> service ?*
>
the mailing list for iptel.org sip services is:

  - http://lists.iptel.org/mailman/listinfo/services

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

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


Re: [SR-Users] Creating branch 4.3

2015-05-25 Thread Daniel-Constantin Mierla
Hello,

short reminder that later today the branch for 4.3 release series will
be created.

Cheers,
Daniel

On 20/05/15 22:10, Daniel-Constantin Mierla wrote:
> Hello,
>
> I am planning to branch the code for upcoming major release on next
> Monday, May 25. Testing went fine so far in my side and I don't expect
> new consistent changes. Any fixes afterwards will be backported as usual
> to a stable branch. From that moment, master branch will be open again
> for new features.
>
> If someone else has different proposal, let's discuss it on sr-dev
> mailing list.
>
> Cheers,
> Daniel
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com


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