10-16-2012 09:17 AM - edited 03-17-2019 11:59 PM
Hello, I noticed that when I try to call an IP address from an Jabber Video client on the iPad, that if I just dial the IP address alone, it appends the Jabber clients SIP domain to the IP and the call fails because it doesn't recognize that format of address. I know I can call by putting an alias in front of the IP and it work, but what regex transform would I need to incorporate into our VCS for the call to work if users just want to put in the IP address alone?
I want to take <IP Address>@<SIP Domain>, and make it just <IP Address>. How can I make this possible using regex?
Thanks, Patrick
Solved! Go to Solution.
10-16-2012 09:28 AM
(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(@domain.com)
Then replace with \1 which is the first capture group which should be the IPv4 address.
You might want to put a ? After the domain.com) bit so that becomes optional in case it stops sending it in the future.
Sent from Cisco Technical Support iPhone App
10-16-2012 09:28 AM
(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(@domain.com)
Then replace with \1 which is the first capture group which should be the IPv4 address.
You might want to put a ? After the domain.com) bit so that becomes optional in case it stops sending it in the future.
Sent from Cisco Technical Support iPhone App
10-17-2012 02:28 AM
Guy,
Are you able to put a ? character after the domain:
(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(@domain.com)?
Out of curiosity, i tested this using the VCS check pattern tool, and the result failed due to: "IP address aliases are not supported for pattern matching"
Have Cisco got plans to resolve this for the iPad app? as i believe JfW is capable of recognising a dialled IP address, and does not append the domain suffix.
Thanks, Simon
10-17-2012 05:34 AM
yes, that ? will make the (@domain.com) optional.
The rule my need to go in as a transform rather than an alias pattern match, then you can do an ip address search rule instead. It's been a long time since I've looked at setting up IP dialling rules.
I'm not able to comment on the Jabber iPad development I'm afraid, but I do believe they are looking at getting back to having more common code for the different versions, so I'd hope so.
Thanks,
Guy
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide