Forward this call to the following number
I am trying to configure my system (Trixbox Pro) in the Auto Answer section - i am trying to edit the "edit call menu" section all is working fine however i have come across an issue when trying to add the "Forward this call to the following number" option and forward the number to an external line - currently i have setup my system to dial 0 for external calls (our previous system did this and thought I had better use what was familiar) - however when ever i add a number to the new option it automatically prepends a 9 to the number which then causes the process to fail - i tried adding a new case to the dial plan which inluded the 9 to dial out but this is working - for some reason i can't dial more then three numbers when starting with a 9 - is any one able to assist with this issue.
Thanks
Jon
Hey Jon,
This problem here can be easily resolved by creating a new dialplan in your dialplans page that strips out the 9 and prepends the 0. For an example:
9+nxx-xxxxxx strip 1 prepend 0.
This will cause a number started with 9 prepend with a 0 to go through the rest of your dialplans as expected.
Thanks,
Mike
Hi Mike,
I tried what you suggested by putting it in the dial plan - i added 9+xxxxxxxx stripped the 9 then added prepended 07 (for the area code) when i call a number 9nnnnnnnn from my phone it works fine and i can call out however when i call into the main number (expecting the call forwarding to kick in) it fails and just hangs up the call - i am not sure what is happening here.
Cheers
Jon
Mike,
I am still having issues, i have included what i have got in my auto answer menu
#1 Answer the incoming call
#2 Go to: x100 2 sec. - fwd=no VM=no
#3 Wait: 2 second(s) - listen for Keypress
#4 Dial Blast Group for: 15 second(s) with: ringing
#5 Forward this call to the following number: ? nnnnnnnn
#6 Go to voice mailbox: 100
#7 Hang-up the call
NOTE: it adds a nine in front of whatever number i forward to
then i have the following rules in my dial plan.
0 + xxxxxxxx strip 1 prepend nn
0 + xxxxxxxxxx strip 1
3 + xxx strip 1 prepend nnnnnnn
6 + xxx strip 1 prepend nnnnnnn
0 + 00 strip 0
0 + xxxxxx strip 1
9 + xxxxxxxx strip 1 prepend nn
9 + 1xxxxxxxx strip 2 prepend nn
NOTE: The prepending is for area codes (or for other combinations) - these dial plans seem to work fine whenever i attempt to call out, however when a call comes in and i have added the forward to number menu the call will just hang up if it isn;t answered before hand - i am now lost as to where to go from here.
Regards
Jon
Hi,
I think i may have found my issue - but i just want confirmation - currently we have only got he standard version of Trixbox Pro - i have since read on several posts that the call forwarding function (to external numbers) is not available - but i have read on the website that it is available - http://www.trixbox.com/products/trixbox-pro/feature-descriptions/... which from the features section states it is available http://www.trixbox.com/products/trixbox-pro/features
Is someone able to confirm which is correct.
Regards
Jon
Jon,
If you have the ability to select the item in the call menu, that means you can use it. :)
The problem here is a combination of your dial plans and forwarding. In order for me to be more helpful I will need to see a call trace of your attempted call. You can get this by running asterisk -r from the console of the system and pasting the output that is generated when you duplicate this problem.
Thanks!
Mike
Mike,
I have attempted the call again and have included the trace - the trace picks up from after the blast group has finsihed ringing (after 15 secnods) - let me know if you need any more information. What i have determine is that if i forward a number on a specific extension (to an external number) it works fine - however in the auto answer section if fails - also notice that in the extesion it allows me to specify the number whereas in the auto answer it always defaults to adding a 9 to the number - but i catered for this in my dial plan.
-- Nobody picked up in 15000 ms
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/105@blasthandling-ea1c,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/105@blasthandling-ea1c,2'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/104@blasthandling-9d5b,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/104@blasthandling-9d5b,2'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/106@blasthandling-025f,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/106@blasthandling-025f,2'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/103@blasthandling-04c8,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/103@blasthandling-04c8,2'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/102@blasthandling-4f93,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/102@blasthandling-4f93,2'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/110@blasthandling-9ee4,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/110@blasthandling-9ee4,2'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/101@blasthandling-af9e,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/101@blasthandling-af9e,2'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/107@blasthandling-4934,2' in macro 'stdblastee'
== Spawn extension (macro-stdblastee, s, 3) exited non-zero on 'Local/107@blasthandling-4934,2'
-- Executing Macro("SIP/09156587-b770c6f0", "callforward|internal|946316153|1") in new stack
-- Executing Goto("SIP/09156587-b770c6f0", "internal|946316153|1") in new stack
-- Goto (internal,946316153,1)
== Channel 'SIP/09156587-b770c6f0' jumping out of macro 'callforward'
-- Executing GotoIf("SIP/09156587-b770c6f0", "0?20") in new stack
-- Executing Set("SIP/09156587-b770c6f0", "EXTENSION=0748199323") in new stack
-- Executing AGI("SIP/09156587-b770c6f0", "trixNet.agi|trixnet.trixbox.com") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/trixNet.agi
-- AGI Script trixNet.agi completed, returning 0
-- Executing AGI("SIP/09156587-b770c6f0", "fon://localhost:4574") in new stack
-- AGI Script fon://localhost:4574 completed, returning 0
-- Executing Dial("SIP/09156587-b770c6f0", "SIP/09156587/0746316153") in new stack
-- Called 09156587/0746316153
-- Got SIP response 400 "Bad Request" back from 125.213.160.81
-- SIP/09156587-08cb4c88 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing Busy("SIP/09156587-b770c6f0", "") in new stack
== Spawn extension (internal, 946316153, 106) exited non-zero on 'SIP/09156587-b770c6f0'
-- Executing ResetCDR("SIP/09156587-b770c6f0", "w") in new stack
-- Executing NoCDR("SIP/09156587-b770c6f0", "") in new stack
Jul 19 12:42:55 NOTICE[18013]: cdr.c:445 ast_cdr_free: CDR on channel 'SIP/09156587-b770c6f0' lacks end
-- Executing GotoIf("SIP/09156587-b770c6f0", "1?5") in new stack
-- Goto (internal,h,5)
-- Executing Hangup("SIP/09156587-b770c6f0", "") in new stack
== Spawn extension (internal, h, 5) exited non-zero on 'SIP/09156587-b770c6f0'
Hey Jon,
Take a look at the following snippit from your call trace:
> -- Executing Dial("SIP/09156587-b770c6f0", "SIP/09156587/0746316153") in new stack
> -- Called 09156587/0746316153
> -- Got SIP response 400 "Bad Request" back from 125.213.160.81
> -- SIP/09156587-08cb4c88 is circuit-busy
Your PBX is making an outbound call to "0746316153" on your SIP carrier called "09156587". Your carrier doesn't recognize this number as valid, so it hangs up the call.
Now, we can see from the following line that your system is trying to dial an outbound number (946316153):
> -- Executing Goto("SIP/09156587-b770c6f0", "internal|946316153|1") in new stack
> -- Goto (internal,946316153,1)
This number 94-631-6153 is missing digits, unless you are not in the US. Try putting the number in as 91+area code+ number in your menu (after the blast group) so that it will match your 91+10 digit dialing plan.
Hope that helps.
Cheers!
Mike
Thanks Mike,
However i am not in the US and i have covered off on the number 946316153 by adding a prepend 07 in the dial plan if the number entered is 9xxxxxxxx - if i call the number directly from the phone it works - something else that is wierd is that if i forward the extension (x100) to 946316153 it works however if i forward the autoanswer menu to x100 (which is then forwarded to the number) - when I call the number and try to execute the flow (to pass through to x100) this now fails even thought if i call the extesion directly it will forward the number through as expected - it appears to be an issue with the fowarding of numbers in the autoanswer section.
Again thanks for you continual help on this one.
Regards
Jon
Hi Mike,
What i have also noticed is the following...
In my dial plan i have created it so that you dial 0 to dial out - our current pbx does this so wanted to keep same functinally so as to not confuse the current users - anyhow when entereing the "forward to" number into the autoanswer mene it states the following:
NOTE: Enter the number as you would dial it on your phone, if you do not, trixbox Pro will automatically prepend a "91" .
When setting this up i had originally entered teh number 00746316153 which is how i would dial the number (with my current dial plan i could also dial 046316153 and it was prepend the 07 - which is what is happening above in your post) anyhow when i do this it prepends the 9 - so the number that it attempts to call is 900746316153 which is obvisouly incorrect. I am not sure if this information is of any help to my issue - however i thought i would just let you know.
Thanks
Jon
Hi,
I thought i would also make mention of this now (i was just playing around with the phone and noticed the following) - when i try and call the number 90746316153 on hte phone it won;t let me it only allows me to enter the number 9074631615 (and then the phones starts dialling and doesn;t allow me to add the final number) not sure if this is linked to the issue i am experiencing.
Regards
Jon
Jon,
The phone looks like it has a dial string that will only allow 9074631615 before it starts auto dialing. You will have to find the dial string that matches the 9074631615 number and edit it to allow one more digit before auto dialing.
You may probably need to create some new dial plans to allow calls that begin with a few digits followed by a period i.e. "90x." The period means you can enter as many digits as you want after the 90x and the system and phone will accept it as valid.
What make and model of phone are you using?
Gasmanz
Finally i found my issue, for some reason i was now getting a busy signal when attempting to call the number (which forwards through to another) - previosuly this was just getting hung up - after doing some more searching i found the following post http://www.trixbox.org/forums/trixbox-forums/help/call-forward-ex... which pointed me in the right direction - my setting were trying to use the CID of the calling number - i changed this to use the Global Caller ID and it is now working. I am now very happy. Once again thanks for all you help on this one.
Regards
Jon

Member Since:
2008-05-07