Ring Back Issue

nayatelngn
Joined: Tue 27 of Oct, 2009

Ring Back Issue

Posted:Tue 27 of Oct, 2009 (06:59 UTC)
Hi,
I am testing an ip to gsm gateway. Problem is that I do not hear ring back tone when i call from my sip extension (registered to an asterisk). I have to enter 'r' parameter in dial plan to hear the ring back tone, but after that we hear fake ring back tone even when the SIM rejects the call. SIP trunk configuration is as follows

[iptellular]
username=iptellular
type=friend
secret=123456
;disallow=all
allow=alaw
context=from-sip-trunk
insecure=very
host=172.0.0.150


Settings in extensions.conf
[from-sip-trunk]
exten => _710308XXXXXXX,1,Answer
exten => _710308XXXXXXX,2,Dial(SIP/iptellular/${EXTEN:2},60,trTS(900))
exten => _710308XXXXXXX,3,GotoIf($[${DIALSTATUS}=ANSWERED]?:50)
exten => _710308XXXXXXX,4,Hangup
exten => _710308XXXXXXX,50,Dial(IAX2/iax-off-gw1-p/0${EXTEN:2},60,trTS(900))
exten => _710308XXXXXXX,51,GotoIf($[${DIALSTATUS}=ANSWERED]?:100)
exten => _710308XXXXXXX,52,Hangup
exten => _710308XXXXXXX,100,Dial(IAX2/iax-off-gw2-p/0${EXTEN:2},60,trTS(900))
exten => _710308XXXXXXX,101,Hangup


exten => _710300XXXXXXX,1,Answer
exten => _710300XXXXXXX,2,Dial(SIP/iptellular/${EXTEN:2},60,trTS(900))
exten => _710300XXXXXXX,3,GotoIf($[${DIALSTATUS}=ANSWERED]?:50)
exten => _710300XXXXXXX,4,Hangup
exten => _710300XXXXXXX,50,Dial(IAX2/iax-off-gw1-p/0${EXTEN:2},60,trTS(900))
exten => _710300XXXXXXX,51,GotoIf($[${DIALSTATUS}=ANSWERED]?:100)
exten => _710300XXXXXXX,52,Hangup
exten => _710300XXXXXXX,100,Dial(IAX2/iax-off-gw2-p/0${EXTEN:2},60,trTS(900))
exten => _710300XXXXXXX,101,Hangup


Can any one help?