SIP Trunk between Asterisks

Hello all,
I need to configure a SIP trunk between two machines…
I have followed a tutorial, but I couldn’t do it work…
Is there anyone that have already done it?

Below follow my sip.conf

machine01 - 192.168.200.11
[general]
register => machine01:password@192.168.200.21
[machine02]
type=friend
secret=password
context=default
qualify=yes
host=dynamic
disallow=all
allow=gsm
allow=ulaw
allow=alaw

machine02 - 192.168.200.21
[general]
register => machine02:password@192.168.200.11
[machine01]
type=friend
secret=password
context=default
qualify=yes
host=dynamic
disallow=all
allow=gsm
allow=ulaw
allow=alaw

Thanks in advance…

Can you paste the output from the Asterisk CLI when you send a call via SIP Trunk? Also do a “sip set debug” trace and paste it here.

Now, if I set debug will have a lot of messages because the call center is working now…

But, below there is the messages which appear when I call from machine01 to machine02 from the exten. 9053

machine01
[Feb 08 11:12:28] WARNING[2913]: chan_sip.c:17952 handle_response_invite: Received response: “Forbidden” from ‘“Andre” sip:9053@192.168.200.11;tag=as50e54c0a’

machine02
[Feb 08 11:12:28] WARNING[21440]: chan_sip.c:12808 check_auth: username mismatch, have <9053>, digest has
[Feb 08 11:12:28] NOTICE[21440]: chan_sip.c:20144 handle_request_invite: Failed to authenticate device “Andre” sip:9053@192.168.200.11;tag=as567ed177

you may try adding a /machine01 and /machine02 on the register lines

cerien.jean,
It didn’t work…

The problem is definitly in the authentication of the SIP call.

A workarround would be not to use SIP Registration/Authentication for the SIP Trunk. (remove register and secret entrys and set static IP for host parameter for individual SIP friends)

For finding the authentication problem, please provide more debugs.

Hi,

I’ve tried to look more at this issue and I am not getting any more successfull… and to be honest, totally lost.

Here is the snippets of config files:

box 1 (toronto)
register => toronto:welcome@x.x.x.x:5060/osaka
[osaka]
type=friend
secret=welcome
context=sipphones
host=dynamic
disallow=all

box2 (osaka)
register => osaka:welcome@y.y.y.y:5070/toronto

[toronto]
type=friend
secret=welcome
context=sipphones
host=dynamic
disallow=all
allow=ulaw

A part from having box1 running on a different port, this is strictly the TFOT !

a client is registered under ‘6688063’ extension, on box 2 osaka
using this registered client, a Dial(SIP/toronto/1001) triggers on toronto (box1)
[Feb 16 14:13:50] WARNING[14615]: chan_sip.c:11876 check_auth: username mismatch, have <6688063918>, digest has
[Feb 16 14:13:50] NOTICE[14615]: chan_sip.c:19098 handle_request_invite: Failed to authenticate device “Biz” sip:6688063918@y.y.y.y;tag=as06753ceb

and on box2-osaka
[2011-02-16 14:13:50] WARNING[11237]: chan_sip.c:17040 handle_response_invite: Received response: “Forbidden” from ‘“Biz” sip:6688063@y.y.y.y;tag=as06753ceb’

I’ve tried replacing the dynamic hosts with static, no luck.

Any help ? I am loosing my mind !!

J.

Hello All,

Any ideas on this one ?

Regards,

J.