Monday, August 10, 2009

Sipdroid and asterisk

If you haven't found it yet, sipdroid is a small, reasonably well integrated sip client for android phones. If you install the version not available on market, you can also use it while using your 3g connection.

One drawback is that it doesn't neccessary play nice with Asterisk out of the box, these are the things I had to address to get it running smoothly (of course, YMMV).

You're most likely being NATed by your operator (if you want to be sure, you can install WhatIsMyIp and check), so

nat=yes

is pretty much a given. However, you do need

qualify=no

or your Asterisk will consider the phone unreachable.

Also, sipdroid currently only supports alaw, so you should make sure that no other codec will suddenly be required. If your asterisk is suitably located [low latency] and have ample cpu, you can use canreinvite=no for that, otherwise, you can try to restrict those you connect to so only alaw will be used, but that way may have many hidden surprises, especially if one of them is a PSTN operator.

1 comment:

Anonymous said...

Follow up:

Version 1.0.5 seems to have some issue with passwords longer than 8 characters (I haven't investigated enough to create an issue yet).

Also, I'm not sure if it's really necessary, but I'm running with

maxexpirey=900

which seemed to help solve problems where the phone would stop ringing after a while (but this could have been solved by an update).