Hello All,
Does anyone have presence working on Kamailio 3.3 with integrated XCAP.
In theory my setup should work.
I have two clients:
Client A:
Registers with the presence server
Subscribe 1 - event = reg
Subscribe 2 - event = presence.winfo
Subscribe 3 - event = presence
Publishes its status
I see entries in the foll databases for A:
Active Watchers DB: presence, presence.winfo, and reg event entries
Watchers DB: No entries
Presentity: presence, reg, and presence???? entries
PUA list: 1 entry
RLS watchers: No entries
RLS presentity list: No entries
XCAP List: 3 entries - rls services, resource list, and pres rules
Client B:
Registers with the presence server
Subscribe 1 - event = presence.winfo
Subscribe 2 - event = presence
Subscribe 3 - event = message-summary
Publishes its status
I see entries in the foll databases for B:
Active Watchers DB: message-summary, presence.winfo
Watchers DB: 1 entry - with B as the presentity and A as the watcher
Presentity: reg, presence
PUA list: 1 entry
RLS watchers: No entries
RLS presentity list: No entries
XCAP List: 2 entries resource-lists, pres rules
My first question is - Is this all correct or is something going missing?
Now the real problem: When Client A adds Client B to it's contact
list, on Client A I see the following message: Client B Package
(presence), Pending (Subscribe). This information from what I gather
is coming back from the periodic notifies for the server because of
the presence.winfo event.
However, the notify going out to Client B does not have any indication
that Client A is a watcher and needs to be authorized. This should be
the case per RFC 3857.
Excerpts from notifies to client A and client B:
Client A
NOTIFY sip:8475551001@10.51.2.181:58150;transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.50.251.12;branch=z9hG4bKdcef.e5df11e.0
To: sip:8475551001@10.50.251.12;tag=1988526
From: sip:8475551001@10.50.251.12;tag=a6a1c5f60faecf035a1ae5b6e96e979a-c52c
CSeq: 3 NOTIFY
Call-ID: 19607474-addd-0ffb-a9da-031235052e9d
Content-Length: 347
User-Agent: kamailio (3.3.1 (x86_64/linux))
Max-Forwards: 70
Event: presence.winfo
Contact: <sip:10.50.251.12:5060;transport=udp>
Subscription-State: active;expires=3180
Content-Type: application/watcherinfo+xml
<?xml version="1.0"?>
<watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="2"
state="partial">
<watcher-list resource="sip:8475551001@10.50.251.12" package="presence">
<watcher id="9e65d804dbc4fc269c5f1d2f6eae0650(a)0.0.0.0"
event="subscribe"
status="pending">sip:8475551002@10.50.251.12</watcher>
</watcher-list>
</watcherinfo>
Client B:
NOTIFY sip:8475551002@10.50.0.113:5060;transport=udp;registering_acc=10_50_251_12
SIP/2.0
Via: SIP/2.0/UDP 10.50.251.12;branch=z9hG4bK7f71.6fca9e81.0
To: sip:8475551002@10.50.251.12;tag=a30db42f
From: sip:8475551002@10.50.251.12;tag=a6a1c5f60faecf035a1ae5b6e96e979a-6692
CSeq: 3 NOTIFY
Call-ID: f71666432f236f38c7c4dc467b4483e0(a)0.0.0.0
Content-Length: 195
User-Agent: kamailio (3.3.1 (x86_64/linux))
Max-Forwards: 70
Event: presence.winfo
Contact: <sip:10.50.251.12:5060;transport=udp>
Subscription-State: active;expires=3600
Content-Type: application/watcherinfo+xml
<?xml version="1.0"?>
<watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="2"
state="full">
<watcher-list resource="sip:8475551002@10.50.251.12" package="presence"/>
</watcherinfo>
Also the frequency of notifies to client B is a lot less for event:
presence.winfo.
Any help is greatly appreciated since I've been trying to get presence
to work for a few weeks now and keep running into new problems.
Thanks,
Sangeeta
--
Sangeeta Shah
i couldn't find in the source directory database schema for sip_capture
table. why it is not included?
also, looks like sipcapture module README is missing many of module's
params. is this module still supported or has it become obsolete?
-- juha
Hello everyone.
I have installed: CentOS6, Kamailio 3.3, rsyslogd
Part of my Kamailio config:
debug=9
log_stderror=yes
memdbg=9
memlog=9
log_facility=LOG_LOCAL0
loaded modules:
debugger.so
modparam("debugger", "cfgtrace", 1)
modparam("debugger", "log_facility", "LOG_LOCAL0")
modparam("debugger", "log_prefix", "from-debugger-with-love:")
xlog.so
modparam("xlog", "buf_size", 8192)
modparam("xlog", "log_facility", "LOG_LOCAL0")
rsyslog.conf
default config with two added rows:
# Save log messages with LOG_LOCAL0 in /var/log/kamailio
local0.* /var/log/kamailio
rsyslogd and kamailio restarted.
When i run command "kamailio -ddddddd" i see debug all my
xlog("L_INFO","blabla\n") or xlog("LOG_LOCAL0","L_INFO","blabla\n" );
messages.
When i run "kamctl start" i don't have any logs from kamailio in my system.
I'm stuck, any suggestions, will be helpful
--
Best regards, Kirill Ushakov
Hello,
do not reply privately to discussions on the mailing list. It is
important that the thread has a conclusion for the people searching in
archive for the same topic.
Cheers,
Daniel
On 10/3/12 10:13 PM, Sangeeta Shah wrote:
> Thanks for the response. I was able to figure it out and now it works.
>
> Appreciate your response.
>
> On Wed, Oct 3, 2012 at 3:02 PM, Daniel-Constantin Mierla
> <miconda(a)gmail.com> wrote:
>> Hello,
>>
>> the http uri is available in available $hu. You can print it with xlog and
>> be sure you give it as parameter to xcap server function.
>>
>> A basic example in the readme shows it:
>> *
>> http://kamailio.org/docs/modules/stable/modules_k/xcap_server.html#id2532050
>>
>> Cheers,
>> Daniel
>>
>>
>>
>> On 10/3/12 8:34 PM, Sangeeta Shah wrote:
>>> Hello All,
>>> I am using Kamailio 3.3 with Presence/RLS and integrated XCAP. When
>>> my client tries to "PUT" the resource list for the user, the server is
>>> returning a 500 Server Error response. Attached is the TCP trace for
>>> the put and the corresponding response from the server. I also see the
>>> following error in the server logs:
>>> Oct 3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
>>> <script>: ===== xhttp: put received sip:8475551001@10.50.251.12
>>> Oct 3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
>>> xcap_server [xcap_misc.c:109]: invalid http uri - shorter than
>>> xcap-root
>>> Oct 3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
>>> xcap_server [xcap_server.c:560]: cannot parse xcap uri [0]
>>>
>>> Maybe it's a client/server configuration issue. What is the expected
>>> http uri. How do I print out the received HTTP URI And the XCAP root.
>>>
>>> Any debugging help is appreciated.
>>>
>>> TCP trace:
>>>
>>> PUT /xcap-root/resource-lists/users/8475551001/index HTTP/1.1
>>>
>>> Host: 10.50.251.12:5060
>>>
>>> Content-Length: 2037
>>>
>>> Connection: Keep-Alive
>>>
>>> User-Agent: XDM-client/OMA1.1
>>>
>>> X-3GPP-Intended-Identity: 8475551001
>>>
>>> Content-Type: application/resource-lists+xml
>>>
>>>
>>>
>>> <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
>>>
>>> <list name="rcs">
>>>
>>> <display-name>All Contacts</display-name>
>>>
>>> <external
>>> anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
>>> />
>>>
>>> <entry uri="8475551001" />
>>>
>>> </list>
>>>
>>> <list name="rcs_blockedcontacts">
>>>
>>> <display-name>Blocked Contacts</display-name>
>>>
>>> </list>
>>>
>>> <list name="rcs_revokedcontacts">
>>>
>>> <display-name>Revoked Contacts</display-name>
>>>
>>> </list>
>>>
>>> <list name="oma_allcontacts">
>>>
>>> <display-name>OMA All Contacts</display-name>
>>>
>>> </list>
>>>
>>> <list name="oma_blockedcontacts">
>>>
>>> <display-name>OMA Blocked Contacts</display-name>
>>>
>>> <external
>>> anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
>>> />
>>>
>>> <external
>>> anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
>>> />
>>>
>>> </list>
>>>
>>> <list name="oma_buddylist">
>>>
>>> <display-name>OMA BuddyList</display-name>
>>>
>>> <external
>>> anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
>>> />
>>>
>>> <external
>>> anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
>>> />
>>>
>>> </list>
>>>
>>> <list name="oma_grantedcontacts">
>>>
>>> <display-name>OMA Granted Contacts</display-name>
>>>
>>> <external
>>> anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
>>> />
>>>
>>> <external
>>> anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
>>> />
>>>
>>> </list>
>>>
>>> <list name="oma_pocbuddylist">
>>>
>>> <display-name>OMA POC BuddyList</display-name>
>>>
>>> </list>
>>>
>>> <list name="doubango">
>>>
>>> <display-name>My Default Contacts</display-name>
>>>
>>> </list>
>>>
>>> </resource-lists>
>>>
>>> HTTP/1.1 500 Server error
>>>
>>> Via: SIP/2.0/TCP 10.51.2.181:49889
>>>
>>> Server: kamailio (3.3.1 (x86_64/linux))
>>>
>>> Content-Length: 0
>>>
>>> Thanks,
>>> Sangeeta
>>>
>>
>> --
>> Daniel-Constantin Mierla - http://www.asipto.com
>> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>> Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
>> Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -
>> http://asipto.com/u/katu
>>
>
>
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu
Hello All,
I am using Kamailio 3.3 with Presence/RLS and integrated XCAP. When
my client tries to "PUT" the resource list for the user, the server is
returning a 500 Server Error response. Attached is the TCP trace for
the put and the corresponding response from the server. I also see the
following error in the server logs:
Oct 3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
<script>: ===== xhttp: put received sip:8475551001@10.50.251.12
Oct 3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
xcap_server [xcap_misc.c:109]: invalid http uri - shorter than
xcap-root
Oct 3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
xcap_server [xcap_server.c:560]: cannot parse xcap uri [0]
Maybe it's a client/server configuration issue. What is the expected
http uri. How do I print out the received HTTP URI And the XCAP root.
Any debugging help is appreciated.
TCP trace:
PUT /xcap-root/resource-lists/users/8475551001/index HTTP/1.1
Host: 10.50.251.12:5060
Content-Length: 2037
Connection: Keep-Alive
User-Agent: XDM-client/OMA1.1
X-3GPP-Intended-Identity: 8475551001
Content-Type: application/resource-lists+xml
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
<list name="rcs">
<display-name>All Contacts</display-name>
<external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
/>
<entry uri="8475551001" />
</list>
<list name="rcs_blockedcontacts">
<display-name>Blocked Contacts</display-name>
</list>
<list name="rcs_revokedcontacts">
<display-name>Revoked Contacts</display-name>
</list>
<list name="oma_allcontacts">
<display-name>OMA All Contacts</display-name>
</list>
<list name="oma_blockedcontacts">
<display-name>OMA Blocked Contacts</display-name>
<external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
/>
<external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
/>
</list>
<list name="oma_buddylist">
<display-name>OMA BuddyList</display-name>
<external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
/>
<external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
/>
</list>
<list name="oma_grantedcontacts">
<display-name>OMA Granted Contacts</display-name>
<external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
/>
<external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~…"
/>
</list>
<list name="oma_pocbuddylist">
<display-name>OMA POC BuddyList</display-name>
</list>
<list name="doubango">
<display-name>My Default Contacts</display-name>
</list>
</resource-lists>
HTTP/1.1 500 Server error
Via: SIP/2.0/TCP 10.51.2.181:49889
Server: kamailio (3.3.1 (x86_64/linux))
Content-Length: 0
Thanks,
Sangeeta
--
Sangeeta Shah
Hi Daniel
It worked fine. I added the below code.
if(is_method("PUBLISH"))
{
loose_route();
t_relay();
exit;
}
Thanks
Kamal
On Wed, Oct 3, 2012 at 5:58 PM, Kamal Palei <palei.kamal(a)gmail.com> wrote:
> Thanks Daniel , let me try this out.
>
> Regards
> Kamal
>
> On Wed, Oct 3, 2012 at 5:33 PM, Daniel-Constantin Mierla <
> miconda(a)gmail.com> wrote:
>
>> Hello,
>>
>> do you have a Route header also for kamailio proxy? If yes, try to do
>> loose_route() and then t_relay().
>>
>> If not, get the address from Route in $du and relay:
>> $du = $(hdr(Route){nameaddr.uri});
>> remove_hf("Route");
>> t_relay();
>> exit;
>>
>> Cheers,
>> Daniel
>>
>>
>> On 10/3/12 1:46 PM, Kamal Palei wrote:
>>
>> Hi Daniel
>> Thanks for your response.
>>
>> I have a message as below.
>>
>> PUBLISH tel:+915346586495469 <+915346586495469> SIP/2.0
>> Via:
>> To:
>> From:
>> Route: <sip:main_proxy_ip>
>> ..
>> ..
>> This message comes from phone to Kamailio proxy.
>> I just need Kamailio proxy just forward this message to main proxy
>> without modifying tel uri present in request uri.
>>
>> Can this be acheived by tel2sip() api.
>>
>> Thanks
>> Kamal
>>
>>
>> On Wed, Oct 3, 2012 at 4:37 PM, Daniel-Constantin Mierla <
>> miconda(a)gmail.com> wrote:
>>
>>> Hello,
>>>
>>>
>>> On 10/3/12 12:36 PM, Kamal Palei wrote:
>>>
>>> Changing the subject line
>>>
>>> On Wed, Oct 3, 2012 at 3:54 PM, Kamal Palei <palei.kamal(a)gmail.com>wrote:
>>>
>>>> Hi All
>>>> I am using Kamailio - 3.1.5 version.
>>>>
>>>> When a message of tel URI comes to Kamailio, Kamailio is not forwarding
>>>> the message to next proxy.
>>>> If is returning "478 Unresolved response" .
>>>>
>>>> Can somebody give me some pointer how do I handle this situation?
>>>>
>>> kamailio cannot forward when there is tel uri -- it requires a domain
>>> part (hostname/ip) to know where to send the requests.
>>>
>>> See this function that should help you convert the tel uri to sip uri:
>>> http://kamailio.org/docs/modules/stable/modules_k/siputils.html#id2494464
>>>
>>> Cheers,
>>> Daniel
>>>
>>> --
>>> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>>> Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
>>> Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu
>>>
>>>
>>
>> --
>> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>> Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
>> Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu
>>
>>
>
Changing the subject line
On Wed, Oct 3, 2012 at 3:54 PM, Kamal Palei <palei.kamal(a)gmail.com> wrote:
> Hi All
> I am using Kamailio - 3.1.5 version.
>
> When a message of tel URI comes to Kamailio, Kamailio is not forwarding
> the message to next proxy.
> If is returning "478 Unresolved response" .
>
> Can somebody give me some pointer how do I handle this situation?
>
> Thanks
> Kamal
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
hi everyone,
can someone show me how to save cdr's into db ?
i enabled acc in the default config but still no cdr in the acc table
thank you
--
Tayeb Meftah
General director
Voice of the blind ™ broadcast freedom
http://www.vobradio.org/
Phones:
Algeria: +213-660-347746
UK, London: +442032983627
USA, NewYork: +1(347)759-5883
iNum: +883510001288000
we're blind, but not deaf!
Hi all.
Is there any easy method to find if somebody with $si:$sp is registered
(usrloc->received.ip == $si, usrloc->received.port == $sp) ?
reg_fetch_contacts uses uri as search key, but in my case I don't have it.
The only way I know is to write a module that will use
"get_all_ucontacts" function exported by usrloc module in its API.
hello
we're using Kamailio / freeswitch
freeswitch is the Voicemail server now.
please how to forward MWI bethwan kamailio and Freeswitch?
if user 1000 have a vm i want kamailio to fetch it from FS and
advertise it to the subscriber
thank you
--
Tayeb Meftah
General director
Voice of the blind ™ broadcast freedom
http://www.vobradio.org/
Phones:
Algeria: +213-660-347746
UK, London: +442032983627
USA, NewYork: +1(347)759-5883
iNum: +883510001288000
we're blind, but not deaf!