karlma / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Condition in outbound route #919

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Outbound routes > add a condition (eg: condition username = 1001)
2. 1001 is an existing extension
3. When calling outbound with extension 1001 > no route to host

What is the expected output? What do you see instead?
- Expected to use the gateway with condition, problem seems to be the $1 
variable used in dialplan. When adding an axtra condition, variable $1 isn't 
replaced with the destenation number.

What version of the product are you using? On what operating system?
revision 8262

Extra info - log dump: (notice the $1 variable not being replaced)
eb000fea-e3ff-11e4-a0bf-796b01d5b697 EXECUTE 
sofia/internal/1001@my.voip.domain.tld set(inherit_codec=true) 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 2015-04-16 08:15:02.737200 [DEBUG] 
mod_dptools.c:1447 sofia/internal/1001@my.voip.domain.tld SET 
[inherit_codec]=[true] 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 EXECUTE 
sofia/internal/1001@my.voip.domain.tld set(ignore_display_updates=true) 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 2015-04-16 08:15:02.737200 [DEBUG] 
mod_dptools.c:1447 sofia/internal/1001@my.voip.domain.tld SET 
[ignore_display_updates]=[true] 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 EXECUTE 
sofia/internal/1001@my.voip.domain.tld set(callee_id_number=$1) 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 2015-04-16 08:15:02.737200 [DEBUG] 
mod_dptools.c:1447 sofia/internal/1001@my.voip.domain.tld SET 
[callee_id_number]=[$1] 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 EXECUTE 
sofia/internal/1001@my.voip.domain.tld set(continue_on_fail=true) 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 2015-04-16 08:15:02.737200 [DEBUG] 
mod_dptools.c:1447 sofia/internal/1001@my.voip.domain.tld SET 
[continue_on_fail]=[true] 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 EXECUTE 
sofia/internal/1001@my.voip.domain.tld limit(hash my.voip.domain.tld outbound 2 
!USER_BUSY) 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 2015-04-16 08:15:02.737200 [DEBUG] 
switch_limit.c:126 incr called: my.voip.domain.tld_outbound max:2, interval:0 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 2015-04-16 08:15:02.737200 [DEBUG] 
mod_hash.c:196 Usage for my.voip.domain.tld_outbound is now 1/2 
eb000fea-e3ff-11e4-a0bf-796b01d5b697 EXECUTE 
sofia/internal/1001@my.voip.domain.tld 
bridge(sofia/gateway/27bdd25f-499e-4123-b45a-6ca3a524d3bf/$1) 

Original issue reported on code.google.com by david.va...@gmail.com on 16 Apr 2015 at 6:25

GoogleCodeExporter commented 9 years ago
You should come to the FusionPBX online class for some training. To learn how 
to do dialplans conditions. Nothing to fix this is a configuration issue cured 
by the Admin training.

Original comment by markjcrane@gmail.com on 23 Apr 2015 at 10:51