Ticket #961 (closed Bugs: fixed)

Opened 7 years ago

Last modified 7 years ago

Outbound route 9|411 with pinsets fails to generate new configuration files

Reported by: awebster Assigned to: RobThomas
Priority: crash Milestone:
Component: Pin Sets Module Version: 2.1
Keywords: bug configuration pinsets Cc:
Confirmation: Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Generating an outbound route 9|411 with pinsets enabled causes retrieve_conf to fail, and no longer generate extensions_addtional.conf.

Outbound route 9|411 fails, 9|411. is okay. Traced problem to splice function in extensions.class.php (line 102), called from pinsets/functions.inc.php line 93.

Notice that outrt-004-Info is incomplete. Splice function seems to be not filling in the remainder of the array. For comparision outrt-003-Toll is correct. (produced by enabling echo and print_r around line 144 of extensions.class.php.

Splicing [outrt-003-Toll] _91NXXNXXXXXX Array (

[0] => Array

(

[basetag] => 1 [tag] => [addpri] => [cmd] => ext_macro Object

(

[macro] => pinsets [args] => 1|0

)

)

[1] => Array

(

[basetag] => n [tag] => [addpri] => [cmd] => ext_macro Object

(

[macro] => dialout-trunk,1,${EXTEN:1}, [args] =>

)

)

[2] => Array

(

[basetag] => n [tag] => [addpri] => [cmd] => ext_macro Object

(

[macro] => outisbusy [args] =>

)

)

) Splicing [outrt-004-Info] _9411 Array (

[0] => Array

(

[basetag] => 1 [tag] => [addpri] => [cmd] => ext_macro Object

(

[macro] => pinsets [args] => 1|0

)

)

[1] => Array

(

[basetag] => n

)

Change History

06/22/06 09:37:41 changed by awebster

Workaround: hand code this in extensions_custom.conf

[outbound-allroutes-custom]
exten => _9411,1,Macro(pinsets,1|0)
exten => _9411,n,Macro(dialout-trunk,1,${EXTEN:1},,)
exten => _9411,n,Macro(outisbusy,)

09/15/06 07:20:06 changed by vgster

  • priority changed from 5 to 2.

09/15/06 20:09:44 changed by RobThomas

  • owner set to RobThomas.
  • status changed from new to assigned.

You have no idea how hard this was to debug. But I just found it. Yay! Figuring out a way to fix the problem now.

09/15/06 20:22:18 changed by RobThomas

  • status changed from assigned to closed.
  • resolution set to fixed.

r2480 seems to fix it nicely. Thanks!

--Rob