Re: [SR-Users] force_rtp_proxy/rtpproxy_offer/answer not replacing ip addr.

2011-07-07 Thread MingHon
Hi,

Thanks!

do you think willl any other version will work?

like version 3.0.x?

Cheers,
MingHon
___
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] force_rtp_proxy/rtpproxy_offer/answer not replacing ip addr.

2011-07-07 Thread Ovidiu Sas
only trunk

On Thu, Jul 7, 2011 at 2:17 AM, MingHon gming...@gmail.com wrote:
 Hi,
 Thanks!
 do you think willl any other version will work?
 like version 3.0.x?
 Cheers,
 MingHon


___
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] force_rtp_proxy/rtpproxy_offer/answer not replacing ip addr.

2011-07-07 Thread MingHon
Alright thank you very much.
i wil try to install it from trunk.
Will report back later.
:)

Regards,
MingHon
___
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] updates to config preprocessor

2011-07-07 Thread Daniel-Constantin Mierla

Hello,

just to let you know about some recent additions regarding the config 
file preprocessor, hopefully they will help you keep the config cleaner 
and easy to maintain.


- you can use either #! or !! as the start marker of preprocessor 
directive (to make happy those complaining about not able to distinguish 
quickly from comments)
- subsdef was added some time ago to allow defining a token that will 
replace ID tokens as well as update inside string values. It has the 
same format as #!subst. For example:|


#!substdef !ABC!XYZ!g|

is pretty much same as:

#!define ABC XYZ
#!subs /ABC/XYZ/

- substdefs, like substdef byt the defined value will be added enclosed 
in double quotes:


|#!substdef !ABC!XYZ!g|

is pretty much same as:

#!define ABC XYZ
#!subs /ABC/XYZ/

- trydef - similar to define, but if the ID is defined already, ignore 
this time
- redef - similar to define, but if the ID is defined, redefine its 
value (note that define itself throws error if the ID is already defined)


Regarding the inclusion of files, a new option is available, 
'import_file'. It is similar to 'include_file', but if the file is not 
found, it does not throw error. Bot include_file and import_file can be 
started as well with #! or !!. You can still use them without #! or !!, 
whatever you like more.


Cheers,
Daniel

--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda

___
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] Playing with dlg_bridge()

2011-07-07 Thread Henning Westerholt
On Wednesday 06 July 2011, Roberto Fichera wrote:
  you're probably missing the quotes for the first two function arguments.
 
 You are totally right Now it works fine!

Hi Roberto,

good.
 
 Do you know what does means the warning below?
 [..]
 68.2.50 Jul  6 11:54:17 roberto /usr/sbin/kamailio[20457]: WARNING: dialog
 [dlg_handlers.c:884]: unable to find dialog for NOTIFY with route param
 '7d2.14447fc4' [727:1291273281]

This means that the module can't find an existing (stored) dialog for the 
routed message in question, in this case a NOTIFY.

Best regards,

Henning

___
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] Playing with dlg_bridge()

2011-07-07 Thread Roberto Fichera
On 07/07/2011 11:05 AM, Henning Westerholt wrote:
 On Wednesday 06 July 2011, Roberto Fichera wrote:
 you're probably missing the quotes for the first two function arguments.
 You are totally right Now it works fine!
 Hi Roberto,

 good.
  
 Do you know what does means the warning below?
 [..]
 68.2.50 Jul  6 11:54:17 roberto /usr/sbin/kamailio[20457]: WARNING: dialog
 [dlg_handlers.c:884]: unable to find dialog for NOTIFY with route param
 '7d2.14447fc4' [727:1291273281]
 This means that the module can't find an existing (stored) dialog for the 
 routed message in question, in this case a NOTIFY.

Does this depends by the fact of own the dlg_bridge() works? And in case, how 
can I
solve that problem?

 Best regards,

 Henning



___
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] Celebrating 10 years of SER

2011-07-07 Thread Daniel-Constantin Mierla

Hello,

the 3rd of September will mark the 10 years since the start of SIP 
Express Router (aka SER - also the origin for kamailio (openser) and now 
the two are back together). From last year:


  * http://sip-router.org/wiki/history/ser-9-years

This is a good time to celebrate and I am thinking of at least a social 
event (e.g., dinner) in Berlin, Germany. Based of private discussion so 
far, other cities are interested in organizing something similar 
locally, e.g., Barcelona. If you are a group of people that can gather 
together for a drink in same place to celebrate the event, let me know 
and I will add in the list to coordinate - hopefully we will be even 
able connect between sites with some video/audio if the timezones are 
convenient.


