Freedigits and sip problem!

hi, i have configured two sip phones with private addresses, my asterisk server is on the wan, when i try to call my freedigits number, i’m hearing just bips, the logs say:

Called freedigits/5156419821003
– SIP/freedigits-08916c08 answered SIP/youness-0890f738
– Packet2Packet bridging SIP/abdelfettah-0890f738 and SIP/freedigits-08916c08

and it stays like this !
any suggestions please !

Post the relevant configuration files !!!
forums.digium.com/viewtopic.php?t=4208

I’m using freedigits without any problems.

Sip.conf

register => 3194417110:000000000@freedigits.net/3194417110

[freedigits]
context=from-freedigits
type=friend
username=3194417110
fromuser=3194417110
fromdomain=freedigits.net
host=freedigits.net
secret=0000000000
insecure=invite,port
nat=yes
canreinvite=no
dtmfmode=rfc2833
disallow=all
allow=ulaw

[youness]
type=friend
secret=0000
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=internal

extensions.conf

[globals]
FWDCIDNAME=“Youness H.”; your caller id
FWDINFO=821741
FWDRINGS=SIP/youness ; the phone to ring
FWDNUMBER=821741
[internal]
exten => 105,1,Dial(SIP/youness)
exten => 107,1,Dial(SIP/abdelfettah)

exten => _8.,1,SetCallerId,${FWDCIDNAME}
exten => _8.,2,Dial(IAX2/${FWDINFO}@iax2.fwdnet.net/${EXTEN:1},60,r)
exten => _8.,3,Congestion

exten => _515X.,1,Dial(SIP/freedigits/${EXTEN},120)
exten => _1515XXXX,1,Dial(SIP/freedigits/${EXTEN:1},120)

; general PSTN outbound dialing if desired
exten => _NXXNXXXXXX,1,Dial(SIP/freedigits/${EXTEN},120)
exten => _1NXXNXXXXXX,1,Dial(SIP/freedigits/${EXTEN:1},120)

[incoming]
;exten => 821741,1,Dial(SIP/youness) ; It works when I call myself from fwd !!!
exten => ${FWDNUMBER},1,Dial(${FWDRINGS},20,r)
exten => ${FWDNUMBER},1000,Hangup

[from-freedigits]
exten => 3194417110,1,Dial(SIP/youness),${EXTEN})
;exten => 3194417110,1,Dial(SIP/youness)

Many thanx !

Sorry, I cannot test your config on my system now, so please see my working example below.

nothing for this trunk in sip.conf !

in users.conf:

[trunk_10]
secret = guessit
provider =
trunkstyle = customvoip
username = 319xxxxxxx
trunkname = DID FreeDigits
callerid = 1319xxxxxxx
hasexten = no
hassip = yes
hasiax = no
registeriax =
registersip = yes
host = proxy.freedigits.net
dialformat = ${EXTEN:1}
context = DID_freedigits
group =
insecure = invite
fromuser = 319xxxxxxx
fromdomain = freedigits.net
disallow = all
allow = ulaw
allow = alaw
allow = g729
nat = yes
canreinvite = no

in extensions.conf:

[globals]
DESK = 11 ; my extension

[DID_freedigits]
exten => s,1,Goto(default,10,1)
exten => t,1,Goto(default,${DESK},1)
exten => i,1,Goto(default,${DESK},1)

[default]
exten => _[1-4]X,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})

In this example any call coming from FreeDigits will ring my extension (11).