Hi,
Kamailio 1.5: When having gw.tag column set to NULL in db (which seems
to be allowed according to db schema), then next_gw() prefixes the R-URI
user with the string "NULL". Setting it to empty string (''), nothing is
prefixed. I'd expect that from a value of NULL as well. Could anyone
please confirm this?
Also, in http://kamailio.org/docs/modules/1.5.x/lcr.html the parameter
prefix_mode is missing. It's available in README.lcr though, so probably
the page is out of date?
Andreas
Hey Guys,
First off thanks for any help in advance!
I'm adding a single avp test i.e. $avp(s:some-avp-name) = 'foo!'; to a
development configuration running Kamailio revision: 5487 (1.4.3). When I
start kamailio I'm getting the following error:
CRITICAL:core:init_io_wait: could not alloc epoll array
As soon as I delete this AVP addition and start her back up, she starts.
Code Snippet (io_wait.c)
606 #ifdef HAVE_EPOLL
607 case POLL_EPOLL_LT:
608 case POLL_EPOLL_ET:
609
h->ep_array=local_malloc(sizeof(*(h->ep_array))*h->max_fd_no);
610 if (h->ep_array==0){
611 LM_CRIT("could not alloc epoll array\n");
612 goto error;
613 }
614 memset((void*)h->ep_array, 0,
sizeof(*(h->ep_array))*h->max_fd_no);
615 if (init_epoll(h)<0){
616 LM_CRIT("epoll init failed\n");
617 goto error;
618 }
619 break;
620 #endif
I do not know enough of Kamailio CORE but it looks like something to do with
memory allocation / file descriptors? I've increased available memory to
kamailio as well as open file limits / file descriptors etc -- to no avail,
any help is much appreciated thanks guys!
Hi,
kindly add as server user
thanks
Regards,
V.P.Mohammed Fareed
Analyst Programmer
Mobile : +966-5-592303381
KSA.
Cricket on your mind? Visit the ultimate cricket website. Enter http://cricket.yahoo.com
Hi, Guys...
After trying a PSTN call through an AS5300-Cisco GW got this error:
====
ON-REPLY[1] incoming reply <200> for <INVITE> <8999>/<XXXXXXXXXXX>
ERROR:nathelper:check_content_type: invalid type for a message
ERROR:nathelper:extract_body: content type mismatching
ERROR:nathelper:force_rtp_proxy: can't extract body from the message
==
Googling around I found an e-mail from Ovidus (23/12/2008) telling that
a multi part SDP wasn't integrated on Nathelper. I suppose that I faced
such an issue. How to circumvent/workaround this error message? As a
side effect call gives no RTP flow, since one direction send it to
RTPProxy and the other directly.
Edson.
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x
Relevant info....
Using:
====
# kamailio -V
version: kamailio 1.5.1-notls (i386/linux)
flags: STATISTICS, USE_IPV6, USE_TCP, USE_SCTP, DISABLE_NAGLE,
USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4194304
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:5868M
@(#) $Id: main.c 5608 2009-02-13 16:48:17Z henningw $
main.c compiled on 13:54:27 Jun 4 2009 with gcc 4.3
==
The ON-REPLY code is:
====
onreply_route[1] {
xlog("L_INFO","ON-REPLY[1] incoming reply <$rs> for <$rm>
<$fU>/<$tU>");
if ((isflagset(5) || isbflagset(6)) &&
status=~"(183)|(2[0-9][0-9])") {
force_rtp_proxy();
}
if (isbflagset(6)) {
fix_nated_contact();
}
}
==
The ofending SDP in case is:
====
Content-Type: multipart/mixed;boundary=uniqueBoundary.
Content-Length: 378.
.
--uniqueBoundary.
Content-Type: application/sdp.
.
v=0.
o=CiscoSystemsSIP-GW-UserAgent 7829 2204 IN IP4 XXX.YYY.ZZZ.10.
s=SIP Call.
c=IN IP4 XXX.YYY.ZZZ.10.
t=0 0.
m=audio 16976 RTP/AVP 0.
c=IN IP4 XXX.YYY.ZZZ.10.
a=rtpmap:0 PCMU/8000.
--uniqueBoundary.
Content-Type: application/gtd.
Content-Disposition: signal;handling=optional.
.
ANM,.
PRN,isdn*,,QSIG*,.
.
--uniqueBoundary--.
==
Hi mani,
Looking your log, I see you're trying to contact sip:manivasagam.s*msn.com@
kmilo.smithmicro.com as I mentionned to be a possible way to get purple
working without mapping non-sip friends. But it requires modifications in
the purple_* functions to support it.
Then, there is also the usrloc error cause it didn't find such user. You
must use a purple_gateway_domain different from your main domain, in order
to filter messages to the gateway easyly, priori to other routes.
for example (but again the module need mods) :
route {
# initial sanity check, loopavoidance & big messages
.....
.....
# retransmission absorbtion
..... .....
# messages to purple gateway
if ($rd == "purple_gateway_domain") {
route(10);
}
# main route
..... .....
}
#purple route
route[10] {
#method filtering to call the appropriate purple function
}
Eric.
2009/6/16 mani sivaraman <mani.opensips(a)gmail.com>
> Attached is kamailio debug log while trying to send a MESSAGE to an MSN
> contact from my SIP Account. manivasaga.s(a)msn.com is the MSN account
> available on the SIP Buddy list. THe MESSAGE send fails and the server sends
> back 202 and then 404.
>
> THe debug message is attached. Any input is appreciated.
>
> On Tue, Jun 16, 2009 at 10:00 AM, mani sivaraman <mani.opensips(a)gmail.com>wrote:
>
>> Hi Eric
>> Could you please post a working example kamailio.cfg file with the example
>> purplemap table contents (remove passwords from it). I guess I'm doing some
>> mistake in coding purple_handle_subscribe, purple_handle_publish() and
>> purple_send_message. Your help is really apppreciated.
>>
>> What IM Client did you use to test/develop purple ? Is it X-Lite ? I would
>> like to try purple with that client first. Please let me know. I want to get
>> the first PUB/SUB and MESSAGE working bet SIP and MSN or Gmail or yahoo.
>>
>> Your help is appreciated.
>> - Mani
>>
>>
>> On Tue, Jun 16, 2009 at 2:56 AM, Eric PTAK <eric.ptak.fr(a)gmail.com>wrote:
>>
>>> Hi,
>>>
>>> The PUBLISH has to be processed normally by the Presence
>>> Server (eg handle_publish) to get the response.
>>> Then, you can also use purple_handle_publish to propagate you status to
>>> external protocols.
>>> Whenever, you should not get that error regarding the db entry and the
>>> publish sip uri...
>>> Need more checks...
>>>
>>> Eric.
>>>
>>> 2009/6/15 mani sivaraman <mani.opensips(a)gmail.com>
>>>
>>>> Hi Eric
>>>> I keep getting this error messages when I setup the purplemap table in
>>>> mysql and enable purple PUB/SUN processing in openser. I have only one
>>>> mapping purplemap table like this. My SIP client is trying to send presence
>>>> PUBLISH, but this never gets ACKed by openser server. And I get this error
>>>> every time PUB happens "ERROR:purple:find_accounts: result count = 0"
>>>>
>>>> sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>|
>>>> smvasagam2000(a)gmail.com | gtalk | xxxx
>>>>
>>>>
>>>> PUBLISH sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>from [
>>>> sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>]
>>>> to [sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>
>>>> ]
>>>> Jun 15 14:37:47 [17541] ERROR:purple:find_accounts: result count = 0
>>>> SUBSCRIBE sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>from [
>>>> sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>]
>>>> to [sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>
>>>> ]
>>>> Jun 15 14:37:47 [17535] INFO:presence:send_notify_request: NOTIFY
>>>> sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>via sip:msivaraman@172.16.1.125:6332;transport=udp
>>>> on behalf of sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>for event presence.winfo
>>>> SUBSCRIBE sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>from [
>>>> sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>]
>>>> to [sip:msivaraman@kmilo.smithmicro.com<sip%3Amsivaraman(a)kmilo.smithmicro.com>
>>>> ]
>>>> Jun 15 14:37:47 [17541] ERROR:purple:find_accounts: result count = 0
>>>>
>>>> Your assistance is appreciated.
>>>> Thanks
>>>> Mani
>>>>
>>>>
>>>> On Mon, Jun 15, 2009 at 11:13 AM, mani sivaraman <
>>>> mani.opensips(a)gmail.com> wrote:
>>>>
>>>>> That was it. I did that first time and then I forgot to set the env
>>>>> variable again. I will add it to ctl script now. Thanks for your help. I
>>>>> appreciate it. I will now go on to adding processing of MESSAGE, PUBLISH
>>>>> NOTIFY etc.
>>>>>
>>>>> Thank you
>>>>>
>>>>>
>>>>> On Mon, Jun 15, 2009 at 10:14 AM, Eric PTAK <eric.ptak.fr(a)gmail.com>wrote:
>>>>>
>>>>>> Did you added LD_PRELOAD=/path/to/your/libpurple.so env var in your
>>>>>> ctl script ?
>>>>>>
>>>>>> Eric.
>>>>>>
>>>>>> 2009/6/15 mani sivaraman <mani.opensips(a)gmail.com>
>>>>>>
>>>>>> Thanks for getting back Eric. After opensips I tested the latest
>>>>>>> Kamailio 1.5.1 code with purple module. I get the same SIGCHLD core dump on
>>>>>>> Kamailio as well. I saw Kamailio comes with purple source code. If I load
>>>>>>> purple.so and then add the modprobe for purple, I get the core dump. Is
>>>>>>> there any thing I can check or look for in the debug to make sure it works.
>>>>>>> If I unload purple and remove the respective modprobes every thing seems to
>>>>>>> work fine.
>>>>>>>
>>>>>>> Thank you
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jun 15, 2009 at 3:15 AM, Eric PTAK <eric.ptak.fr(a)gmail.com>wrote:
>>>>>>>
>>>>>>>> Hi mani,
>>>>>>>>
>>>>>>>> purple module hasn't been tested with opensips, and I can't say if
>>>>>>>> it should work.
>>>>>>>> but just a question : how did you compile the module ? eg, within
>>>>>>>> which project ?
>>>>>>>>
>>>>>>>> regards,
>>>>>>>> eric.
>>>>>>>>
>>>>>>>> 2009/6/12 mani sivaraman <mani.opensips(a)gmail.com>
>>>>>>>>
>>>>>>>>> I compiled and installed opensips 1.5.1 with mysql db and works
>>>>>>>>> fine. I compiled and installed the new purple module from outside and
>>>>>>>>> installed the same. if I try to load the purple.so module and add modprobe
>>>>>>>>> for purple params, opensips core dumps saying
>>>>>>>>>
>>>>>>>>> Jun 12 12:06:38 [22121] CRITICAL:core:receive_fd: EOF on 15
>>>>>>>>> Jun 12 12:06:38 [22103] INFO:core:handle_sigs: child process 22110
>>>>>>>>> exited by a signal 11
>>>>>>>>> Jun 12 12:06:38 [22103] INFO:core:handle_sigs: core was generated
>>>>>>>>> Jun 12 12:06:38 [22103] INFO:core:handle_sigs: terminating due to
>>>>>>>>> SIGCHLD
>>>>>>>>> Jun 12 12:06:38 [22104] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22105] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22106] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22107] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22108] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22114] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22109] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22115] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22116] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22117] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22119] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22121] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22112] INFO:core:sig_usr: signal 15 received
>>>>>>>>> Jun 12 12:06:38 [22103] NOTICE:presence:destroy: destroy module ...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> The gdb back trace is not very useful either.
>>>>>>>>>
>>>>>>>>> (no debugging symbols found)
>>>>>>>>> Core was generated by `opensips'.
>>>>>>>>> Program terminated with signal 11, Segmentation fault.
>>>>>>>>> [New process 22083]
>>>>>>>>> #0 0x085a9c6d in ?? ()
>>>>>>>>> (gdb) backtrace full
>>>>>>>>> #0 0x085a9c6d in ?? ()
>>>>>>>>> No symbol table info available.
>>>>>>>>> (gdb)
>>>>>>>>>
>>>>>>>>> Help Any one , Please.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Users mailing list
>>>>>>>>> Users(a)lists.opensips.org
>>>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users(a)lists.opensips.org
>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
After the second attempt that Kamailio sends a call towards an ip address and gets a negative sip response say 503, kamailio will block that ip route for approx 4 minutes and sends 401 unauthorized immediately to the sip client. That ip route can be a gateway which is sending a negative reponse for certain destinations only and this may be due to a problem which is beyond the gateway itself; so I want to avoid blocking the complete route automatically.
It appears that, in version 1.5 the route gets blocked for a longer period.
Appreciate any help.
Thanks,
Karl
--- On Thu, 18/6/09, Iñaki Baz Castillo <ibc(a)aliax.net> wrote:
From: Iñaki Baz Castillo <ibc(a)aliax.net>
Subject: Re: [Kamailio-Users] disable_dns_blacklist
To:
Cc: users(a)lists.kamailio.org
Date: Thursday, 18 June, 2009, 3:07 PM
2009/6/18 Karl Smith <sipware(a)yahoo.co.uk>:
> Hi,
>
> I have always used the global setting disable_dns_blacklist=yes so as to
> avoid openser from temporarily blocking a particular route that may return a
> negative sip response such as 503.
>
> I am now planning a migration to kamailio but the feature does not seem to
> be working. I have tried both kamailio 1.4 and also 1.5.
Since Kamailio 1.4 (perhaps since OpenSer 1.3) this option is
dissabled by default (disable_dns_blacklist=yes).
What do you mean with "it doesn't work"?
--
Iñaki Baz Castillo
<ibc(a)aliax.net>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/usershttp://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hi,
I have always used the global setting disable_dns_blacklist=yes so as to avoid openser from temporarily blocking a particular route that may return a negative sip response such as 503.
I am now planning a migration to kamailio but the feature does not seem to be working. I have tried both kamailio 1.4 and also 1.5.
Any ideas?
Thanks,
Karl
Hi,
I have always used the global setting disable_dns_blacklist=yes so as to avoid openser from temporarily blocking a particular route that may return a negative sip response such as 503.
I am now planning a migration to kamailio but the feature does not seem to be working. I have tried both kamailio 1.4 and also 1.5.
Any ideas?
Thanks,
Karl
This seems like it should be easy but based on the database schema I
can't figure out how I can specify a Q value for different destinations
when using alias_db with mysql. I need to map external DIDs to phones
registered to kamailio and some to other gateways, sometimes those
numbers will need to fork based on the q.
I can probably do what I need with direct sql queries I just want to
make sure I'm not missing something with db_aliases first.
Thanks
--------------------------------------------------------------------------
This email with all information contained herein or attached hereto may contain confidential and/or privileged information intended for the addressee(s) only. If you have received this email in error, please contact the sender and immediately delete this email in its entirety and any attachments thereto.
Hello friends
I want that a call out of my softswitch go to my Kamailio, there run a query
to a database, and return to the softswitch preceded with an index which I
will forward the proper operator, the most important thing is that only pass
signaling to Kamailio, and only when the call is going to do is send the data
packets, and ultimately the data come from softswitch to softswitch.
Should I make any special configuration for this to happen?
A lot of thanks.