I'm looking as well to do a more formal event, something like a day long 
conference style, on Friday, 2nd of September. Berlin is the natural 
choice for location, being the place where the project started. I can 
take care of location when it is clear that there are people willing to 
travel. Berlin area alone should be able to get about 20 people, among 
them several long term developers of the project and companies offering 
SER/Kamailio-based services. Coming over gives you the opportunity to 
connect directly with them.


At this event, along with presenting shortly the history and future 
plans, the event should be open to everyone that want to present their 
usage of SER/Kamailio. Attendance is going to be free, in the limit of 
available seats. If you think it would be interesting and want to 
attend, let me know.


Also, if you have other ideas of how to celebrate, write us back.

Best regards,
Daniel

--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda


___
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] Dialplan question

2011-07-07 Thread alex pappas
Dear all,

I have these 3 entries in the dialplan:

dpid   pr   match_exp  attr

2   50   ^38.+  porvider_A
2   50   ^3802.+  porvider_B
2   50   ^3806.+  porvider_C

with the fifo command :

*kamctl fifo dp_translate 2 3806328881*
Output::
ATTRIBUTES::* porvider_A*

I would expect that the dialplan module would choose the third choice which
is the correct one for this call.

From the dialplan documentation i understand that the priority is needed
when the prefixes are overlaping in terms of they are the same but with
different attrs like :
2   50   ^38.+  porvider_A
2   50   ^3802.+  porvider_B
*2   50   ^3806.+  porvider_C*
*2   50   ^3806.+  porvider_D*
*
*
here i understand that I should use priorities.

Does anyone knnows how this works ??

Thank you in advance
Alex
*
*
___
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] MYSQL Compilation Kamailio 3.1.4

2011-07-07 Thread Omar
generating autover.h ...
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio]nonsip_hooks.o
In file included from /usr/include/netinet/in.h:27,
 from /usr/include/sys/socket.h:45,
 from parser/../ip_addr.h:45,
 from parser/msg_parser.h:63,
 from nonsip_hooks.h:42,
 from nonsip_hooks.c:45:
/usr/include/resolv.h:222: error: array type has incomplete element type
/usr/include/resolv.h:236: error: field 'addr' has incomplete type
/usr/include/resolv.h:260: error: field 'sin' has incomplete type
make: *** [nonsip_hooks.o] Error 1


this is what i got if i try that.

Omar

On Jul 4, 2011, at 5:15 AM, Henning Westerholt wrote:

 On Monday 27 June 2011, Omar wrote:
 added, and got same error:
 
 bash-3.00# grep sin6 /usr/include/*
 /usr/include/resolv.h:  struct sockaddr_in6 sin6;
 
 Hi Omar,
 
 ok, have you already tried to include the resolv.h file (instead or 
 additionally to the in.h) to the db_mysql source file?
 
 Best regards,
 
 Henning
 


___
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] new to ser

2011-07-07 Thread Timo Reimann
On 07.07.2011 00:46, Pradeep Sharma wrote:
 I am installed ser 0.9.6 onto my mac machine and with following command
 i get it to listen to 5060 port. but when i use a sip client and send
 register message i get a 501 not implemented as a response from the server.
 
 i am attaching ser.cfg. your help is appreciated.

0.9.6?

Unless this is your way of celebrating SER's upcoming 10th anniversary,
please consider upgrading to a recent version first. :)


Cheers,

--Timo

___
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] [Kamailio-Business] Celebrating 10 years of SER

2011-07-07 Thread Meftah Tayeb

hey Daniel,
that's intairaisting
another idea is to do a global video conferencing or at least streaming 
conference to stream out the event if we can't come.

thank you.

- Original Message - 
From: Daniel-Constantin Mierla mico...@gmail.com
To: kamailio sr-users@lists.sip-router.org; sr-dev 
sr-...@lists.sip-router.org; busin...@lists.kamailio.org

Sent: Thursday, July 07, 2011 12:40 PM
Subject: [Kamailio-Business] Celebrating 10 years of SER



Hello,

the 3rd of September will mark the 10 years since the start of SIP Express 
Router (aka SER - also the origin for kamailio (openser) and now the two 
are back together). From last year:


  * http://sip-router.org/wiki/history/ser-9-years

This is a good time to celebrate and I am thinking of at least a social 
event (e.g., dinner) in Berlin, Germany. Based of private discussion so 
far, other cities are interested in organizing something similar locally, 
e.g., Barcelona. If you are a group of people that can gather together for 
a drink in same place to celebrate the event, let me know and I will add 
in the list to coordinate - hopefully we will be even able connect between 
sites with some video/audio if the timezones are convenient.


