maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 SIP Client with Asterisk (https://talk.maemo.org/showthread.php?t=36098)

ehsjoar 2009-12-06 23:37

Re: N900 SIP Client with Asterisk
 
Still not working. Man, what is the problem....

What asterisk did you run? I am on 1.6.1.6

bbrindle 2009-12-07 14:13

Re: N900 SIP Client with Asterisk
 
Hmm. I'm running a much older release of Asterisk than you. (1.2.18).

From the Asterisk CLI do a sip debug and see if there's any other information in the messages coming from the N900. Also try dialing your N900 from the CLI and see if that works. (Rule out any issues between sip endpoints.)

FiSHBoY 2009-12-07 15:51

Re: N900 SIP Client with Asterisk
 
ehsjoar:

I noticed in your settings that you didn't have a realm set, did you also add that when copying bbrindle's settings? Make sure you try realm=asterisk.

smurfy 2009-12-07 16:28

Re: N900 SIP Client with Asterisk
 
i have another problem with sip. if im in wlan i can connect to my asterisk server.

if im in another wlan or umts, i installed openvpn to get a home ip adress.

but the buildin sip client seems to only try to connect over umts directly,

ssh or pinging works on both ends of openvpn

ehsjoar 2009-12-07 17:28

Re: N900 SIP Client with Asterisk
 
FISHBoY,

I read somewhere that realm will default to Asterisk if not set. I tried setting it now though and it didn't change anything. I did open a ticket for this, even though others have gotten it working. The ticket is on https://bugs.maemo.org/show_bug.cgi?id=6641

ehsjoar 2009-12-07 17:30

Re: N900 SIP Client with Asterisk
 
smurfy,

That is interesting. So you are running the openvpn server on the Asterisk server and then have openvpn client on your N900?

Also, what version of Asterisk and what firmware version on your N900 are you running?

smurfy 2009-12-07 18:20

Re: N900 SIP Client with Asterisk
 
Openvpn Server on a Linux box with bridging (to get in the same network), ssh, ping etc all works great.

Openvpn Client + Applet from extra-devel i guess. (latest)

Asterisk 1.4.17~dfsg-2ubuntu1 on another server in my network.

N900: 1.2009.42-11 (retail)

sip.conf
[XXXXXX]
type=friend
secret=XXXX
callerid="n900" <1234>
canreinvite=no ;needed this!
nat=yes ; and that
host=dynamic
disallow=all
allow=gsm
allow=ulaw
allow=alaw

extensions.conf:
exten => _X.,1,NoOp(${CALLERID(num)} ${EXTEN})
exten => _X.,2,Dial(CAPI/contr1/${EXTEN})
exten => _X.,3,Hangup

i needed canreinvite=no and nat=yes, to get it to work to talk with another sip client (fritzbox).

my problem never was that i cant connect to the other sip telephone, the problem was that i either can hear the other party or talk to the other party :)

Edit:

as i stated before, i can connect to the asterisk server if i connect to my local wlan. (without openvpn) if i connected to umts or another wlan and the only connection to my network is openvpn i can't connect to the asterisk server.

smurfy 2009-12-07 18:31

Re: N900 SIP Client with Asterisk
 
hm, its somewhat sporadic, i got it working, then disconected the openvpn connection, and reconnected and now it is broken again :)

ok, i enabled sip debugging and something about nat :)

i will try with different sip settings in asterisk.

ehsjoar 2009-12-07 19:35

Re: N900 SIP Client with Asterisk
 
Smurfy,

So I was never successful connecting the N900 to asterisk at all. I do use openvpn for other soft-phones though. Very handy when you are out traveling and you are on the hotel's LAN.

I had to add a general localnet parameter to the VPN subnet in sip.conf for this to work though.

jebba 2009-12-07 19:35

Re: N900 SIP Client with Asterisk
 
Quote:

Originally Posted by R-R (Post 413431)
Could the package be made available please? :D

(He's talking about asterisk running on N900 itself)

I just got permission to upload files to extras-devel this morning, so watch for the package in the next day or so. I'm not sure how long it takes to be available after I upload.

Have fun,

-Jeff


All times are GMT. The time now is 22:07.

vBulletin® Version 3.8.8