rayo / rayo-server

Rayo Server - A high performance awesomeness server
http://www.rayo.org
Apache License 2.0
43 stars 4 forks source link

Unable to match full SIP URIs in rayo-routing.properties #14

Closed bklang closed 12 years ago

bklang commented 12 years ago

I wanted to match an exact SIP username for routing to a specific JID. I tried the following combinations, but the Rayo server never reported a match:

sip:arabbit@.*=arabbit@127.0.0.1
sip:arabbit.*=arabbit@127.0.0.1
arabbit@.*=arabbit@127.0.0.1
arabbit.*=arabbit@127.0.0.1

The logs make it appear that the string to be matched is "sip:arabbit@127.0.0.1", based on the error message We didn't find any Regexp match for sip:arabbit@127.0.0.1

mpermar commented 12 years ago

Good catch! It is fixed now. Note you could have used something like .*arabbit.*=arabbit@127.0.0.1