Hello,
try with is_myself("sip:$fU@fd").
That is a function that matches the same addresses as myself condition.
Cheers,
Daniel
On 22/01/16 11:05, Dirk Teurlings - SIGNET B.V. wrote:
Hi,
The documentation states the following.
https://www.kamailio.org/wiki/cookbooks/4.2.x/core#myself
if(uri==myself) {
log("the request is for local processing\n");
};
Now this could also be used to do something like this: (also used in
some examples)
if(from_uri==myself) {
log("the request is for local processing\n");
};
Using this the from_uri could be: sip:sip.voipexample.net:5061
myself in this case only has sip.voipexample.net:5060 as an Aias
Now the equation wouldn't match, because the port 5061 is non-default.
Would it be possible to match the from_uri to myself ignoring the port
in from_uri? The only thing I can think of is using a regular
expression. somthing like this:
from_uri=~"sip:.+@sip\.voipexample\.net(:([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])|)"
But this skips the use of myself entirely. Any insight on this would be
greatly appreciated!
Cheers,
Dirk
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio -
http://www.asipto.com
http://miconda.eu