Sonetel

Hi all

i’m trying to setup a trunk for a sonetel number with freepbx,
i’ve successfuly setup for outbound calls using the config found here
unfortunately, inbound call is not working correctly…
sip.sonetel.com has 2 differents ips … and i get the call 1 time out of 2

here is my configuration : pastebin.com/HYEXNrEQ
and both log when success and failure :
pastebin.com/GUAnED95
pastebin.com/Qck2mkUm

I see 2 solutions : make 2 different trunk for each number with fix ip … with is going to drive me crasy with the amount of number i need
or accept anonymous call… with is not what i want

does any one have a solution?

thanks

[code]
************* PEER DETAIL **********
type=friend
dtmfmode=rfc2833
context=default
host=sip.sonetel.com
defaultuser=user_name
username=user_name
fromuser=user_name
secret=user_pass
remotesecret=user_pass
allowguest=yes
fromdomain=gmail.com
outboundproxy=sip.sonetel.com
disallow=All
allow=All

********** Register String *********
user_name@gmail.com:user_pass@sip.sonetel.com[/code]

defaultuser and username are the same thing.

allowguest can only work in the general section as it only applies to peers that don’t match a specific section. It is also a security hazard.

Does sonetel really authenticate itself to you? All ITSPs I’ve heard of only want remotesecret. This will cause incoming calls to fail to authenticate.

I removed remotesecret and allowguest

still able to make call but impossible to receive

No matching peer for ‘+XXXXXXXXXX’ from ‘208.51.64.179:5060’ : pastebin.com/umpNUj5r

ONLY not DON’T.

i did 2 identical trunk with fixed ip
dig sip.conetel.com:
sip.sonetel.com. 300 IN A 208.51.64.179
sip.sonetel.com. 300 IN A 208.51.64.181

type=friend
dtmfmode=rfc2833
context=from-trunk
host=208.51.64.179
username=user
fromuser=user
secret=password
nat=yes
fromdomain=gmail.com
outboundproxy=208.51.64.179
insecure=invite
disallow=All
allow=alaw&ulaw&gsm


Register String:  user@gmail.com:pass@208.51.64.179

this is working perfectly… but changing ip by sip.sonetel.com break everything

any idea to avoid that?