You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Vieri <re...@yahoo.com> on 2012/04/11 00:32:25 UTC

red5sip unable to register to Asterisk

Hi,

I don't know if I can ask this mailing list about red5sip and asterisk.

I'm getting this error when "run"ning red5sip.sh:

SipUserAgent - initSessionDescriptor -> localSession = v=0
o=8933 0 0 IN IP4 10.215.147.110
s=Session SIP/SDP
c=IN IP4 10.215.147.110
t=0 0
m=audio 3010 RTP/AVP 8 18 0 111
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000/1
a=rtpmap:111 ILBC/8000/1
a=fmtp:111 mode=30
a=ptime:20

SipUserAgent - listen -> Init...
[SIPUser] register
RegisterAgent: Registering contact <sip:8933@10.215.147.110:5070> (it expires in 3600 secs)
RegisterAgent: onTransFailureResponse start:
RegisterAgent: Registration failure: 404 Not found
RegisterAgent: Failed Registration stop try.

----

My Asterisk server replies:

[Apr 11 01:02:42] NOTICE[14624]: chan_sip.c:25741 handle_request_register: Registration from '"8933" <sip:8933@>' failed for '127.0.0.1:5070' - Not a local domain

---

settings.properties contains:

red5.host=127.0.0.1
sip.obproxy=127.0.0.1
sip.phone=8933
sip.authid=8933
sip.secret=red5sip
sip.realm=mydomain.org
sip.proxy=
rooms=7

---

asterisk sip.conf contains:

domain=mydomain.org
domain=127.0.0.1
domain=10.215.147.110
realm=mydomain.org

What could I be doing wrong?
(I'm sure the SIP password is correct)

Thanks,

Vieri


Re: red5sip unable to register to Asterisk

Posted by Vieri <re...@yahoo.com>.
Thanks Timur,

bindaddr was already set to 0.0.0.0 so I removed the domain= settings.
According to docs, default realm is "asterisk" so I also changed red5sip's sip.realm to asterisk.
I also tried to leave it blank.
I'm still getting the same registration error.
Weird. My target Asterisk version is 10.2.1 and I can successfully register with any SIP-compliant softphone (eg. jitsi, linphone, etc).

I tried the same red5sip settings but changed the target Asterisk version to 1.4 and registration succeeded. 

I'm guessing there's some part of the SIP protocol that red5sip isn't handling gracefully.

Vieri

--- On Wed, 4/11/12, Тимур Тлеукенов <ti...@gmail.com> wrote:

Hi Vieri,
I think this issue related to Asterisk configuration, I found same issue in Asterisk mail list.You could try to remove domain entries and set bind addr to 0.0.0.0 in sip.conf:

domain= bindaddr=0.0.0.0
2012/4/11 Vieri <re...@yahoo.com>

Hi,



I don't know if I can ask this mailing list about red5sip and asterisk.



I'm getting this error when "run"ning red5sip.sh:



SipUserAgent - initSessionDescriptor -> localSession = v=0

o=8933 0 0 IN IP4 10.215.147.110

s=Session SIP/SDP

c=IN IP4 10.215.147.110

t=0 0

m=audio 3010 RTP/AVP 8 18 0 111

a=rtpmap:8 PCMA/8000/1

a=rtpmap:18 G729/8000/1

a=fmtp:18 annexb=no

a=rtpmap:0 PCMU/8000/1

a=rtpmap:111 ILBC/8000/1

a=fmtp:111 mode=30

a=ptime:20



SipUserAgent - listen -> Init...

[SIPUser] register

RegisterAgent: Registering contact <sip:8933@10.215.147.110:5070> (it expires in 3600 secs)

RegisterAgent: onTransFailureResponse start:

RegisterAgent: Registration failure: 404 Not found

RegisterAgent: Failed Registration stop try.



----



My Asterisk server replies:



[Apr 11 01:02:42] NOTICE[14624]: chan_sip.c:25741 handle_request_register: Registration from '"8933" <sip:8933@>' failed for '127.0.0.1:5070' - Not a local domain




---



settings.properties contains:



red5.host=127.0.0.1

sip.obproxy=127.0.0.1

sip.phone=8933

sip.authid=8933

sip.secret=red5sip

sip.realm=mydomain.org

sip.proxy=

rooms=7



---



asterisk sip.conf contains:



domain=mydomain.org

domain=127.0.0.1

domain=10.215.147.110

realm=mydomain.org



What could I be doing wrong?

(I'm sure the SIP password is correct)



Thanks,



Vieri






-- 
Timur Tleukenov


Re: red5sip unable to register to Asterisk

Posted by Тимур Тлеукенов <ti...@gmail.com>.
Hi Vieri,

I think this issue related to Asterisk configuration, I found same issue in
Asterisk mail list.
You could try to remove domain entries and set bind addr to 0.0.0.0 in
sip.conf:
*domain= *
*bindaddr=0.0.0.0*

2012/4/11 Vieri <re...@yahoo.com>

> Hi,
>
> I don't know if I can ask this mailing list about red5sip and asterisk.
>
> I'm getting this error when "run"ning red5sip.sh:
>
> SipUserAgent - initSessionDescriptor -> localSession = v=0
> o=8933 0 0 IN IP4 10.215.147.110
> s=Session SIP/SDP
> c=IN IP4 10.215.147.110
> t=0 0
> m=audio 3010 RTP/AVP 8 18 0 111
> a=rtpmap:8 PCMA/8000/1
> a=rtpmap:18 G729/8000/1
> a=fmtp:18 annexb=no
> a=rtpmap:0 PCMU/8000/1
> a=rtpmap:111 ILBC/8000/1
> a=fmtp:111 mode=30
> a=ptime:20
>
> SipUserAgent - listen -> Init...
> [SIPUser] register
> RegisterAgent: Registering contact <sip:8933@10.215.147.110:5070> (it
> expires in 3600 secs)
> RegisterAgent: onTransFailureResponse start:
> RegisterAgent: Registration failure: 404 Not found
> RegisterAgent: Failed Registration stop try.
>
> ----
>
> My Asterisk server replies:
>
> [Apr 11 01:02:42] NOTICE[14624]: chan_sip.c:25741 handle_request_register:
> Registration from '"8933" <sip:8933@>' failed for '127.0.0.1:5070' - Not
> a local domain
>
> ---
>
> settings.properties contains:
>
> red5.host=127.0.0.1
> sip.obproxy=127.0.0.1
> sip.phone=8933
> sip.authid=8933
> sip.secret=red5sip
> sip.realm=mydomain.org
> sip.proxy=
> rooms=7
>
> ---
>
> asterisk sip.conf contains:
>
> domain=mydomain.org
> domain=127.0.0.1
> domain=10.215.147.110
> realm=mydomain.org
>
> What could I be doing wrong?
> (I'm sure the SIP password is correct)
>
> Thanks,
>
> Vieri
>
>


-- 
Timur Tleukenov