I'm looking as well to do a more formal event, something like a day long 
conference style, on Friday, 2nd of September. Berlin is the natural 
choice for location, being the place where the project started. I can take 
care of location when it is clear that there are people willing to travel. 
Berlin area alone should be able to get about 20 people, among them 
several long term developers of the project and companies offering 
SER/Kamailio-based services. Coming over gives you the opportunity to 
connect directly with them.


At this event, along with presenting shortly the history and future plans, 
the event should be open to everyone that want to present their usage of 
SER/Kamailio. Attendance is going to be free, in the limit of available 
seats. If you think it would be interesting and want to attend, let me 
know.


Also, if you have other ideas of how to celebrate, write us back.

Best regards,
Daniel

--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda


___
Kamailio (OpenSER) - Business mailing list
busin...@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/business
http://lists.openser-project.org/cgi-bin/mailman/listinfo/business


__ Information provenant d'ESET NOD32 Antivirus, version de la 
base des signatures de virus 6272 (20110707) __


Le message a été vérifié par ESET NOD32 Antivirus.

http://www.eset.com






__ Information provenant d'ESET NOD32 Antivirus, version de la base des 
signatures de virus 6272 (20110707) __

Le message a été vérifié par ESET NOD32 Antivirus.

http://www.eset.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] Problem with worst case scenario of accessing 15 gateways over the DISPATCHER module - MAX_BRANCHES is reached

2011-07-07 Thread Klaus Feichtinger
 Hi Klaus,

 i understand.

 In case that the dispatcher-target is responding with a negative
 response code (as it was until now), all targets are sequentially
 addressed within a time of lower than 1 second until the error message
 of the TM module is interrupting that process.

 1s is of course fast enough.

 However, if there is no alternative to changing the define value of
 MAX_BRANCHES I will use your recommendation for limiting the number of
 gateways that will be addressed over the failure_route. My Question
 now is: how can I count the number of branches / rejections (from the
 failure_route)?
 I've tried using the pseudo_variable $branch(count) (according
 description of the WIKI page), but the value is 0 all the time =
 not useful. I could create a private table and use the sqlops module.
 Do you have any easier alternative recommendation how the number could
 be limited?

 What about just incrementing an variable, like an avp and check this in
 an if  case?

 Best regards,

 Henning
Hi Henning,

I decided using your recommendation with AVP. Until now I kept some
distance to this mechanism (AVP in general). But because of having no
alternative (std. $var can not work, avoidance of self compilation for a
customer project a.s.o.) I have limited the number of hits - it is now
working fine. Without any dirty hack ;-)

Thanks and best regards,
Klaus

P.S. the abstract solution

route[YZ] {
 if (!ds_select_dst(1, 4)) { .. }
 $avp(i:9)=1;
 t_on_failure(xy);
 t_on_reply(yz);
 t_set_fr(3000, 750);
 t_relay();
 exit;
}

failure_route[xy] {
[...]
 if ($avp(i:9)  10){
  $avp(i:9) = $avp(i:9) + 1;
  #!ifdef WITH_XLOGDEBUG
  xlog(L_INFO,  FAILXY the new value of branch counter is:
$avp(i:9) \n);
  #!endif
 } else {
  #!ifdef WITH_XLOGINFO
  xlog(L_INFO,  FAILXY distr. was interrupted due to too many
faulty GWYs \n);
  #!endif
  t_reply(480, Temporarily Unavailable);
  exit;
 }
 if (!ds_next_dst()) { .. }
 [...]
}




___
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] Playing with dlg_bridge()

2011-07-07 Thread Henning Westerholt
On Thursday 07 July 2011, Roberto Fichera wrote:
  Do you know what does means the warning below?
  [..]
  68.2.50 Jul  6 11:54:17 roberto /usr/sbin/kamailio[20457]: WARNING:
  dialog [dlg_handlers.c:884]: unable to find dialog for NOTIFY with
  route param '7d2.14447fc4' [727:1291273281]
  
  This means that the module can't find an existing (stored) dialog for the
  routed message in question, in this case a NOTIFY.
 
 Does this depends by the fact of own the dlg_bridge() works? And in case,
 how can I solve that problem?

Hi Roberto,

I'm not 100% sure, I'm not the expert for dlg_bridge.. To be more specific 
(after discussion with Timo..) - the warning is emmited if the module can't 
find the dialog with the ID added as a route parameter to the respective 
message. One particiular reason is (if you don't store the dialogs in a 
database) a simple kamailio restart, then all existing dialog information is 
lost.

