Asterisk droping calls from the same provider

Hello,

I have a problem with an asterisk server:

I have a SIP trunk from Vodafone. When I call from another provider ( lets say Orange ) redirecting from Softphone to another extension works. When I call from the same provider ( Vodafone - my sip trunks use vodafone ) and try to redirect from the softphone to another extension, the call is intrerupting.


This is extension.conf related to extension number used for redirecting: (I masked the real number)

exten => _yyy268,1,Set(CALLFILENAME=${CALLERID(num)}_${EXTEN}-${STRFTIME(${EPOCH},,%d%m%Y-%H%M%S)})
exten => _yyy268,n,MixMonitor(/var/inregistrari/in/${CALLFILENAME}.wav,b)
;exten => _yyy268,n,Goto(ivr-liber,9,1)
exten => _yyy268,n,GotoIfTime(18:00-23:59|mon-fri|*|*?time,5692,1)
exten => _yyy268,n,GotoIfTime(00:00-08:00|mon-fri|*|*?time,5692,1)
exten => _yyy268,n,Dial(SIP/268,20,tk)
exten => _yyy268,n,Dial(SIP/241,60,tk)
exten => _yyy268,n,Congestion()
exten => _yyy268,n,Hangup()

THis is sip.conf related to extension used for redirecting:

[268](sets)
dtmfmode=rfc2833
t38pt_udptl=yes
qualify=yes
notifyringing=yes
call-limit=2
callerid=268
nat=no
mailbox=268@default
secret=sssssssss
canreinvite=no
callgroup=1
pickupgroup=1


[241](sets)
dtmfmode=rfc2833
t38pt_udptl=yes
qualify=yes
notifyringing=yes
call-limit=2
callerid=241
nat=no
mailbox=241@default
secret=rrrrrrrrrrrr
canreinvite=no
callgroup=13
pickupgroup=13



THis is sip.cinf related to the trunk used:

[sipvodafone]

sendrpid = pai
trustrpid = no
accountcode=sipvodafone
send_diversion=no
rpid_update=no
type=peer
;progressinband=yes
;prematuremedia=no
context=from_sip
insecure=very
fromdomain=vodafone
canreinvite=no
session-timers=refuse
nat=yes
host=81.yy.xxx.161
;dtmfmode=inband
dtmfmode=inband
disallow=all
allow=alaw
qualify=yes
;userphone=yes

[sipvodafone1]
sendrpid = pai
trustrpid = no
accountcode=sipvodafone1
type=peer
;progressinband=yes
;prematuremedia=no
context=from_sip
insecure=port,invite
fromdomain=vodafone
canreinvite=no
session-timers=refuse
nat=yes
host=81.yy.xxx.162
dtmfmode=inband
disallow=all
allow=alaw
qualify=yes
Eu TeleaAdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ron MalmsteadInformation Services ManagerCommented:
When the call drops, what errors /output do you see on the CLI?

Let's see If I'm understanding this correctly..., if you call from "inside" your network, it drops.  If you use your cellphone to call a number, it redirects correctly.  Is that right?
Eu TeleaAdminAuthor Commented:
The End-User - if he got a phone number from the same provider which i got the trunk for asterix ( from vodafone ), when he call my asterix number he will not be forwarded to extensions. Is a main number, if someone call and no body answer, should go to the next extension and this is not happening.

If the call come from another provider, the tree is fallow, main number - no answer -> extension will be forwarded

I called from my work number ( Vodafone ) - on fix phone ( first extension ) - after that forward comed ( second extension ) and is intreruped.

I called from other phone ( Orange ) - on fix phone ( first extension ) -after that  forward comed and worked ( second extension )
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
freepbx

From novice to tech pro — start learning today.