Re: [SR-Users] perl module compilation on centos

2011-09-22 Thread Watkins, Bradley
I can confirm that attempting to build the 3.1.5 perl module fails for me on 
CentOS 5.7 in exactly the same way.  I can also confirm that there is no 
perl-ExtUtils-Embed in the main repos or EPEL or remi.

- Brad

From: sr-users-boun...@lists.sip-router.org 
[mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin 
Mierla
Sent: Thursday, September 22, 2011 1:12 PM
To: kamailio users
Subject: [SR-Users] perl module compilation on centos

Hello,

while building the v3.1.5 RPMs, the perl module failed to compile on centos 5 
and 6, with following error:

error: `PL_unitcheckav' undeclared (first use in this function )

so its packaging was disabled. It works fine on opensuse and fedora. Someone on 
twitter tried with the package perl-ExtUtils-Embed (like in fedora) and worked. 
However, OpenSUSE Build System fails to find that package.

Is anyone here with latest centos 5 or 6 that can try compilation of perl 
module in v3.1.5 and let me know the result? Few months ago, it didn't fail for 
v3.1.4.

Thanks,
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] mq_fetch and while loops

2011-06-28 Thread Watkins, Bradley
Just a correction to my previous statement:
Apparently I was incorrect and I was running Kamailio 3.1.3 and not 3.1.4.  I 
have installed 3.1.4 and it seems this fix is indeed in a released version now.

Regards,
- Brad

>
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.

>From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-
>boun...@lists.sip-router.org] On Behalf Of Watkins, Bradley
>Sent: Tuesday, June 28, 2011 5:54 PM
>To: sr-users@lists.sip-router.org
>Subject: Re: [SR-Users] mq_fetch and while loops
you received it in error please notify us immediately and
>then destroy it.
>
>>From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-
>>boun...@lists.sip-router.org] On Behalf Of Alex Balashov
>>Sent: Tuesday, June 28, 2011 5:42 PM
>>To: sr-users@lists.sip-router.org
>>Subject: Re: [SR-Users] mq_fetch and while loops
>>
>>I reported this back in October:
>>
>>
>> http://lists.sip-router.org/pipermail/sr-users/2010-October/065740.htm
>> l
>>
>>A fix was committed to the master branch almost immediately:
>>
>>
>> http://lists.sip-router.org/pipermail/sr-dev/2010-October/009499.html
>>
>>I requested that it be backported into the 3.1 branch in May and it was
>>done:
>>
>>http://lists.sip-router.org/pipermail/sr-dev/2011-May/011132.html
>>
>>However, I don't know that it's made it into the tarballs yet.  You can
>>get the
>>3.1 branch with the fix by doing this:
>>
>>git clone git://git.sip-router.org/sip-router -b 3.1
>>
>>Otherwise, here's the workaround I was using before:
>>
>>   while(mq_fetch("myq")) {
>>  ...
>>
>>  if(!defined $mqk(myq))
>> break;
>>
>>   ...
>>}
>>
>>Cheers,
>>
>>-- Alex
>
>Excellent, thanks for the quick response!
>
>Regards,
>- Brad



___
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] mq_fetch and while loops

2011-06-28 Thread Watkins, Bradley
>
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.

>From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-
>boun...@lists.sip-router.org] On Behalf Of Alex Balashov
>Sent: Tuesday, June 28, 2011 5:42 PM
>To: sr-users@lists.sip-router.org
>Subject: Re: [SR-Users] mq_fetch and while loops
>
>I reported this back in October:
>
>http://lists.sip-router.org/pipermail/sr-users/2010-October/065740.html
>
>A fix was committed to the master branch almost immediately:
>
>http://lists.sip-router.org/pipermail/sr-dev/2010-October/009499.html
>
>I requested that it be backported into the 3.1 branch in May and it was
>done:
>
>http://lists.sip-router.org/pipermail/sr-dev/2011-May/011132.html
>
>However, I don't know that it's made it into the tarballs yet.  You can get the
>3.1 branch with the fix by doing this:
>
>git clone git://git.sip-router.org/sip-router -b 3.1
>
>Otherwise, here's the workaround I was using before:
>
>   while(mq_fetch("myq")) {
>  ...
>
>  if(!defined $mqk(myq))
> break;
>
>   ...
>}
>
>Cheers,
>
>-- Alex

Excellent, thanks for the quick response!

Regards,
- Brad


___
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] mq_fetch and while loops

2011-06-28 Thread Watkins, Bradley
I'm having an issue trying to use the construct show in the module 
documentation.

The docs show:
while(mq_fetch("myq"))
{
   xlog("$mqk(myq) - $mqv(myq)\n");
}

And I'm doing essentially the same thing (differently named mqueue, but 
otherwise identical), but invariably I get this in the logs:
ERROR:  [action.c:1388]: ERROR: runaway while (559, 28): more then 100 
loops

Am I doing something wrong, or is mq_fetch not returning appropriate values for 
successful versus failed fetches?
This is on Kamailio 3.1.4, FWIW.

Regards,
- Brad

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.


___
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 using pua_bla module

2011-05-31 Thread Watkins, Bradley
No, it most certainly wasn't.  I'm not sure why I didn't notice that parameter 
before, but thanks for mentioning it!

I still don't quite have a working BLA setup, but at the moment I'm pretty sure 
it's an issue with the UA configuration rather than Kamailio.

Thanks again,
- Brad

>
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.

>From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-
>boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla
>Sent: Tuesday, May 31, 2011 1:49 PM
>To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
>Mailing List
>Subject: Re: [SR-Users] Issue using pua_bla module
>
>Is bla handling enabled in your config?
>
>http://kamailio.org/docs/modules/stable/modules_k/presence_xml.html#id
>2904718
>
>Cheers,
>Daniel
>
>On 5/31/11 7:08 PM, Zahid Mehmood wrote:
>> Brad,
>> sorry I overlooked that you are loading the modules already.
>>
>
>--
>Daniel-Constantin Mierla -- http://www.asipto.com
>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



___
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 using pua_bla module

2011-05-31 Thread Watkins, Bradley
I hate being a pest, but does anybody have any ideas about this?

I'm completely at a loss without digging into the code (which I can do, but 
hopefully don't have to), so any pointers would be a big help.

Regards,
- Brad

>
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.

>From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-
>boun...@lists.sip-router.org] On Behalf Of Watkins, Bradley
>Sent: Friday, May 27, 2011 10:07 PM
>To: 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
>Mailing List'
>Subject: Re: [SR-Users] Issue using pua_bla module
>
>Whoops, forgot to mention the version, which is 3.1.3.
>>I'm trying to get the pua_bla module to do its thing, and I'm running
>>into an issue.
>>
>>I'm getting these errors when the first NOTIFY comes from the phone:
>>
>>ERROR: presence [publish.c:515]: Missing or unsupported event header
>>field value
>>ERROR: presence [publish.c:518]:  event=[dialog;sla]
>>
>>I see the phone register and the subsequent SUBSCRIBE (both successful)
>>from Kamailio, so this bit seems to be correct.
>>
>>I'm loading what I think are all the necessary modules:
>>loadmodule "presence.so"
>>loadmodule "presence_xml.so"
>>loadmodule "pua.so"
>>loadmodule "pua_bla.so"
>>
>>And I'm handling the NOTIFY as per the documentation (xlogs to see that
>>in fact the script executes):
>>if(is_method("NOTIFY") && to_uri=~"bla_...@domain.com") {
>>xlog("Matched bla_aor to_uri\n");
>>if(bla_handle_notify()) {
>>xlog("Handled NOTIFY\n");
>>t_reply("200", "OK");
>>}
>>}
>>
>>
>>I see the log entries from the above xlogs, so it certainly is
>>executing this part of the script. Any ideas why I'm getting the
>>errors?  All ideas and/or assistance are greatly appreciated.
>>
>>Thanks in advance,
>>- Brad
>>


___
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 using pua_bla module

2011-05-27 Thread Watkins, Bradley
Whoops, forgot to mention the version, which is 3.1.3.

Also, apologies for the disclaimer footer.  That's not supposed to be there.  
I'll brow-beat my e-mail administrator when he returns.

- Brad

>-Original Message-
>From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-
>boun...@lists.sip-router.org] On Behalf Of Watkins, Bradley
>Sent: Friday, May 27, 2011 10:06 PM
>To: sr-users@lists.sip-router.org
>Subject: [SR-Users] Issue using pua_bla module
>
>I'm trying to get the pua_bla module to do its thing, and I'm running into an
>issue.
>
>I'm getting these errors when the first NOTIFY comes from the phone:
>
>ERROR: presence [publish.c:515]: Missing or unsupported event header field
>value
>ERROR: presence [publish.c:518]:   event=[dialog;sla]
>
>I see the phone register and the subsequent SUBSCRIBE (both successful)
>from Kamailio, so this bit seems to be correct.
>
>I'm loading what I think are all the necessary modules:
>loadmodule "presence.so"
>loadmodule "presence_xml.so"
>loadmodule "pua.so"
>loadmodule "pua_bla.so"
>
>And I'm handling the NOTIFY as per the documentation (xlogs to see that in
>fact the script executes):
>if(is_method("NOTIFY") && to_uri=~"bla_...@domain.com") {
>xlog("Matched bla_aor to_uri\n");
>if(bla_handle_notify()) {
>xlog("Handled NOTIFY\n");
>t_reply("200", "OK");
>}
>}
>
>
>I see the log entries from the above xlogs, so it certainly is executing this 
>part
>of the script. Any ideas why I'm getting the errors?  All ideas and/or
>assistance are greatly appreciated.
>
>Thanks in advance,
>- Brad
>
>The contents of this e-mail are intended for the named addressee only. It
>contains information that may be confidential. Unless you are the named
>addressee or an authorized designee, you may not copy or use it, or disclose
>it to anyone else. If you received it in error please notify us immediately and
>then destroy it.
>
>
>___
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-
>us...@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


[SR-Users] Issue using pua_bla module

2011-05-27 Thread Watkins, Bradley
I'm trying to get the pua_bla module to do its thing, and I'm running into an 
issue.

I'm getting these errors when the first NOTIFY comes from the phone:

ERROR: presence [publish.c:515]: Missing or unsupported event header field value
ERROR: presence [publish.c:518]:event=[dialog;sla]

I see the phone register and the subsequent SUBSCRIBE (both successful) from 
Kamailio, so this bit seems to be correct.

I'm loading what I think are all the necessary modules:
loadmodule "presence.so"
loadmodule "presence_xml.so"
loadmodule "pua.so"
loadmodule "pua_bla.so"

And I'm handling the NOTIFY as per the documentation (xlogs to see that in fact 
the script executes):
if(is_method("NOTIFY") && to_uri=~"bla_...@domain.com") {
xlog("Matched bla_aor to_uri\n");
if(bla_handle_notify()) {
xlog("Handled NOTIFY\n");
t_reply("200", "OK");
}
}


I see the log entries from the above xlogs, so it certainly is executing this 
part of the script. Any ideas why I'm getting the errors?  All ideas and/or 
assistance are greatly appreciated.

Thanks in advance,
- Brad

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.


___
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/SIP Router in RHEL 5

2011-02-22 Thread Watkins, Bradley
> From: sr-users-boun...@lists.sip-router.org 
> [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Suresh Bhandari
> Sent: Tuesday, February 22, 2011 2:01 AM
> To: sr-users@lists.sip-router.org
> Subject: [SR-Users] Kamailio/SIP Router in RHEL 5
>
> Hi,
>
> I wanted to run Kamailio/SIP Server in RHEL 5 (Being an RHCE, I prefer this 
> :)), but the INSTALL document you provided has no
> description based on that OS :(. I found that there are no RPMs for this as 
> well. Are you preparing them? or Do you have any plans for that? or you > 
> prefer me to change the OS. 
>
> Thanks and Regards,
> Suresh.

There is no reason you can't run Kamailio on RHEL 5.  I have been running 
Kamailio on CentOS 5 for quite some time and have never run into issues.

I'm not aware of any "official" (or even non-official for that matter) RPMs.  
There is a spec file, though, and while I've never tried to build an RPM using 
it I would think that it is at least close enough that a little bit of tweaking 
will get it where you need it to be.

Regards,
- Brad

___
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] Support for via ;maddr

2011-01-04 Thread Watkins, Bradley

>-Original Message-
>From: sr-users-boun...@lists.sip-router.org 
>[mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
>Olle E. Johansson
>Sent: Tuesday, January 04, 2011 12:24 PM
>To: kamailio SR-Users
>Subject: [SR-Users] Support for via ;maddr
>
>Friends,
>We've had an interesting discussion on the Asterisk-dev 
>mailing list about supporting the ;maddr and ;ttl attributes 
>in the via header when sending responses. We've agreed that it 
>should be considered harmful and suggest making it 
>configurable whether to support it in Asterisk.
>
>My question now is 
>
>- Does kamailio support this automatically?
>- Can I disable it?
>
>Regards,
>/O

As far as I know, it does not handle any maddr parameters automatically
(neither in Via, Contact, etc.).

It absolutely does not for Contact, as unfortunately I'm forced to
interoperate with a piece of equipment that requires it and I have to
make it "work" manually (i.e., in-script).

- Brad

___
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] Perl Code Execution via kamailio.cfg fails

2010-07-14 Thread Watkins, Bradley
Ugh... My apologies for the disclaimer, I thought I had already asked my e-mail 
admin to whitelist this mailing list so it wouldn't get appended.

Hopefully this is fixed now... :/

Regards,
- Brad 

> -Original Message-
> From: sr-users-boun...@lists.sip-router.org 
> [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
> Watkins, Bradley
> Sent: Wednesday, July 14, 2010 8:09 AM
> To: "Nicolas Rüger"; sr-users@lists.sip-router.org
> Subject: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
> 
>  
> 
> > 
> The contents of this e-mail are intended for the named 
> addressee only. It contains information that may be 
> confidential. Unless you are the named addressee or an 
> authorized designee, you may not copy or use it, or disclose 
> it to anyone else. If you received it in error please notify 
> us immediately and then destroy it.
> 
> > From: sr-users-boun...@lists.sip-router.org 
> > [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
> > "Nicolas Rüger"
> > Sent: Wednesday, July 14, 2010 6:18 AM
> > To: sr-users@lists.sip-router.org
> > Subject: [SR-Users] Perl Code Execution via kamailio.cfg fails
> > 
> > Hello,
> > 
> > I try to execute some PERL-code within kamailio v3 for some 
> > research due to my thesis. I'm using debian lenny, 
> > kamailio_3.0.0 and perl_5.10.0.
> > 
> > I added the follwoing lines to "kamailio.cfg":
> > 
> >   loadmodule "perl.so"
> >   modparam("perl", "filename", "/opt/kamailio-3.0.0/PERL/myperl.pl")
> >   modparam("perl", "modpath", 
> "/opt/kamailio-3.0.0/lib/kamailio/perl")
> > 
> > I added a subroutine called "myprint" to the file "myperl.pl" 
> > for testing.
> > 
> > I tried to exec the subroutine by adding the following line 
> > to "kamailio.cfg" just before "Routing Logic" (...even tried 
> > within "route{..}") as described in the perl_module description :
> > 
> >   perl_exec_simple("myperl");
> > 
> 
> This is incorrect, unless you have a function named "myperl" 
> inside of your script "myperl.pl".  The perl_exec() and 
> perl_exec_simple() calls are looking for a named function 
> inside of the file you declare in your modparam.
> 
> Regards,
> - Brad
> 
> 
> ___
> 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] Perl Code Execution via kamailio.cfg fails

2010-07-14 Thread Watkins, Bradley
 

> 
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.

> From: sr-users-boun...@lists.sip-router.org 
> [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
> "Nicolas Rüger"
> Sent: Wednesday, July 14, 2010 6:18 AM
> To: sr-users@lists.sip-router.org
> Subject: [SR-Users] Perl Code Execution via kamailio.cfg fails
> 
> Hello,
> 
> I try to execute some PERL-code within kamailio v3 for some 
> research due to my thesis. I'm using debian lenny, 
> kamailio_3.0.0 and perl_5.10.0.
> 
> I added the follwoing lines to "kamailio.cfg":
> 
>   loadmodule "perl.so"
>   modparam("perl", "filename", "/opt/kamailio-3.0.0/PERL/myperl.pl")
>   modparam("perl", "modpath", "/opt/kamailio-3.0.0/lib/kamailio/perl")
> 
> I added a subroutine called "myprint" to the file "myperl.pl" 
> for testing.
> 
> I tried to exec the subroutine by adding the following line 
> to "kamailio.cfg" just before "Routing Logic" (...even tried 
> within "route{..}") as described in the perl_module description :
> 
>   perl_exec_simple("myperl");
> 

This is incorrect, unless you have a function named "myperl" inside of your 
script "myperl.pl".  The perl_exec() and perl_exec_simple() calls are looking 
for a named function inside of the file you declare in your modparam.

Regards,
- Brad


___
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