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
<mico...@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-us...@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@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

Reply via email to