I have FWD trunk so it can call in and out. I am trying to direct the FWD calls to a certain extension. It does not seem to work by DID. Any help would be great.
Goal: to direct incoming FWD calls to an extension, ringroup, IVR etc.
Thanks
I have FWD trunk so it can call in and out. I am trying to direct the FWD calls to a certain extension. It does not seem to work by DID. Any help would be great.
Goal: to direct incoming FWD calls to an extension, ringroup, IVR etc.
Thanks
After looking all over and no one answering my question, I found the answer and am posting it for the beneift of others. I have seen my question asked by many so I hope this help others. Here is what i did to get FWD with SIP to use a DID to direct calls to where ever I needed.
NOTE: The Below assumes that you already have a working FWD Trunk that you can call out and receive calls in on, but just could not get DID to work!
1.create a context in extensions_custom.conf that looks like this:
[custom-get-did-from-sip]
exten => _.,1,Noop(Fixing DID using information from SIP TO header)
exten => _.,n,Set(pseudodid=${SIP_HEADER(To)})
exten => _.,n,Set(pseudodid=${CUT(pseudodid,@,1)})
exten => _.,n,Set(pseudodid=${CUT(pseudodid,:,2)})
exten => _.,n,Goto(from-trunk,${pseudodid},1)
2.Then, in the trunk associated with the provider, change the trunk context or add this statement (which should read context=from-trunk) to:
context=custom-get-did-from-sip
Note: This did not work in the User context field of the FWD trunk, it had to be added to the PEER DETAILS area of the trunk
3. Create an inbound route with the name of your FWD account and also put the FWD account in the DID field.
4. Of course Submit and Apply changes
That worked for me. We now have two different FWD accounts that we can direct to users extensions or IVR or whatever.
Hope this helps.
This information was not my own but found here:
http://aussievoip.com/wiki/How+to+get+the+DID+of+a+SIP+trunk
Hi rfen - Good work.
I wanted to make the title more search friendly specific thus this post.
cheers.
Copyright © 2011 Fonality
Fonality and trixbox are trademarks of Fonality. Trademark Policy. Privacy Policy.
Asterisk is a trademark of Digium, Inc. Fonality and trixbox are not affiliated with, nor endorsed by Digium, Inc.
Member Since:
2007-02-05