[SR-Users] XCAP configuration
Rupayan Dutta
direct2rupayan at gmail.com
Tue Aug 20 13:21:26 CEST 2013
Hi Daniel,
I inspect the value of $hu .When I logging into kamailio
server from SIPML client (SIP over WebSocket) it prints only"/" . Now if I
write the following inside event_route[xttp:request] as follows it gives
parsing error.
if($hu=~"/") {
# handle webrtc
}
if(!($hu=~"^/xcap-root")) {
# handle presence
}
Please help
On Tue, Aug 20, 2013 at 1:39 PM, Rupayan Dutta <direct2rupayan at gmail.com>wrote:
> Dear Sir,
> In case of presence the condition which you mentioned works
> (i.e if($hu=~"^/xcap-root") { }) but when i want to capture the
> authentication request from sipml5 client(SIP over websocket), the
> conditions does't match(e.g if($hu=~"^/webrtc") or if($hu=~"^/sip:" etc).
> When i tried described as follows within XTTP request block kamailio.cfg
> gives parsing error
>
> if($hu=~"^/xcap-root") {
>
> # handle xcap
> }
>
> if(!($hu=~"^/xcap-root")) {
>
> # handle another
> }
>
> where is the problem I can't solve. Pls give some ideas.
>
> Rupayan dutta
>
>
>
> On Thu, Aug 1, 2013 at 2:25 PM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>> the conditions in the example of previous email were negated, so they
>> should be:
>>
>> if($hu=~"^/webrtc") {
>> # handle webrtc
>> }
>>
>> if($hu=~"^/xcap-root") {
>>
>> # handle xcap
>> }
>>
>> Cheers,
>> Daniel
>>
>> On 8/1/13 10:54 AM, Daniel-Constantin Mierla wrote:
>>
>> Hello,
>>
>> one way is to use different base uri for each service and decide based on
>> it, for example:
>>
>> if(! ($hu=~"^/webrtc")) {
>> # handle webrtc
>> }
>>
>> if(! ($hu=~"^/xcap-root")) {
>> # handle xcap
>> }
>>
>> Cheers,
>> Daniel
>>
>> On 8/1/13 9:46 AM, Rupayan Dutta wrote:
>>
>> Dear Sir,
>> I have kamailio 4.0.2 installed with the websockets module and
>> it is working fine.Now I want to enable presence with XCAP.How can I do
>> that.I have gone through the steps defined in
>> http://kb.asipto.com/kamailio:presence:k31-made-simple. But I am little
>> bit confused because both websocket and XCAP route configuration is using
>> event_route[xhttp:request].
>>
>> Pls help to modify kamailio.cfg file
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>>
>>
>> --
>> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130820/adde5fef/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio_sample.cfg
Type: application/octet-stream
Size: 27393 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130820/adde5fef/attachment-0001.obj>
More information about the sr-users
mailing list