Best regards,

Henning

___
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] Playing with dlg_bridge()

2011-07-07 Thread Roberto Fichera
On 07/07/2011 02:51 PM, Henning Westerholt wrote:
 On Thursday 07 July 2011, Roberto Fichera wrote:
 Do you know what does means the warning below?
 [..]
 68.2.50 Jul  6 11:54:17 roberto /usr/sbin/kamailio[20457]: WARNING:
 dialog [dlg_handlers.c:884]: unable to find dialog for NOTIFY with
 route param '7d2.14447fc4' [727:1291273281]
 This means that the module can't find an existing (stored) dialog for the
 routed message in question, in this case a NOTIFY.
 Does this depends by the fact of own the dlg_bridge() works? And in case,
 how can I solve that problem?
 Hi Roberto,

Hi Henning,

 I'm not 100% sure, I'm not the expert for dlg_bridge.. To be more specific 
 (after discussion with Timo..) - the warning is emmited if the module can't 
 find the dialog with the ID added as a route parameter to the respective 
 message. One particiular reason is (if you don't store the dialogs in a 
 database) a simple kamailio restart, then all existing dialog information is 
 lost.

actually I've the following setup:

#!define DBURL postgres://openser:openserrw@localhost/openser

modparam(dialog, dlg_flag, 2)
modparam(dialog, bridge_controller, sip:controller@192.168.2.92)
modparam(dialog, db_url, DBURL )

Actually, my thought is that problem is more strictly related to the 
dlg_bridge()
which might not track the bridged dialog.

Anyway, I'm playing with dlg_bridge() because I want to realize the logic so
that two peers, and if possible more, can talk together only if authorized.
The authorization might be a unique tag or transaction id, stored in a database,
and valid only for the give conversation {tag, caller, callee} once started, 
than
the tag become invalid and can't be used again.

I really like to have some suggestions about how to realize such logic,
so which might be the best way to approach such problem since I'm actually
a novice to Kamailio or in general with OpenSer logic. I'm actually more
confident with Asterisk logic.

 Best regards,

 Henning



___
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] force_rtp_proxy/rtpproxy_offer/answer not replacing ip addr.

2011-07-07 Thread MingHon
Hi!!

i finally able to replace the ip addr in the sdp body.

but there is still some issue. will check tmr.

anyway thank you very much. =)

-- 
Regards,

MingHon
___
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] Celebrating 10 years of SER

2011-07-07 Thread Umair Bari
Dear Daniel,

I can't travel but I would like to see event recording if possible.

On Thu, Jul 7, 2011 at 3:40 PM, Daniel-Constantin Mierla
mico...@gmail.comwrote:

 Hello,

 the 3rd of September will mark the 10 years since the start of SIP Express
 Router (aka SER - also the origin for kamailio (openser) and now the two are
 back together). From last year:

  * 
 http://sip-router.org/wiki/**history/ser-9-yearshttp://sip-router.org/wiki/history/ser-9-years

 This is a good time to celebrate and I am thinking of at least a social
 event (e.g., dinner) in Berlin, Germany. Based of private discussion so far,
 other cities are interested in organizing something similar locally, e.g.,
 Barcelona. If you are a group of people that can gather together for a drink
 in same place to celebrate the event, let me know and I will add in the list
 to coordinate - hopefully we will be even able connect between sites with
 some video/audio if the timezones are convenient.

 I'm looking as well to do a more formal event, something like a day long
 conference style, on Friday, 2nd of September. Berlin is the natural choice
 for location, being the place where the project started. I can take care of
 location when it is clear that there are people willing to travel. Berlin
 area alone should be able to get about 20 people, among them several long
 term developers of the project and companies offering SER/Kamailio-based
 services. Coming over gives you the opportunity to connect directly with
 them.

 At this event, along with presenting shortly the history and future plans,
 the event should be open to everyone that want to present their usage of
 SER/Kamailio. Attendance is going to be free, in the limit of available
 seats. If you think it would be interesting and want to attend, let me know.

 Also, if you have other ideas of how to celebrate, write us back.

 Best regards,
 Daniel

 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
 http://linkedin.com/in/miconda -- http://twitter.com/miconda


 __**_
 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-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 

Thanks  Regards,

Umair Bari
___
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] following the path a request take in the config file

2011-07-07 Thread Fabian Borot




Hi
Is there a way of tracing the path a request takes as it is being processed by 
the config file? Aside from logging using xlog().
I am not sure whether I read about this some where on the web , but I am under 
the impression that  starting on version 3.x there was going to be a similar 
feature.
please advise
fborot
  ___
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