Problem using motif for calls between two PBX

Hi!

I’ve been trying to configure a couple of asterisk servers in order to be able to “trunk” calls with jingle. (I know we have IAX2 and SIP trunking, but I want to try It anyway, I have my reasons)

When I make a call from A to B for testing, the error I see in the CLI (of server B) is the following:

On server A, the caller gets a busy tone.

I have tried different motif.conf options, such as changing the transport, enabling or disabling codecs, but with no success.

I would really appreciate any guidance on how to solve the issue. I’m going to provide some details, but if you need more information about the issue (like wireshark captures) I would be happy to provide it.

Thanks in advance,

Enric.

PS: here are the details:

Server A:
- debian squeeze
- Asterisk 11.0.0-beta1 (compiled from source)
- ejabberd (XMPP server)
Server B:
- debian squeeze
- Asterisk 11.0.0-rc1 (compiled from source)

Servers A and B, are connected to the XMPP server with their own accounts, through a vpn (openvpn). When calling “xmpp show connections” and “xmpp show buddies” everything looks fine on both servers.

I’m trying to make a call from a sip account on server A, to an extension in server B, through these jingle accounts.

Configuration server A (enricpc):

extensions.conf

[...] exten => 200,1,Dial(Motif/ejabberd/demoinz@localhost,,r)

motif.conf

[code][…]
default
disallow=all
allow=ulaw
allow=alaw ; tried allowing and disallowing various codecs with no success
;allow=h264
context=incoming-motif ; Default context that incoming sessions will land in

; commenting or uncommenting the following two lines does not seem to help either
maxicecandidates = 10 ; Maximum number of ICE candidates we will offer
maxpayloads = 30 ; Maximum number of payloads we will offer

[…]

ejabberd
connection=ejabberd
;transport=ice-udp ; also tried various transports with no success

[/code]
xmpp.conf

[code][…]

[ejabberd]
type=client
serverhost=10.2.2.103
username=enricpc@localhost
secret=enricpc
port=5222
usetls=yes
usesasl=yes
buddy=demoinz@localhost[/code]

Configuration server B (demoinz):

extensions.conf

[code][…]

[incoming-motif]
exten => s,1,NoOp()
same => n,Wait(1)
same => n,Answer()
same => n,SendDTMF(1)
same => n,Background(tt-monkeys)
same => n,Hangup()[/code]

motif.conf
[same as in server A]

xmpp.conf

[code][…]

[ejabberd]
type=client
serverhost=10.2.2.103
username=demoinz@localhost
secret=demoinz
port=5222
usetls=yes
usesasl=yes
buddy=enricpc@localhost[/code]