[OpenSIPS-Users] need some help to parse the data I got after doing lookup in location table .

Callum Guy callum.guy at x-on.co.uk
Fri Apr 24 07:13:06 EST 2020


Hi Sasmita,

I would advise that you capture this information in a branch flag during
registration, these will be stored in location and retrieved when
performing a matching lookup().

So:

if ($pr == "ws" || $pr == "wss") {
    setbflag(SRC_WS);
}
save("location_table")

When you do the lookup this bflag will be loaded and can be utilised to
route as required.

Good luck



On Fri, 24 Apr 2020 at 06:57, Sasmita Panda <spanda at 3clogic.com> wrote:

> Hi ,
>
>
> I have a 2 user , 1 is register from browser and another is register from
> a cisco phone . The protocol through which both get register is different .
> browser get register through WSS and cisco phone get register through UDP
> .
>
> Now while an INVITE comes for any of the user after doing lookup , while
> giving call to browser I wanted to involve Rtpengine in for media
> encryption but while giving call to cisco phone no need of Rtpengine
> involvement  .
>
> My question is , how I will differentiate both user  ? My knowledge says I
> have to parse the contact I got from lookup , parse that contact and find
> which user register through which protocol and accordingly differentiate
> them .
> If so , then how I will parse the contact ? Please do help me .
>
> Thank you in advance .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-- 


 <https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm>


*0333 
332 0000  |  x-on.co.uk <https://www.x-on.co.uk>  |   ** 
<https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel> 
  <https://twitter.com/xonuk> **  |  Coronavirus 
<https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm>*


THE 
ITSPA AWARDS 2020 <http://www.itspa.org.uk/itspa-awards> AND Best ITSP - 
Mid Market, Best Software and Best Vertical Solution are trade marks of the 
Internet Telephony Services Providers' Association, used under licence.


X-on
is a trading name of Storacall Technology Ltd a limited company 
registered in
England and Wales.

Registered Office : Avaland House, 110 
London Road, Apsley, Hemel Hempstead,
Herts, HP3 9SD. Company Registration 
No. 2578478.

The information in this e-mail is confidential and for use by 
the addressee(s)
only. If you are not the intended recipient, please notify 
X-on immediately on +44(0)333 332 0000 and delete the
message from your 
computer. If you are not a named addressee you must not use,
disclose, 
disseminate, distribute, copy, print or reply to this email. Views
or 
opinions expressed by an individual
within this email may not necessarily

reflect the views of X-on or its associated companies. Although X-on 
routinely
screens for viruses, addressees should scan this email and any 
attachments
for
viruses. X-on makes no representation or warranty as to the 
absence of viruses
in this email or any attachments.










-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200424/db6e6669/attachment-0001.html>


More information about the Users mailing list