If I do a hangup at the called party then it does not work somehow. The
BYE contains a Route header. Only in this case Kamailio does not find
the calling party to forward the BYE and returns a 404. Seems that I
need to digg into the Kamailio config file again *sigh* to figure out what's
To implement the registrar and proxy I use Kamailio that
uses port 5070 to be able to run with SC on the same system.
Because I use a non-DNS environment and using local addresses only I
need to introduce the domain (IP address in this case) to Kamailio.
This is done using "alias". In the config file I used the following
With this definition registration works, but some other stuff didn't work
Digging into Kamailio's doc (wiki) gave me a hint:
Parameter to set alias hostnames for the server. It can be set many times,
each value being added in a list to match the hostname when 'myself' is checked.
It is necessary to include the port (the port value used in the “port=” or
“listen=” defintions) in the alias definition otherwise the loose_route()
function will not work as expected for local forwards
Example of usage:
Following this advise I modified the alias to read:
Now SC can't register anymore. Wirshark tells me that request URI of the
REGISTER request looks like this: sip:firstname.lastname@example.org and is missing
the :5070 and thus Kamailio refuses to register because the URI
match fails (uri == myself) .
Trying to add a new account an manually add the :5070 after the IP address
faild. Appending the port number (:5070) was possible, the advanced tab
showed 172.16.97.1:5070 in the Registrar and Proxy address field, the
portnumbers of both were 5060.
After I was done with this and hit "register" at the last account page
[java] 18:37:44.053 SCHWERWIEGEND: impl.protocol.sip.ProtocolProviderServiceSipImpl.initOutboundProxy().1632 172.16.97.1:5070 appears to be an either
invalid or inaccessible address.
[java] java.net.UnknownHostException: 172.16.97.1:5070
Thus I couldn't modifiy the request URI in SC to include to port number.
Allow to set up a domian name (or IP address) to include a port number.
The this can be done on a case by case basis depending o the requirements
of the registrar. I had a short look into the code and as far as I can
see this modification is not straightforward.
I had the same issue with Twinkle, but twinkle allows me to edit the
domain and I appended :5070 and thus twinkle's request URI for the
REGISTER request looks like this: sip:email@example.com:5070 and Kamailio
BTW, where in SC can I modify/set SC's standard SIP port numbers? Then I
could try to setup some other tests.
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com